- Timestamp:
- Apr 10, 2008 6:33:16 PM (17 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:
- 1fdb81d
- Parents:
- 7a03e65
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guitools/plottables.py
r7a03e65 r370e587 310 310 class Plottable: 311 311 def xaxis(self, name, units): 312 """ 313 Set the name and unit of x_axis 314 @param name: the name of x-axis 315 @param units : the units of x_axis 316 """ 312 317 self._xaxis = name 313 318 self._xunit = units 314 319 315 320 def yaxis(self, name, units): 321 """ 322 Set the name and unit of y_axis 323 @param name: the name of y-axis 324 @param units : the units of y_axis 325 """ 316 326 self._yaxis = name 317 327 self._yunit = units 328 318 329 def get_xaxis(self): 330 """ Return the units and name of x-axis""" 319 331 return self._xaxis, self._xunit 332 320 333 def get_yaxis(self): 334 """ Return the units and name of y- axis""" 321 335 return self._yaxis, self._yunit 322 336
Note: See TracChangeset
for help on using the changeset viewer.