Changeset d6d411d in sasview for guitools/plottables.py


Ignore:
Timestamp:
Jul 21, 2008 2:05:25 PM (16 years ago)
Author:
Mathieu Doucet <doucetm@…>
Branches:
master, 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, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
6aaf444
Parents:
be72312c
Message:

Bug fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guitools/plottables.py

    ra17ffdf rd6d411d  
    116116    would be nice. 
    117117    """ 
     118    def _xaxis_transformed(self, name, units): 
     119        """ 
     120            Change the property of the x axis 
     121            according to an axis transformation 
     122            (as opposed to changing the basic properties) 
     123        """ 
     124        self.prop["xlabel"] = "%s (%s)"%(name,units) 
     125        self.prop["xunit"] = units 
     126         
     127    def _yaxis_transformed(self, name, units): 
     128        """ 
     129            Change the property of the y axis 
     130            according to an axis transformation 
     131            (as opposed to changing the basic properties) 
     132        """ 
     133        self.prop["ylabel"] = "%s (%s)"%(name,units) 
     134        self.prop["yunit"] = units 
     135         
    118136    def xaxis(self,name,units): 
    119137        """Properties of the x axis. 
    120138        """ 
    121         if self.prop["xunit"] and units != self.prop["xunit"]: 
    122             pass 
    123             #print "Plottable: how do we handle non-commensurate units" 
    124139        self.prop["xlabel"] = "%s (%s)"%(name,units) 
    125140        self.prop["xunit"] = units 
     141        self.prop["xlabel_base"] = "%s (%s)"%(name,units) 
     142        self.prop["xunit_base"] = units 
    126143 
    127144    def yaxis(self,name,units): 
    128145        """Properties of the y axis. 
    129146        """ 
    130         if self.prop["yunit"] and units != self.prop["yunit"]: 
    131             pass 
    132             #print "Plottable: how do we handle non-commensurate units" 
    133147        self.prop["ylabel"] = "%s (%s)"%(name,units) 
    134148        self.prop["yunit"] = units 
     149        self.prop["ylabel_base"] = "%s (%s)"%(name,units) 
     150        self.prop["yunit_base"] = units 
    135151         
    136152    def title(self,name): 
Note: See TracChangeset for help on using the changeset viewer.