Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9af2990

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

File tree

Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed

‎lib/matplotlib/axes/_base.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_base.py
+5-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.