From b8aabfce99e46e045567c8c8bedb85eb97ff33eb Mon Sep 17 00:00:00 2001 From: Sebastian Wehling-Benatelli Date: Tue, 7 Jul 2015 10:49:42 +0200 Subject: [PATCH] implement changes proposed by deprecation warning from matplotlib --- pylot/core/util/widgets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index e9b4e3ea..b8f2e784 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -10,7 +10,7 @@ import numpy as np from matplotlib.figure import Figure from matplotlib.backends.backend_qt4agg import FigureCanvas -from matplotlib.backends.backend_qt4agg import NavigationToolbar2QTAgg +from matplotlib.backends.backend_qt4agg import NavigationToolbar2QT from matplotlib.widgets import MultiCursor from PySide.QtGui import QAction, QApplication, QComboBox, QDateTimeEdit, \ QDialog, QDialogButtonBox, QDoubleSpinBox, QGroupBox, QGridLayout, \ @@ -217,7 +217,7 @@ class PickDlg(QDialog): def setupUi(self): # create matplotlib toolbar to inherit functionality - self.figToolBar = NavigationToolbar2QTAgg(self.getPlotWidget(), self) + self.figToolBar = NavigationToolbar2QT(self.getPlotWidget(), self) self.figToolBar.hide() # create icons