|
34 | 34 | from matplotlib.backend_bases import _has_pil |
35 | 35 |
|
36 | 36 | from matplotlib._pylab_helpers import Gcf |
37 | | -from matplotlib.cbook import is_writable_file_like, warn_deprecated, deprecated |
| 37 | +from matplotlib.cbook import is_writable_file_like, warn_deprecated |
38 | 38 | from matplotlib.figure import Figure |
39 | 39 | from matplotlib.path import Path |
40 | 40 | from matplotlib.transforms import Affine2D |
@@ -1474,7 +1474,7 @@ def updateButtonText(self, lst): |
1474 | 1474 | } |
1475 | 1475 |
|
1476 | 1476 |
|
1477 | | -@deprecated("2.2") |
| 1477 | +@cbook.deprecated("2.2") |
1478 | 1478 | class SubplotToolWX(wx.Frame): |
1479 | 1479 | def __init__(self, targetfig): |
1480 | 1480 | wx.Frame.__init__(self, None, -1, "Configure subplots") |
@@ -1700,6 +1700,11 @@ def set_history_buttons(self): |
1700 | 1700 | self.EnableTool(self.wx_ids['Forward'], can_forward) |
1701 | 1701 |
|
1702 | 1702 |
|
| 1703 | +@cbook.deprecated("2.2", alternative="NavigationToolbar2Wx") |
| 1704 | +class Toolbar(NavigationToolbar2Wx): |
| 1705 | + pass |
| 1706 | + |
| 1707 | + |
1703 | 1708 | class StatusBarWx(wx.StatusBar): |
1704 | 1709 | """ |
1705 | 1710 | A status bar is added to _FigureFrame to allow measurements and the |
@@ -1957,15 +1962,6 @@ def OnPrintPage(self, page): |
1957 | 1962 | return True |
1958 | 1963 | # > |
1959 | 1964 |
|
1960 | | -######################################################################## |
1961 | | -# |
1962 | | -# Now just provide the standard names that backend.__init__ is expecting |
1963 | | -# |
1964 | | -######################################################################## |
1965 | | - |
1966 | | - |
1967 | | -Toolbar = NavigationToolbar2Wx |
1968 | | - |
1969 | 1965 |
|
1970 | 1966 | @_Backend.export |
1971 | 1967 | class _BackendWx(_Backend): |
|
0 commit comments