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

FIX: Don't subslice lines if non-standard transform#21017

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

Conversation

jklymak
Copy link
Member

PR Summary

Line2D objects are "sub sliced" if they are well-ordered, and their view window is smaller than the actual data extents. However, if someone applies a transform, in particular a lateral translation, then the data all ends up out of view. This adds a check to only apply the subslice algorithm if the transform isax.transData.

Closes#21008

PR Checklist

  • Has pytest style unit tests (andpytest passes).
  • IsFlake 8 compliant (runflake8 on changed files to check).
  • New features are documented, with examples if plot related.
  • Documentation is sphinx and numpydoc compliant (the docs shouldbuild without error).
  • Conforms to Matplotlib style conventions (installflake8-docstrings and runflake8 --docstring-convention=all).
  • New features have an entry indoc/users/next_whats_new/ (follow instructions in README.rst there).
  • API changes documented indoc/api/next_api_changes/ (follow instructions in README.rst there).

@jklymakjklymak added this to thev3.4.4 milestoneSep 8, 2021
@jklymakjklymakforce-pushed thefix-no-subslice-transform branch from7ff497c to7c3147bCompareSeptember 8, 2021 07:15
Copy link
Contributor

@anntzeranntzer left a comment

Choose a reason for hiding this comment

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

A test would be nice, but I won't insist on it (I assume that you verified locally that it works :-))

@jklymak
Copy link
MemberAuthor

No I'll add a test. Just was interrupted.

@jklymakjklymakforce-pushed thefix-no-subslice-transform branch frome1ca3e7 to391cb76CompareSeptember 8, 2021 11:55
@jklymak
Copy link
MemberAuthor

New commit adds a test that fails on master with all the data sliced out, and is fine with this PR.

@jklymakjklymakforce-pushed thefix-no-subslice-transform branch from391cb76 toeba5cdcCompareSeptember 8, 2021 12:01
@jklymakjklymak changed the titleFIX: Don't subslice lines if non-standar transformFIX: Don't subslice lines if non-standard transformSep 8, 2021
@timhoffmtimhoffm merged commitb9ea8ce intomatplotlib:masterSep 9, 2021
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull requestSep 9, 2021
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull requestSep 9, 2021
QuLogic added a commit that referenced this pull requestSep 9, 2021
…017-on-v3.5.xBackport PR#21017 on branch v3.5.x (FIX: Don't subslice lines if non-standard transform)
QuLogic added a commit that referenced this pull requestSep 10, 2021
…017-on-v3.4.xBackport PR#21017 on branch v3.4.x (FIX: Don't subslice lines if non-standard transform)
tacaswell pushed a commit that referenced this pull requestOct 20, 2021
FIX: Don't subslice lines if non-standard transform
@QuLogicQuLogic modified the milestones:v3.4.4,v3.5.0Nov 16, 2021
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@anntzeranntzeranntzer approved these changes

@timhoffmtimhoffmtimhoffm approved these changes

@dstansbydstansbydstansby approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
v3.5.0
Development

Successfully merging this pull request may close these issues.

[Bug]: transform keyword in ax.plot(...)
5 participants
@jklymak@anntzer@timhoffm@dstansby@QuLogic

[8]ページ先頭

©2009-2025 Movatter.jp