Sometimes it is convenient to squeeze in a rotated (eg. vertically placed) text in a thin figure. The annotate!()
method in Plots.jl seems to only produce horizontal text in the plot, is there any trick to rotate the text?
===Update===
solved: see
Hi,
I am trying to write some annotations in a plot, but instead of horizontally, I would like them to do that vertically.
I am using Julia 0.6.4. My code is like:
using Plots # Notice: I'm not using Pyplot package, but just the back-end!
pyplot()
# Initialize plot
wanted_font = font(9, "georgia")
fig_2 = plot(
tickfont = wanted_font, legendfont = wanted_font, guidefont = wanted_font,
xlabel = "My x-axis", ylabel = "My y-axis",
size = (600,300),
legend = false, grid = false,
xmin = 0, ym…
This work for my environment:
annotate!(5,10, Plots.text("text", 10, :dark, rotation = 90 ))```
Julia 1.4.2, Plots v1.4.3
1 Like
Hi,
your example does not work with plotly backend.
Is this not supported in plotly backend?
Note thath this example Works in GR backend.