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 a4bdb1a

Browse filesBrowse files
committed
MNT : Remove NavigationToolbar2QTAgg
Deprecated is #2680 / e66039b
1 parent f7113d4 commit a4bdb1a
Copy full SHA for a4bdb1a

File tree

Expand file treeCollapse file tree

3 files changed

+6
-17
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+6
-17
lines changed

‎doc/api/api_changes/code_removal.rst

Copy file name to clipboardExpand all lines: doc/api/api_changes/code_removal.rst
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,8 @@ Not used internally and not part of core mission of mpl.
8080
Remove ``mlab.prepca``
8181
----------------------
8282
Deprecated in 2009.
83+
84+
85+
Remove ``NavigationToolbar2QTAgg``
86+
----------------------------------
87+
Added no functionality over the base ``NavigationToolbar2Qt``

‎lib/matplotlib/backends/backend_qt4agg.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_qt4agg.py
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import matplotlib
1515
from matplotlib.figure import Figure
1616

17-
from .backend_qt5agg import NavigationToolbar2QTAgg
17+
1818
from .backend_qt5agg import FigureCanvasQTAggBase
1919

2020
from .backend_agg import FigureCanvasAgg
@@ -27,7 +27,6 @@
2727
from .backend_qt4 import draw_if_interactive
2828
from .backend_qt4 import backend_version
2929
######
30-
from matplotlib.cbook import mplDeprecation
3130

3231
DEBUG = False
3332

‎lib/matplotlib/backends/backend_qt5agg.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_qt5agg.py
-15Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,9 @@
66

77
import six
88

9-
import os # not used
109
import sys
1110
import ctypes
12-
import warnings
1311

14-
import matplotlib
1512
from matplotlib.figure import Figure
1613

1714
from .backend_agg import FigureCanvasAgg
@@ -28,8 +25,6 @@
2825
######
2926

3027

31-
from matplotlib.cbook import mplDeprecation
32-
3328
DEBUG = False
3429

3530
_decref = ctypes.pythonapi.Py_DecRef
@@ -201,15 +196,5 @@ def __init__(self, figure):
201196
self._priv_update = self.update
202197

203198

204-
class NavigationToolbar2QTAgg(NavigationToolbar2QT):
205-
def __init__(*args, **kwargs):
206-
warnings.warn('This class has been deprecated in 1.4 ' +
207-
'as it has no additional functionality over ' +
208-
'`NavigationToolbar2QT`. Please change your code to '
209-
'use `NavigationToolbar2QT` instead',
210-
mplDeprecation)
211-
NavigationToolbar2QT.__init__(*args, **kwargs)
212-
213-
214199
FigureCanvas = FigureCanvasQTAgg
215200
FigureManager = FigureManagerQT

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.