ISISNeutronMuon / MDANSE

MDANSE: Molecular Dynamics Analysis for Neutron Scattering Experiments
https://www.isis.stfc.ac.uk/Pages/MDANSEproject.aspx
GNU General Public License v3.0
18 stars 4 forks source link

Split plotting gui #454

Closed MBartkowiakSTFC closed 5 days ago

MBartkowiakSTFC commented 1 month ago

Description of work A prototype of the new plotting interface has been added as two separate tabs.

Fixes

  1. It is possible to overplot results originating from different files.
  2. Physical unit switching is possible using combo boxes in the plot tab.
  3. Single, Grid and Heatmap plotting modes are available at the moment.
  4. Sliders can be used to modify the plot contents. Their function depends on the plotting mode.

To test Load several files containing data analysis results. Try plotting the results in a single plot. Change the plotting mode and the physical units to check if the changes are applied correctly.

ChiCheng45 commented 4 weeks ago

Looking good so far.

So far some bugs I've found from testings.

Animation19

Also some suggestions.

ChiCheng45 commented 1 week ago

Looks good just have a few more suggestions.

image

Also I found a crash when you create a few new plots and then delete them.

Animation20

MBartkowiakSTFC commented 1 week ago

Thanks for spotting these additional problems!

Latest changes:

Problems that remain, but maybe are not critical:

ChiCheng45 commented 1 week ago

Looks great I'm happy to merge just one last thing.

image

What's the purpose of the checkboxes in the plot creator?

MBartkowiakSTFC commented 1 week ago

The check boxes are only useful for enabling/disabling individual curves in the plot. At the moment both tabs, Plot Creator and Plot Holder, use the same Qt data model, but some parts are only useful once the data model has been attached to a plot.

I guess I could make this check box do something in Plot Creator. As in, only the checked items would be transferred to the plot.

ChiCheng45 commented 1 week ago

Thanks for the above changes. Some more crashes I've found that seem related.

Crash when attempting to plot nothing. Animation21

Crash when nothing is plotted and the offset setting is changed. Animation23