Changeset d6d411d in sasview for guitools/plottables.py
- Timestamp:
- Jul 21, 2008 2:05:25 PM (16 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guitools/plottables.py
ra17ffdf rd6d411d 116 116 would be nice. 117 117 """ 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 118 136 def xaxis(self,name,units): 119 137 """Properties of the x axis. 120 138 """ 121 if self.prop["xunit"] and units != self.prop["xunit"]:122 pass123 #print "Plottable: how do we handle non-commensurate units"124 139 self.prop["xlabel"] = "%s (%s)"%(name,units) 125 140 self.prop["xunit"] = units 141 self.prop["xlabel_base"] = "%s (%s)"%(name,units) 142 self.prop["xunit_base"] = units 126 143 127 144 def yaxis(self,name,units): 128 145 """Properties of the y axis. 129 146 """ 130 if self.prop["yunit"] and units != self.prop["yunit"]:131 pass132 #print "Plottable: how do we handle non-commensurate units"133 147 self.prop["ylabel"] = "%s (%s)"%(name,units) 134 148 self.prop["yunit"] = units 149 self.prop["ylabel_base"] = "%s (%s)"%(name,units) 150 self.prop["yunit_base"] = units 135 151 136 152 def title(self,name):
Note: See TracChangeset
for help on using the changeset viewer.