Skip to content

annotation auto-locations don't work with xlims #2591

@ssfrr

Description

@ssfrr

It seems that the annotation position is computed in data coordinates before xlims (and presumably ylims) are applied, so if you specify a location as :bottomright etc. the annotation may be off-plot.

This works:

plot(rand(20), ann=[(:bottomright, "foobar")], xlims=(0,20))

But this has the annotation going offscreen:

plot(rand(20), ann=[(:bottomright, "foobar")], xlims=(0,18))

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions