Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c9e5ccc

Browse files
committed
DOC: move non-finite axis limits whats new to api changes
1 parent 48e2280 commit c9e5ccc

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

doc/api/api_changes.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,15 @@ The `matplotlib.lines` module no longer imports the `pts_to_prestep`,
362362
`pts_to_midstep` and `pts_to_poststep` functions from the `matplotlib.cbook`
363363
module.
364364

365+
Invalid (Non-finite) Axis Limit Error
366+
-------------------------------------
367+
368+
When using :func:`~matplotlib.axes.Axes.set_xlim` and
369+
:func:`~matplotlib.axes.Axes.set_ylim`, passing non-finite values now
370+
results in a ``ValueError``. The previous behavior resulted in the
371+
limits being erroneously reset to ``(-0.001, 0.001)``.
372+
373+
365374

366375
API Changes in 2.0.1
367376
====================

doc/users/whats_new.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -300,13 +300,6 @@ Pending
300300

301301

302302

303-
Invalid (Non-finite) Axis Limit Error
304-
-------------------------------------
305-
306-
When using :func:`~matplotlib.axes.Axes.set_xlim` and
307-
:func:`~matplotlib.axes.Axes.set_ylim`, passing non-finite values now results
308-
in a ``ValueError``. The previous behavior resulted in the limits being
309-
erroneously reset to ``(-0.001, 0.001)``.
310303

311304

312305
Metadata savefig keyword argument

0 commit comments

Comments
 (0)