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

Don't simplify paths used for autoscaling#24177

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:mainfromQuLogic:small-autoscale
Oct 15, 2022

Conversation

QuLogic
Copy link
Member

PR Summary

Path simplification is really scaled for pixel/display unit outputs, but paths in autoscaling are in data units. This sometimes causes autoscaling to pick the wrong limits, as the simplified paths may be smaller than the originals.

This uses a simplified copy of the bin paths from#24097, skipping the whole random generation and histogram step in favour hardcoding the array.

Fixes#24097

PR Checklist

Tests and Styling

  • Has pytest style unit tests (andpytest passes).
  • IsFlake 8 compliant (installflake8-docstrings and runflake8 --docstring-convention=all).

Documentation

  • New features are documented, with examples if plot related.
  • 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).
  • Documentation is sphinx and numpydoc compliant (the docs shouldbuild without error).

Path simplification is really scaled for pixel/display unit outputs, butpaths in autoscaling are in data units. This sometimes causesautoscaling to pick the wrong limits, as the simplified paths may besmaller than the originals.Fixesmatplotlib#24097
@QuLogicQuLogic added this to thev3.6.2 milestoneOct 15, 2022
@anntzeranntzer merged commit8be23b6 intomatplotlib:mainOct 15, 2022
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull requestOct 15, 2022
@QuLogicQuLogic deleted the small-autoscale branchOctober 17, 2022 20:57
QuLogic added a commit that referenced this pull requestOct 17, 2022
…177-on-v3.6.xBackport PR#24177 on branch v3.6.x (Don't simplify paths used for autoscaling)
@ksundenksunden mentioned this pull requestFeb 20, 2023
6 tasks
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@anntzeranntzeranntzer approved these changes

@oscargusoscargusoscargus approved these changes

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

Successfully merging this pull request may close these issues.

[Bug]: ax.hist density not auto-scaled when using histtype='step'
3 participants
@QuLogic@anntzer@oscargus

[8]ページ先頭

©2009-2025 Movatter.jp