You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to add a collection of rectangular patches to a 1D silx plot, as shown below by the red bands that mark monochromator glitches. I can plot a horizontal segment with addCurve() and fill the rectangle under it by fill=True.
Q1: Is there a simple way to also have the fill above the segment? I would want a band spanning the whole plot height.
Q2: Can a collection of rectangular patches be generated without adding curves?
Thank you in advance!
The text was updated successfully, but these errors were encountered:
I got the rectangles by plot.addShape() and setting ± very big y coordinates. And the whole point is that the rectangles do not affect the plot view maximizing. When I need to remove them I do
for item in plot.getItems():
if item.getName().startswith('glitch'): # they were named with legend=f'glitch{ipeak}'
plot.removeItem(item)
The only thing I can't solve is the forced dotted hatch pattern. I hope you know why you did it.
Hello silx'ers!
I want to add a collection of rectangular patches to a 1D silx plot, as shown below by the red bands that mark monochromator glitches. I can plot a horizontal segment with
addCurve()
and fill the rectangle under it byfill=True
.Q1: Is there a simple way to also have the fill above the segment? I would want a band spanning the whole plot height.
Q2: Can a collection of rectangular patches be generated without adding curves?
Thank you in advance!
The text was updated successfully, but these errors were encountered: