Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More precise choice of axes limits. #6192

Merged
merged 1 commit into from Mar 20, 2016

Conversation

tacaswell
Copy link
Member

plt.plot([-.1, .2]) used to pick (in round numbers mode) [-.1, .25] as
ylims due to floating point inaccuracies; change it to pick [-.1, .2](up to floating point inaccuracies).

Support for the (unused and deprecated-in-comment) "trim" keyword
argument has been dropped as the way ticks are picked has changed.

Many test images have changed!

Implementation notes:

See #5767, #5738.

Replaces #5768

plt.plot([-.1, .2]) used to pick (in round numbers mode) [-.1, .25] as
ylims due to floating point inaccuracies; change it to pick [-.1, .2]
(up to floating point inaccuracies).

Support for the (unused and deprecated-in-comment) "trim" keyword
argument has been dropped as the way ticks are picked has changed.

Many test images have changed!

Implementation notes:
- A bug in numpy's implementation of divmod (numpy/numpy#6127) is worked
around.
- The implementation of scale_range has also been cleaned.

See matplotlib#5767, matplotlib#5738.
@tacaswell tacaswell added this to the 2.0 (style change major release) milestone Mar 20, 2016
tacaswell added a commit that referenced this pull request Mar 20, 2016
@tacaswell tacaswell merged commit 996f3ec into matplotlib:master Mar 20, 2016
tacaswell added a commit that referenced this pull request Mar 20, 2016
@tacaswell
Copy link
Member Author

Backported to v2.x as cd7a02e

This seems too disruptive to push back to 1.5.x, but could be convinced other wise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants