Skip to content

Commit 00954c4

Browse files
committed
Fix floating point issues in 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). Note that this requires working around a bug in numpy's implementation of divmod (numpy/numpy#6127). Many test images have changed! See matplotlib#5767. Probably also wraps up work on matplotlib#5738, but tests are missing.
1 parent 892fc5f commit 00954c4

23 files changed

Lines changed: 3401 additions & 3440 deletions
Binary file not shown.
164 Bytes
Loading

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

Lines changed: 116 additions & 116 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)