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

secondary y axis title goes in a wrong place

Open montyvesselinov opened this issue 6 years ago • 4 comments

Plots.plot(rand(10); ylabel="a") Plots.plot!(Plots.twinx(), rand(10); ylabel="b")

montyvesselinov avatar Dec 07 '18 20:12 montyvesselinov

Just came across this looking for how to add a secondary y axis, thought I'd add a picture and clarify that "wrong place" means it is cut off.

secondaryaxis

BioTurboNick avatar Jun 05 '19 01:06 BioTurboNick

dup of #2205?

edit: also that issue includes a workaround, namely setting right_margin explicitly.

ssfrr avatar Feb 25 '20 17:02 ssfrr

If plotly backend is used, the secondary y axis goes to the left. Plots.jl version: 1.25.10

image

liupgd avatar Feb 19 '22 12:02 liupgd

For plotly it is a duplicate of https://github.com/JuliaPlots/Plots.jl/issues/2956

BeastyBlacksmith avatar Feb 28 '22 14:02 BeastyBlacksmith

Closed by https://github.com/JuliaPlots/Plots.jl/pull/4488.

t-bltg avatar Nov 01 '22 20:11 t-bltg