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

Re-cache Line2D path when transform changed#24817

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

Draft
dstansby wants to merge2 commits intomatplotlib:main
base:main
Choose a base branch
Loading
fromdstansby:polar-draw

Conversation

dstansby
Copy link
Member

PR Summary

When the transform of aLine2D is changed, re-calculate the transformed path. This is needed in the case of polar plots where a line is drawn, and the radial limits on the axes changed. This changes the transform of the line, which requires recomputation of its path. Because only the non-affine part of the transform is cached inLine2D, this does not show up for normal cartesian axes, because changing the y-limits does not change the non-affine part of the transform.

Fixes#24790

PR Checklist

Documentation and Tests

  • Has pytest style unit tests (andpytest passes)
  • Documentation is sphinx and numpydoc compliant (the docs shouldbuild without error).
  • New plotting related features are documented with examples.

Release Notes

  • New features are marked with a.. versionadded:: directive in the docstring and documented indoc/users/next_whats_new/
  • API changes are marked with a.. versionchanged:: directive in the docstring and documented indoc/api/next_api_changes/
  • Release notes conform with instructions innext_whats_new/README.rst ornext_api_changes/README.rst

@dstansby
Copy link
MemberAuthor

Hmm, it turns out that this breaks path caching. In general what I want to do here is check if thenon-affine part of the transform has changed, but as far as I can tell that's not possible with the current transforms API?

@QuLogic
Copy link
Member

According to@anntzer in#25282,INVALID_NON_AFFINE is never used, so I guess only checking for a full invaldation is possible.

@afarcy
Copy link

Is there a chance that a combination of both PRs could solve the issue ?

@dstansbydstansby marked this pull request as draftJanuary 6, 2024 09:42
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

[Bug]: Polar plot wrong Y values when set_ylim is used
3 participants
@dstansby@QuLogic@afarcy

[8]ページ先頭

©2009-2025 Movatter.jp