Open toma-vlad opened 3 years ago
I have also tested
zm = scatter(x,y, label = false, framestyle = :box, ann = [(:tr, "corner")])
vs
zm = scatter(x,y, label = false, aspect_ratio = 1, framestyle = :box, ann = [(:tr, "corner")])
and in the 2nd case the annotation seems to behave as though the corner is placed where it would be if the axis were equal.
Details
First, I would like to mention, that I am relatively new to Julia and Plots, so maybe I am missing something.
If I run a file like this
try to
scatter
orplot
and then checkylims(zm)
I get one answer,which is also the correct one, if I
savefig(zm, "case1.png")
, more details further below. However, if I run it in one line, which I checked to be equivalent to having it inside the original file, then I get another answer.Additionally, I have checked the function
Plots.axis_limits(zm.subplot[1], :x)
and the same behaviour occurs.The actual renders
normal use
as expected, just calling the xlims() function doesn't affect the plot
somebody could do this if they wanted to add something like a rectangle to the plot, but keep the original axis limits.
Backends
This bug occurs on ( insert
x
below )Versions
Plots.jl version:
Backend version (
]st -m
):Output of
versioninfo()
: