Changeset eb1a386 in sasview for src/sas/qtgui/Plotting/PlotterBase.py
- Timestamp:
- Jan 24, 2018 3:52:41 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:
- 116dd4c1
- Parents:
- 0764593
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Plotting/PlotterBase.py
r8f83719f reb1a386 6 6 from PyQt5 import QtWidgets, QtPrintSupport 7 7 8 # TODO: Replace the qt4agg calls below with qt5 equivalent.9 # Requires some code modifications.10 # https://www.boxcontrol.net/embedding-matplotlib-plot-on-pyqt5-gui.html11 #12 # matplotlib.use("Qt5Agg")13 8 from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas 14 9 from matplotlib.backends.backend_qt5agg import NavigationToolbar2QT as NavigationToolbar … … 36 31 37 32 #plt.style.use('ggplot') 38 plt.style.use('seaborn-darkgrid')33 #plt.style.use('seaborn-darkgrid') 39 34 40 35 # a figure instance to plot on … … 176 171 def xscale(self, scale='linear'): 177 172 """ X-axis scale setter """ 173 self.ax.cla() 178 174 self.ax.set_xscale(scale) 179 175 self._xscale = scale
Note: See TracChangeset
for help on using the changeset viewer.