Changeset 4992ff2 in sasview for src/sas/qtgui/Plotting/Plotter2D.py


Ignore:
Timestamp:
Nov 9, 2017 8:43:07 AM (6 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
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)
Message:

Initial, in-progress version. Not really working atm. SASVIEW-787

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Plotting/Plotter2D.py

    rcee5c78 r4992ff2  
    44import functools 
    55 
    6 from PyQt4 import QtGui 
    7 from PyQt4 import QtCore 
     6from PyQt5 import QtCore 
     7from PyQt5 import QtGui 
     8from PyQt5 import QtWidgets 
    89 
    910DEFAULT_CMAP = pylab.cm.jet 
     11 
     12#import sys 
     13#print("SYS.PATH = ", sys.path) 
     14import matplotlib as mpl 
     15mpl.use("Qt5Agg") 
     16 
    1017from mpl_toolkits.mplot3d import Axes3D 
    1118 
     
    365372        color_map_dialog.apply_signal.connect(self.onApplyMap) 
    366373 
    367         if color_map_dialog.exec_() == QtGui.QDialog.Accepted: 
     374        if color_map_dialog.exec_() == QtWidgets.QDialog.Accepted: 
    368375            self.onApplyMap(color_map_dialog.norm(), color_map_dialog.cmap()) 
    369376 
     
    503510 
    504511 
    505 class Plotter2D(QtGui.QDialog, Plotter2DWidget): 
     512class Plotter2D(QtWidgets.QDialog, Plotter2DWidget): 
    506513    """ 
    507514    Plotter widget implementation 
    508515    """ 
    509516    def __init__(self, parent=None, quickplot=False, dimension=2): 
    510         QtGui.QDialog.__init__(self) 
     517        QtWidgets.QDialog.__init__(self) 
    511518        Plotter2DWidget.__init__(self, manager=parent, quickplot=quickplot, dimension=dimension) 
    512519        icon = QtGui.QIcon() 
Note: See TracChangeset for help on using the changeset viewer.