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

Skip to content

Commit b3aa667

Browse files
committed
Don't support passing None instead of "none" as errorbar format.
1 parent 68c31d7 commit b3aa667

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

doc/api/api_changes/2017-09-22-AL-removal-of-deprecated-features.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,6 @@ The ``spectral`` colormap has been removed. The ``Vega*`` colormaps, which
1717
were aliases for the ``tab*`` colormaps, have been removed.
1818

1919
``mencoder`` can no longer be used to encode animations.
20+
21+
Passing ``None`` instead of ``"none"`` as format to `~.Axes.errorbar` is no
22+
longer supported.

lib/matplotlib/axes/_axes.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2857,13 +2857,6 @@ def errorbar(self, x, y, yerr=None, xerr=None,
28572857
holdstate = self._hold
28582858
self._hold = True
28592859

2860-
if fmt is None:
2861-
fmt = 'none'
2862-
msg = ('Use of None object as fmt keyword argument to ' +
2863-
'suppress plotting of data values is deprecated ' +
2864-
'since 1.4; use the string "none" instead.')
2865-
warnings.warn(msg, mplDeprecation, stacklevel=1)
2866-
28672860
plot_line = (fmt.lower() != 'none')
28682861
label = kwargs.pop("label", None)
28692862

0 commit comments

Comments
 (0)