Ignore:
Timestamp:
Jan 24, 2018 3:52:41 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:
116dd4c1
Parents:
0764593
Message:

Fixed text add functionality on plots - SASVIEW-859

File:
1 edited

Legend:

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

    r8f83719f reb1a386  
    66from PyQt5 import QtWidgets, QtPrintSupport 
    77 
    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.html 
    11 # 
    12 # matplotlib.use("Qt5Agg") 
    138from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas 
    149from matplotlib.backends.backend_qt5agg import NavigationToolbar2QT as NavigationToolbar 
     
    3631 
    3732        #plt.style.use('ggplot') 
    38         plt.style.use('seaborn-darkgrid') 
     33        #plt.style.use('seaborn-darkgrid') 
    3934 
    4035        # a figure instance to plot on 
     
    176171    def xscale(self, scale='linear'): 
    177172        """ X-axis scale setter """ 
     173        self.ax.cla() 
    178174        self.ax.set_xscale(scale) 
    179175        self._xscale = scale 
Note: See TracChangeset for help on using the changeset viewer.