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

Make set_x/ymargin() update axes limits, just like margins().#16340

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
efiring merged 1 commit intomatplotlib:masterfromanntzer:set_xmargin-autoscale
May 18, 2020

Conversation

anntzer
Copy link
Contributor

Previously, setting the margins via set_x/ymargin() would not update
axes limits, unlike calling margins(). This appears to be a simple
oversight.

Closes#7093.

PR Summary

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

@anntzeranntzer added this to thev3.3.0 milestoneJan 27, 2020
@QuLogic
Copy link
Member

What does the change to collections have to do with this? It seems unrelated, or at least unexplained.

@anntzer
Copy link
ContributorAuthor

It's actually needed because autoscaling triggers in a place where it was previously missing, and exposes a floating point inaccuracy previously present (which was then amplified by the old round-numbers autolimits behavior).

@QuLogic
Copy link
Member

OK, probably would have been clearer in a separate commit, or at least mentioned in the commit message.

@anntzeranntzerforce-pushed theset_xmargin-autoscale branch from1e491da tob5fd761CompareMarch 10, 2020 20:44
@anntzer
Copy link
ContributorAuthor

fair enough, edited the commit message.

Previously, setting the margins via set_x/ymargin() would not updateaxes limits, unlike calling margins().  This appears to be a simpleoversight.The change in collections.py is necessary because the difference intiming at which autoscale is executed now exposed a floating pointinaccuracy (which gets amplified by the old round_numbers autolimitsmode).
@anntzeranntzerforce-pushed theset_xmargin-autoscale branch fromb5fd761 to2292f7bCompareMay 6, 2020 13:12
@anntzer
Copy link
ContributorAuthor

The changes in collections.py were merged separately in#17206.

@efiringefiring merged commit42b2dff intomatplotlib:masterMay 18, 2020
@anntzeranntzer deleted the set_xmargin-autoscale branchMay 18, 2020 18:58
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@efiringefiringefiring approved these changes

@QuLogicQuLogicQuLogic approved these changes

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

Successfully merging this pull request may close these issues.

ordering issues betweenset_xmargin andset_xscale
3 participants
@anntzer@QuLogic@efiring

[8]ページ先頭

©2009-2025 Movatter.jp