Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plotting needs major reworking #73

Open
Jhsmit opened this issue Nov 27, 2018 · 1 comment
Open

Plotting needs major reworking #73

Jhsmit opened this issue Nov 27, 2018 · 1 comment

Comments

@Jhsmit
Copy link
Owner

Jhsmit commented Nov 27, 2018

This is probably a project for 0.1.3.

Currently, especially with the introduction of iplot, there a is a lot of redundancy in the code. Also, some things take a long time to plot (radial distributions of many cells, storm images with many localizations).

The ideal rework would be something along the lines of cached properties which are derivates from data classes depending on coordinate parameters and plotting parameters. The plot functions can directly access these attributes without any boilerplate.

Example:

  def plot_r_dist(data_name='fluorescence', ...):
      data_elem = self.cell_obj.data.data_dict[data_name]
      ax.plot(data_elem.r_dist)  # somehow deal with kwargs

Or maybe a new object on Cell, which take data and has all these properties?

@Jhsmit
Copy link
Owner Author

Jhsmit commented Mar 24, 2019

this looks interesting for interactive plotting: https://github.com/pyviz/panel

@Jhsmit Jhsmit added this to the Plotting structure rework milestone Apr 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant