Changeset 31c5b58 in sasview for src/sas/qtgui/Plotter2D.py


Ignore:
Timestamp:
Nov 25, 2016 6:56:41 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:
3968752
Parents:
14d9c7b
Message:

Refactored to allow running with run.py.
Minor fixes to plotting.

File:
1 edited

Legend:

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

    • Property mode changed from 100755 to 100644
    r14d9c7b r31c5b58  
    1616DEFAULT_CMAP = pylab.cm.jet 
    1717 
    18 import PlotUtilities 
    19 import PlotHelper 
     18import sas.qtgui.PlotUtilities as PlotUtilities 
     19import sas.qtgui.PlotHelper as PlotHelper 
    2020 
    2121class Plotter2D(QtGui.QDialog): 
     
    4848        self._qx_data = [] 
    4949        self._qy_data = [] 
     50        self._color=0 
     51        self._symbol=0 
     52        self._scale = 'linear' 
    5053 
    5154        # default color map 
     
    5962        self.parent.communicator.activeGraphsSignal.emit(PlotHelper.currentPlots()) 
    6063 
     64    @property 
     65    def data(self): 
     66        return self._data 
     67 
     68    @data.setter 
    6169    def data(self, data=None): 
    6270        """ data setter """ 
     
    7078        self._zmin=data.zmin 
    7179        self._zmax=data.zmax 
    72         self._color=0 
    73         self._symbol=0 
    7480        self._label=data.name 
    75         self._scale = 'linear' 
    76  
    7781        self.x_label(xlabel=data._xaxis + data._xunit) 
    7882        self.y_label(ylabel=data._yaxis + data._yunit) 
Note: See TracChangeset for help on using the changeset viewer.