Skip to content

Commit 9af2990

Browse files
author
Nathan Goldbaum
committed
Improve the deprecation warning for axes.hold
1 parent 49ed95d commit 9af2990

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@
4242
is_string_like = cbook.is_string_like
4343
is_sequence_of_strings = cbook.is_sequence_of_strings
4444

45+
_hold_msg = """axes.hold is deprecated.
46+
See the API Changes document (http://matplotlib.org/api/api_changes.html)
47+
for more details."""
48+
4549

4650
def _process_plot_format(fmt):
4751
"""
@@ -1202,7 +1206,7 @@ def ishold(self):
12021206

12031207
return self._hold
12041208

1205-
@cbook.deprecated("2.0")
1209+
@cbook.deprecated("2.0", message=_hold_msg)
12061210
def hold(self, b=None):
12071211
"""
12081212
Set the hold state

0 commit comments

Comments
 (0)