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

Opening cuts in matplotlib #36

Open
pudeIko opened this issue Nov 25, 2022 · 2 comments
Open

Opening cuts in matplotlib #36

pudeIko opened this issue Nov 25, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@pudeIko
Copy link
Owner

pudeIko commented Nov 25, 2022

pyqtgraph allows for exporting plotted data to matplotlib window, but at the moment it seems to be working only for 1D data.
It might not support multidimensional datasets at all, but perhaps with some manual preparation of the data, "export"(?) library could be used to open selected cuts in matplotlib.
As an advantage, matplotlib allows for labeling the axes, giving the plots nicer look and making them perfect for beamtime logbooks.

Just an idea, maybe worth to investigate.

@kuadrat kuadrat added the enhancement New feature or request label Nov 25, 2022
@kuadrat
Copy link
Collaborator

kuadrat commented Nov 25, 2022

I made the same observation when developing data-slicer. Eventually, I implemented my own matplotlib export routine and built it into ImagePlot: mpl_export

It seems that this functionality was dropped when imageplot.py was copied into piva. Maybe one can re-implement it.
Or we can discuss using data-slicer's code through imports instead of adapted copy-pastes (cf. #16)

@pudeIko
Copy link
Owner Author

pudeIko commented Nov 25, 2022

I see!
If it can be just imported then absolutely, let's do that!

@kuadrat kuadrat self-assigned this Nov 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants