8000 Tweak the deprecation warning for pyplot.hold · matplotlib/matplotlib@49ed95d · GitHub
[go: up one dir, main page]

Skip to content

Commit 49ed95d

Browse files
author
Nathan Goldbaum
committed
Tweak the deprecation warning for pyplot.hold
1 parent a889cff commit 49ed95d
8000

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/matplotlib/pyplot.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -775,9 +775,10 @@ def figlegend(handles, labels, loc, **kwargs):
775775

776776
## Figure and Axes hybrid ##
777777

778-
_hold_msg = """Future behavior will be consistent with the long-time
779-
default: plot commands add elements without first
780-
clearing the Axes and/or Figure."""
778+
_hold_msg = """pyplot.hold is deprecated.
779+
Future behavior will be consistent with the long-time default:
780+
plot commands add elements without first clearing the
781+
Axes and/or Figure."""
781782

782783
@deprecated("2.0", message=_hold_msg)
783784
def hold(b=None):

0 commit comments

Comments
 (0)
0