Is it possible to alter the draw order of the shape so that a shape is drawn below the plot elements? We have a horizontal baseline line that is sometimes overlayed over data, bar markups, etc.
It would be nice if we could make the bars semi-transparent and have the line pass behind them.
If the graph has gridlines and you use layer='below', the shapes will appear below the gridlines as well, which (at least in my case) is not desired. Is there a way to show shapes below traces but on top of the graph gridlines?
Hi @AIMPED, thank you for the response! Actually I have both cases, some shapes Iโm drawing are supposed to be semi-transparent and others solid. Hereโs a quick demonstration. The green shape has an rgba color and the purple ones have opacity 1. They all appear below the blue trace, which is desired, but also below the gridlines. The second purple vline (x=3) is barely noticeable because itโs right where a gridline is!
Hi @wmachado, this question popped up quite a few times but I canโt recall a good answer for it, unfortunately. Obviously you want the grid lines to be visible, right?
Yes. In my case I only want the vertical gridlines to be visible, but those are enough to sometimes mess up my shapes, like in the case of the vertical purple line being cut out and almost invisible in my previous example.