Change xlabel position

In the example the annotation is not showing up because it is outside of the figure margins. This works:

julia> using Plots, Plots.Measures

julia> plot(1:10, rand(1:2, 10),margin=1cm)

julia> annotate!(7, 0.8, "my nice xlabel")


image

2 Likes