Changeset cb4d219 in sasview for src/sas/qtgui/Plotting


Ignore:
Timestamp:
Nov 24, 2017 4:13:11 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:
8f83719f
Parents:
c6fb57c
Message:

Minor layout changes to corfunc. Transformed plots now in Data Explorer. SASVIEW-608

File:
1 edited

Legend:

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

    rf1f3e6a rcb4d219  
    4949        """ data setter """ 
    5050        self._data = value 
    51         self.xLabel = "%s(%s)"%(value._xaxis, value._xunit) 
    52         self.yLabel = "%s(%s)"%(value._yaxis, value._yunit) 
    53         if value.isSesans: 
     51        if value._xunit: 
     52            self.xLabel = "%s(%s)"%(value._xaxis, value._xunit) 
     53        else: 
     54            self.xLabel = "%s"%(value._xaxis) 
     55        if value._yunit: 
     56            self.yLabel = "%s(%s)"%(value._yaxis, value._yunit) 
     57        else: 
     58            self.yLabel = "%s"%(value._yaxis) 
     59 
     60        if value.scale == 'linear' or value.isSesans: 
    5461            self.xscale = 'linear' 
    5562            self.yscale = 'linear' 
     
    8390            # Try name first 
    8491            try: 
    85                 marker = PlotUtilities.SHAPES[marker] 
     92                marker = dict(PlotUtilities.SHAPES)[marker] 
    8693            except KeyError: 
    87                 marker = list(PlotUtilities.SHAPES.values())[marker] 
     94                list(PlotUtilities.SHAPES.values())[marker] 
    8895 
    8996        assert marker is not None 
Note: See TracChangeset for help on using the changeset viewer.