Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[ENH]: Figure.annotate #25998

Open
Open
@anntzer

Description

@anntzer

Problem

As shown by#22390 (use annotate() to draw arrows),#25905 (use annotate for subplot labeling), and#25993 (use annotate for rainbow text), annotate()/Annotation() has a really powerful API 1) to draw arrows and 2) to position itself.
To a large extent, this is useful not only for Axes-level artists but also for (Sub)Figure-level ones, so it would be nice to also have Figure.annotate() (and perhaps also plt.figannotate(), not that I really care), matching as much as possible the API of Axes.annotate. (Currently one can already manually create an Annotation and call Figure.add_artist to add it.)

I think the main (only?) things that Figure.annotate() cannot support are xycoords/textcoords="axes points"/"axes pixels"/"axes fraction"/"data", and thus the default value of xycoords should thus be "figure fraction" (matching Figure.text()) instead of "data".

Proposed solution

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp