Changeset 4992ff2 in sasview for src/sas/qtgui/Plotting/Plotter2D.py
- Timestamp:
- Nov 9, 2017 8:43:07 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 7969b9c
- Parents:
- 7fb471d
- git-author:
- Piotr Rozyczko <rozyczko@…> (10/30/17 07:50:09)
- git-committer:
- Piotr Rozyczko <rozyczko@…> (11/09/17 08:43:07)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Plotting/Plotter2D.py
rcee5c78 r4992ff2 4 4 import functools 5 5 6 from PyQt4 import QtGui 7 from PyQt4 import QtCore 6 from PyQt5 import QtCore 7 from PyQt5 import QtGui 8 from PyQt5 import QtWidgets 8 9 9 10 DEFAULT_CMAP = pylab.cm.jet 11 12 #import sys 13 #print("SYS.PATH = ", sys.path) 14 import matplotlib as mpl 15 mpl.use("Qt5Agg") 16 10 17 from mpl_toolkits.mplot3d import Axes3D 11 18 … … 365 372 color_map_dialog.apply_signal.connect(self.onApplyMap) 366 373 367 if color_map_dialog.exec_() == Qt Gui.QDialog.Accepted:374 if color_map_dialog.exec_() == QtWidgets.QDialog.Accepted: 368 375 self.onApplyMap(color_map_dialog.norm(), color_map_dialog.cmap()) 369 376 … … 503 510 504 511 505 class Plotter2D(Qt Gui.QDialog, Plotter2DWidget):512 class Plotter2D(QtWidgets.QDialog, Plotter2DWidget): 506 513 """ 507 514 Plotter widget implementation 508 515 """ 509 516 def __init__(self, parent=None, quickplot=False, dimension=2): 510 Qt Gui.QDialog.__init__(self)517 QtWidgets.QDialog.__init__(self) 511 518 Plotter2DWidget.__init__(self, manager=parent, quickplot=quickplot, dimension=dimension) 512 519 icon = QtGui.QIcon()
Note: See TracChangeset
for help on using the changeset viewer.