pudeIko / piva

MIT License
2 stars 1 forks source link

Opening cuts in matplotlib #36

Open pudeIko opened 1 year ago

pudeIko commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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