X Tutup
Skip to content

More precise choice of axes limits.#6192

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

More precise choice of axes limits.#6192
tacaswell merged 1 commit intomatplotlib:masterfrom
jenshnielsen:tighter-axes-limits

Conversation

@tacaswell
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 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
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.

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

X Tutup