mantidproject / mantid

Main repository for Mantid code
https://www.mantidproject.org
GNU General Public License v3.0
211 stars 124 forks source link

Rogue lines in colorfill plot #36816

Open jclarkeSTFC opened 9 months ago

jclarkeSTFC commented 9 months ago

Original reporter: James Lord

Describe the bug Original email: This seems to have been around for a version or three but is still there in the beta nightly 6.8.20240202.1625 (Windows):

Load a data set with a lot of zeros in it and a few high valued bins (e.g. HIFI run 185451, which is dark counts and with the DAE not working properly so some spectra are completely empty)

Plot – Colour Fill. There should be some coloured in pixels with most of the graph dark blue/black (zero). But there may be a yellow horizontal line for example (narrower than one spectrum along that axis).

Resize the plot window with the mouse, and the line may change colour, change to dotted/dashed, or be accompanied by more horizontal and vertical lines.

The effect doesn’t show up if I load “normal” muon data with non-zero counts in most bins.

James

To Reproduce

Expected behavior

Screenshots image

Platform/Version (please complete the following information):

GuiMacielPereira commented 8 months ago

I couldn't find the reason for why this is happening, but I did notice that simply updating the plot settings makes these lines go away

jhaigh0 commented 6 months ago

If we can't firgure this out, should we make sure James Lord knowns about the workaround you've figured out?

GuiMacielPereira commented 6 months ago

I have contacted James to let him know

jclarkeSTFC commented 2 months ago

This happens with matplotlib 3.8 as well