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

Disable sticky edge accumulation if no autoscaling.#12547

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

QuLogic
Copy link
Member

PR Summary

If there's no margin to be added, we don't need sticky edges, but if autoscaling is off, wealso don't need the sticky edges. This saves a lot of time when plotting many artists, like in#12542.

Note this doesn't fix the problem in#12542, it just helps if you've already disabled autoscale as in#12542 (comment) in that you don't need to disable sticky edges yourself as well.

PR Checklist

  • Has Pytest style unit tests
  • Code isFlake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

If there's no margin to be added, we don't need sticky edges, but ifautoscaling is off, we _also_ don't need the sticky edges. This saves alot of time when plotting many artists, like inmatplotlib#12542.
@jklymak
Copy link
Member

I've never looked at this part of the code - what happens if the user turns autoscale on after the artists are added?

@QuLogic
Copy link
MemberAuthor

Nothing different from before. This list is just used in the helper function below, which returns early in the cases just added to the condition.

@tacaswelltacaswell added this to thev3.1 milestoneOct 17, 2018
@dopplershiftdopplershift merged commita2d2b80 intomatplotlib:masterOct 17, 2018
@QuLogicQuLogic deleted the disable-stickies-more branchOctober 17, 2018 21:52
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@tacaswelltacaswelltacaswell approved these changes

@dopplershiftdopplershiftdopplershift approved these changes

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

Successfully merging this pull request may close these issues.

4 participants
@QuLogic@jklymak@tacaswell@dopplershift

[8]ページ先頭

©2009-2025 Movatter.jp