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

Code removal #3992

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Feb 6, 2015
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
MNT : Remove NavigationToolbar2QTAgg
Deprecated is #2680 / e66039b
  • Loading branch information
tacaswell committed Jan 22, 2015
commit 056ba7a87e5bbd37dbf61a3c27329dc4f5648a54
5 changes: 5 additions & 0 deletions 5 doc/api/api_changes/code_removal.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,8 @@ Not used internally and not part of core mission of mpl.
Remove ``mlab.prepca``
----------------------
Deprecated in 2009.


Remove ``NavigationToolbar2QTAgg``
----------------------------------
Added no functionality over the base ``NavigationToolbar2Qt``
3 changes: 1 addition & 2 deletions 3 lib/matplotlib/backends/backend_qt4agg.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import matplotlib
from matplotlib.figure import Figure

from .backend_qt5agg import NavigationToolbar2QTAgg

from .backend_qt5agg import FigureCanvasQTAggBase

from .backend_agg import FigureCanvasAgg
Expand All @@ -27,7 +27,6 @@
from .backend_qt4 import draw_if_interactive
from .backend_qt4 import backend_version
######
from matplotlib.cbook import mplDeprecation

DEBUG = False

Expand Down
15 changes: 0 additions & 15 deletions 15 lib/matplotlib/backends/backend_qt5agg.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,9 @@

import six

import os # not used
import sys
import ctypes
import warnings

import matplotlib
from matplotlib.figure import Figure

from .backend_agg import FigureCanvasAgg
Expand All @@ -28,8 +25,6 @@
######


from matplotlib.cbook import mplDeprecation

DEBUG = False

_decref = ctypes.pythonapi.Py_DecRef
Expand Down Expand Up @@ -201,15 +196,5 @@ def __init__(self, figure):
self._priv_update = self.update


class NavigationToolbar2QTAgg(NavigationToolbar2QT):
def __init__(*args, **kwargs):
warnings.warn('This class has been deprecated in 1.4 ' +
'as it has no additional functionality over ' +
'`NavigationToolbar2QT`. Please change your code to '
'use `NavigationToolbar2QT` instead',
mplDeprecation)
NavigationToolbar2QT.__init__(*args, **kwargs)


FigureCanvas = FigureCanvasQTAgg
FigureManager = FigureManagerQT
Morty Proxy This is a proxified and sanitized view of the page, visit original site.