8000 More precise choice of axes limits. · jenshnielsen/matplotlib@6d23c8e · GitHub
[go: up one dir, main page]

Skip to content

Commit 6d23c8e

Browse files
anntzerjenshnielsen
authored andcommitted
More precise choice of axes limits.
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.
1 parent b8d8b1b commit 6d23c8e

23 files changed

+3495
-3593
lines changed
Binary file not shown.
Loading

lib/matplotlib/tests/baseline_images/test_axes/autoscale_tiny_range.svg

Lines changed: 194 additions & 242 deletions
Loading
Loading
Binary file not shown.

lib/matplotlib/tests/baseline_images/test_axes/errorbar_mixed.svg

Lines changed: 506 additions & 506 deletions
Loading
Binary file not shown.
Loading

lib/matplotlib/tests/baseline_images/test_axes/formatter_large_small.svg

Lines changed: 107 additions & 127 deletions
Loading
Loading

0 commit comments

Comments
 (0)
0