PlotlyJS.jl
PlotlyJS.jl copied to clipboard
hline (shapes?) not showing up when there are subplots
p1 = plot(scatter(;y=randn(25)))
p2 = plot(scatter(;y=randn(25)), Layout(shapes=[hline(0.25)]))
pjoin = [p1; p2]
-
p1
is as expected -
p2
is as expected -
pjoin
no longer has the horizontal line
One issue is that you haven't added that layout to any plot...
You can either call
relayout!(pjoin, shapes=[hline(...)])
Or try adding it to one of p1 or p2 before making pjoin.
I don't know that I've ever tried combing plots with shapes, but I think it should work
Sorry, I misread that and didn't see the parenthesis.
I'll try to take a look at this today
No rush -- I have a suitable workaround. I just ran into this yesterday and wanted to raise an issue so I didn't forget about it.
Ahh ok thanks. I may not get to it today then. It will definitely get resolved though
Hi, just wanted to ask if there is any progress on this issue/ any workarounds?
No this unfortunately has sat unchanged.
Any interest in working on a patch for us?