Changeset 14116 for fact/tools/pyscripts


Ignore:
Timestamp:
06/08/12 15:29:41 (12 years ago)
Author:
neise
Message:
added sphinx automodule support. just 3 lines of self.__module__ = <modulename>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/tools/pyscripts/pyfact/plotters.py

    r13415 r14116  
    1717    def __init__(self, name, x, style = 'b', xlabel='x', ylabel='y'):
    1818        """ initialize the object """
    19        
     19        self.__module__ = 'plotters'
    2020        self.name  = name
    2121        self.fig   = plt.figure()
     
    3838    def __init__(self, name, x=None, style = '.:', xlabel='x', ylabel='y', ion=True, grid=True, fname=None):
    3939        """ initialize the object """
    40                
     40        self.__module__ = 'plotters'
    4141        self.name  = name
    4242        self.x = x
     
    103103    def __init__(self, name, ion=True, grid=True, fname=None, map_file_path = '../map_dn.txt', vmin=None, vmax=None):
    104104        """ initialize the object """
     105        self.__module__ = 'plotters'
    105106        path = os.path.abspath(__file__)
    106107        path = os.path.dirname(path)
Note: See TracChangeset for help on using the changeset viewer.