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

Use annotate coordinate systems to simplify label_subplots.#25905

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
anntzer merged 1 commit intomatplotlib:mainfromanntzer:ls
Dec 10, 2023

Conversation

anntzer
Copy link
Contributor

The ability of annotate to specify various coordinates systems simplifies label_subplots, by avoiding the need to explicitly construct a ScaledTranslation (while maintaining exact functionality parity).

PR summary

PR checklist

@anntzeranntzerforce-pushed thels branch 2 times, most recently fromfda95f2 to6a6b401CompareMay 21, 2023 10:41
@anntzer
Copy link
ContributorAuthor

Reordered the parameters; also switched to using "offset fontsize" in one of the two examples (thanks@saranti for pointing this out in#25907 (comment)) as that's the more natural unit here.

Comment on lines 25 to 31
# Put the label
# - at the top left corner (axes fraction (0, 1)),
# - offset half-a-fontsize right and half-a-fontsize down
# (offset fontsize (+0.5, -0.5)),
# i.e. just inside the axes.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I'm not sure if this would be better in the text above instead of a comment, but unfortunately, the CI-built docs have been garbage-collected now.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Re-triggered a CI run.

@anntzer
Copy link
ContributorAuthor

Should still be good to go.

@jklymak
Copy link
Member

I'm fine with this, and feel free to ping for a merge when docs finish.

But, did you consider keeping both in the example? ScaledTranslation is useful for other things, so an intuitive application has some value, even if there is a nicer way to do that application?

@anntzer
Copy link
ContributorAuthor

Fair point; I restored the use of ScaledTranslation for the second example (I don't think we need to have both versions for both examples, they are really the same).

jklymak reacted with thumbs up emoji

Copy link
Member

@jklymakjklymak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

For some reason pre-commit needs to be appeased.

The ability of annotate to specify various coordinates systemssimplifies label_subplots, by avoiding the need to explicitly constructa ScaledTranslation (while maintaining exact functionality parity).
@anntzer
Copy link
ContributorAuthor

anntzer commentedDec 10, 2023
edited
Loading

Oops, sorry misclicked :/ and accidentally merged just after pushing the pre-commit fix.@jklymak let me know if there's anything else you think should be fixed.

@QuLogicQuLogic added this to thev3.9.0 milestoneDec 11, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@QuLogicQuLogicQuLogic left review comments

@timhoffmtimhoffmtimhoffm left review comments

@jklymakjklymakjklymak approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v3.9.0
Development

Successfully merging this pull request may close these issues.

4 participants
@anntzer@jklymak@QuLogic@timhoffm

[8]ページ先頭

©2009-2025 Movatter.jp