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]: Add test for annotate(textcoods="offset fontsize") #25907

Closed
@anntzer

Description

@anntzer

Problem

annotate() currently supports (in particular) specifying the position of the text in "offset points" and "offset pixels" relative to the position of the point being annotated.
It would be nice to also support "offset font" (perhaps spelt "offset fontsize", but I'm not sure the extra verbosity helps), which would be a offset but in units of the fontsize (of the annotation text). This is useful e.g. when using annotate() to generate subplot labels (#25905), where it makes sense to say "I want to put the label at the top right of the axes, offset from the corner by half-a-fontsize rightwards and downwards" (xytext=(.5, -.5), xycoords="offset font").

Proposed solution

No response


As noted below this is actually already present (and has now been documented as such), but adding tests would be nice.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp