mantidproject / plotting-evaluation

Contains prototypes for evaluating future plotting packages in Mantid
0 stars 0 forks source link

Waterfall plots #17

Open martyngigg opened 7 years ago

martyngigg commented 7 years ago

Waterfall-style plots are very important in MantidPlot. We need to be able to show matplotlib can handle these style of plots.

martyngigg commented 7 years ago

I seem to remember there being some confusion at the last SSC over whether our current implementation of waterfall plots in MantidPlot is correct.

This stackoverflow post shows an idea for this in matplotlib but it does not have the level of configuration that MantidPlot has w.r.t the amount of the shift etc.

tom-perkins commented 7 years ago

There's a roadmap issue for waterfall plots of several datasets with their fits. At the moment it's not easy to keep the fits together with the data they refer to - scientists work around this by manually offsetting with Scale. (The request came from muon scientists but I think other techniques wanted this too, in particular powder diffraction) https://github.com/mantidproject/mantid/issues/15611

martyngigg commented 7 years ago

@tom-perkins Thanks for adding that information.

It's not completely clear to me the intent here. Is it possible to sketch something to show what is required?

tom-perkins commented 7 years ago

I think the issue is something like this, where I've chosen to plot spectra 0 and 1 (data and fit) for a workspace group and selected "waterfall plot". Each spectrum is offset, so the fits are offset from their data. There isn't an easy way to get a waterfall plot of [spectrum + fit] pairs, with the pairs offset from each other. waterfall1

(I think this is the issue, but this needs discussing further with the scientists to confirm)