PlotlyJS.jl icon indicating copy to clipboard operation
PlotlyJS.jl copied to clipboard

hline (shapes?) not showing up when there are subplots

Open cc7768 opened this issue 8 years ago • 6 comments

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

cc7768 avatar Dec 10 '16 03:12 cc7768

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

sglyon avatar Dec 10 '16 14:12 sglyon

Sorry, I misread that and didn't see the parenthesis.

I'll try to take a look at this today

sglyon avatar Dec 10 '16 16:12 sglyon

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.

cc7768 avatar Dec 10 '16 16:12 cc7768

Ahh ok thanks. I may not get to it today then. It will definitely get resolved though

sglyon avatar Dec 10 '16 16:12 sglyon

Hi, just wanted to ask if there is any progress on this issue/ any workarounds?

ghost avatar Dec 03 '18 16:12 ghost

No this unfortunately has sat unchanged.

Any interest in working on a patch for us?

sglyon avatar Dec 03 '18 18:12 sglyon