Skip to content

Commit 846fde4

Browse files
committed
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 #5767, #5738.
1 parent 0abca30 commit 846fde4

23 files changed

+3490
-3593
lines changed
Binary file not shown.

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

Lines changed: 194 additions & 242 deletions
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.

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

Lines changed: 107 additions & 127 deletions
Loading

0 commit comments

Comments
 (0)