Changeset fed94a2 in sasview for src/sas/qtgui/Plotter.py


Ignore:
Timestamp:
Jan 9, 2017 1:28:03 AM (7 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:
a66ff280
Parents:
570a58f9
Message:

Improved label formatting in charts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Plotter.py

    r570a58f9 rfed94a2  
    2222 
    2323        self.parent = parent 
    24         self.addText = AddText(self) 
    2524 
    2625        # Dictionary of {plot_id:Data1d} 
     
    2928        # Simple window for data display 
    3029        self.txt_widget = QtGui.QTextEdit(None) 
    31  
     30        # Window for text add 
     31        self.addText = AddText(self) 
     32 
     33        # Log-ness of the axes 
    3234        self.xLogLabel = "log10(x)" 
    3335        self.yLogLabel = "log10(y)" 
     
    3941 
    4042        # Add a slot for receiving update signal from LinearFit 
    41         # NEW style signals - don't work! 
     43        # NEW style signals 
    4244        #self.updatePlot = QtCore.pyqtSignal(tuple) 
    43         #self.updatePlot.connect(self.updateWithData) 
    44         # OLD style signals - work perfectly 
     45        # self.updatePlot.connect(self.onFitDisplay) 
     46        # OLD style signals 
    4547        QtCore.QObject.connect(self, QtCore.SIGNAL('updatePlot'), self.onFitDisplay) 
    4648 
     
    6870        is_fit = (self._data.id=="fit") 
    6971 
    70         # Shortcut for an axis 
     72        # Shortcut for the current axis 
    7173        ax = self.ax 
    7274 
     
    436438                self.removePlot(id) 
    437439                continue 
     440 
    438441            new_xlabel, new_ylabel, xscale, yscale =\ 
    439442                GuiUtils.xyTransform(current_plot, xLabel, yLabel) 
Note: See TracChangeset for help on using the changeset viewer.