Changeset 4992ff2 in sasview for src/sas/qtgui/Plotting/ColorMap.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/ColorMap.py
- Property mode changed from 100755 to 100644
rb3e8629 r4992ff2 2 2 Allows users to change the range of the current graph 3 3 """ 4 from PyQt4 import QtGui 5 from PyQt4 import QtCore 4 from PyQt5 import QtCore 5 from PyQt5 import QtGui 6 from PyQt5 import QtWidgets 6 7 import sas.qtgui.path_prepare 7 8 … … 10 11 import numpy 11 12 12 from matplotlib.backends.backend_qt 4agg import FigureCanvasQTAgg as FigureCanvas13 from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas 13 14 from sas.qtgui.Plotting.PlotterData import Data2D 14 15 from sas.qtgui.Utilities.GuiUtils import formatNumber … … 21 22 from sas.qtgui.Plotting.UI.ColorMapUI import Ui_ColorMapUI 22 23 23 class ColorMap(Qt Gui.QDialog, Ui_ColorMapUI):24 class ColorMap(QtWidgets.QDialog, Ui_ColorMapUI): 24 25 apply_signal = QtCore.pyqtSignal(tuple, str) 25 26 def __init__(self, parent=None, cmap=None, vmin=0.0, vmax=100.0, data=None): … … 71 72 72 73 # Handle the Reset button click 73 self.buttonBox.button(Qt Gui.QDialogButtonBox.Reset).clicked.connect(self.onReset)74 self.buttonBox.button(QtWidgets.QDialogButtonBox.Reset).clicked.connect(self.onReset) 74 75 75 76 # Handle the Apply button click 76 self.buttonBox.button(Qt Gui.QDialogButtonBox.Apply).clicked.connect(self.onApply)77 self.buttonBox.button(QtWidgets.QDialogButtonBox.Apply).clicked.connect(self.onApply) 77 78 78 79 # Handle the amplitude setup … … 161 162 self.slider.setOrientation(QtCore.Qt.Horizontal) 162 163 163 self.slider_label = Qt Gui.QLabel()164 self.slider_label = QtWidgets.QLabel() 164 165 self.slider_label.setText("Drag the sliders to adjust color range.") 165 166 … … 192 193 self.canvas = FigureCanvas(self.fig) 193 194 194 layout = Qt Gui.QVBoxLayout()195 layout = QtWidgets.QVBoxLayout() 195 196 layout.addWidget(self.slider_label) 196 197 layout.addWidget(self.slider)
Note: See TracChangeset
for help on using the changeset viewer.