Changeset 370e587 in sasview for guitools


Ignore:
Timestamp:
Apr 10, 2008 6:33:16 PM (17 years ago)
Author:
Gervaise Alina <gervyh@…>
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
Message:

add comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guitools/plottables.py

    r7a03e65 r370e587  
    310310class Plottable: 
    311311    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        """ 
    312317        self._xaxis = name 
    313318        self._xunit = units 
    314319 
    315320    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        """ 
    316326        self._yaxis = name 
    317327        self._yunit = units 
     328         
    318329    def get_xaxis(self): 
     330        """ Return the units and name of x-axis""" 
    319331        return self._xaxis, self._xunit 
     332     
    320333    def get_yaxis(self): 
     334        """ Return the units and name of y- axis""" 
    321335        return self._yaxis, self._yunit 
    322336 
Note: See TracChangeset for help on using the changeset viewer.