File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed
Filter options
Expand file tree Collapse file tree 3 files changed +15
-4
lines changed
Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ For new features that were added to matplotlib, please see
14
14
Changes in 1.2.x
15
15
================
16
16
17
+ * The ``classic `` option of the rc parameter ``toolbar `` is deprecated
18
+ and will be removed in the next release.
19
+
17
20
* The :meth: `~matplotlib.cbook.isvector ` method has been removed since it
18
21
is no longer functional.
19
22
Original file line number Diff line number Diff line change @@ -110,9 +110,17 @@ def validate_backend(s):
110
110
111
111
validate_qt4 = ValidateInStrings ('backend.qt4' , ['PyQt4' , 'PySide' ])
112
112
113
- validate_toolbar = ValidateInStrings ('toolbar' ,[
114
- 'None' ,'classic' ,'toolbar2' ,
115
- ], ignorecase = True )
113
+ def validate_toolbar (s ):
114
+ validator = ValidateInStrings (
115
+ '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
116
124
117
125
def validate_maskedarray (v ):
118
126
# 2008/12/12: start warning; later, remove all traces of maskedarray
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ backend : %(backend)s
47
47
#backend_fallback: True
48
48
49
49
#interactive : False
50
- #toolbar : toolbar2 # None | classic | toolbar2
50
+ #toolbar : toolbar2 # None | toolbar2 (" classic" is deprecated)
51
51
#timezone : UTC # a pytz timezone string, eg US/Central or Europe/Paris
52
52
53
53
# Where your matplotlib data lives if you installed to a non-default
You can’t perform that action at this time.
0 commit comments