begin
using StatsPlots
gr()
# pgfplotsx()
# plotlyjs()
# plotly()
serie1=rand(5)
serie2=rand(5)
serie3=rand(10)
serie4=rand(10)
pg = plot(
plot([serie3 serie4], label=["Serie1" "Serie2"]),
plot([serie3 serie4], label=["Serie3" "Serie4"]),
layout=(1,2), size=(600,300), grid=:off,
left_margin = 5Plots.mm
)
#savefig(pg,"test.pdf")
end
gives
so far so good.
Also pgfplotsx() is fine but if I want to use plotly() (or plotlyjs()) I get
with all the labels grouped together which makes it ambiguous.
Why the different behavior?
Any suggestions to “fix” the plotly case?