Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5f3714 commit fbbbc51Copy full SHA for fbbbc51
lib/matplotlib/__init__.py
@@ -1501,6 +1501,20 @@ def test(verbosity=1):
1501
if old_backend.lower() != 'agg':
1502
use(old_backend)
1503
1504
+def deprecated_get_set(function, to_use):
1505
+ """Fuction to deprecate the getters and setter for a class
1506
+ argument.
1507
+
1508
+ Parameter
1509
+ ---------
1510
+ - function: function
1511
+ The function to deprecate.
1512
+ - to_use: string
1513
+ The argument to use instead of the deprecated function
1514
+ """
1515
+ msg = "{} is deprecated, please use the {} argument"
1516
+ msg = msg.format(function.__name__, to_use)
1517
+ warnings.warn(msg, mplDeprecation, stacklevel=1)
1518
return success
1519
1520
test.__test__ = False # nose: this function is not a test
0 commit comments