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 9b7abbf commit df751c4Copy full SHA for df751c4
1 file changed
lib/matplotlib/rcsetup.py
@@ -110,9 +110,17 @@ def validate_backend(s):
110
111
validate_qt4 = ValidateInStrings('backend.qt4', ['PyQt4', 'PySide'])
112
113
-validate_toolbar = ValidateInStrings('toolbar',[
114
- 'None','classic','toolbar2',
115
- ], ignorecase=True)
+def validate_toolbar(s):
+ validator = ValidateInStrings(
+ 'toolbar',
116
+ ['None','classic','toolbar2'],
117
+ ignorecase=True)
118
+ s = validator(s)
119
+ if s.lower == 'classic':
120
+ warnings.warn("'classic' Navigation Toolbar "
121
+ "is deprecated in v1.2.x and will be "
122
+ "removed in v1.3")
123
+ return s
124
125
def validate_autolayout(v):
126
if v:
0 commit comments