Skip to content

Commit dae0b87

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 matplotlib#5767, matplotlib#5738.
1 parent 0abca30 commit dae0b87

23 files changed

Lines changed: 3494 additions & 3593 deletions
Binary file not shown.
164 Bytes
Loading

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

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

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

Lines changed: 107 additions & 127 deletions
Loading
-2.19 KB
Loading

0 commit comments

Comments
 (0)