FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

More precise choice of axes limits. by tacaswell · Pull Request #6192 · matplotlib/matplotlib · GitHub

Repository navigation

More precise choice of axes limits. - #6192

Merged
tacaswell merged 1 commit into
matplotlib:masterfrom
jenshnielsen:tighter-axes-limits
Mar 20, 2016
Merged

tacaswell merged 1 commit into
matplotlib:masterfrom
jenshnielsen:tighter-axes-limits

Conversation

Copy link
Copy Markdown
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 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 merged commit 996f3ec into matplotlib:master Mar 20, 2016
tacaswell added a commit that referenced this pull request Mar 20, 2016

Copy link
Copy Markdown
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.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

2 participants


Back | FazBrowse Home | New Git URL