casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables
tableplot.py
Go to the documentation of this file.
00001 # This file was automatically generated by SWIG (http://www.swig.org).
00002 # Version 2.0.5
00003 #
00004 # Do not make changes to this file unless you know what you are doing--modify
00005 # the SWIG interface file instead.
00006 
00007 
00008 
00009 from sys import version_info
00010 if version_info >= (2,6,0):
00011     def swig_import_helper():
00012         from os.path import dirname
00013         import imp
00014         fp = None
00015         try:
00016             fp, pathname, description = imp.find_module('_tableplot', [dirname(__file__)])
00017         except ImportError:
00018             import _tableplot
00019             return _tableplot
00020         if fp is not None:
00021             try:
00022                 _mod = imp.load_module('_tableplot', fp, pathname, description)
00023             finally:
00024                 fp.close()
00025             return _mod
00026     _tableplot = swig_import_helper()
00027     del swig_import_helper
00028 else:
00029     import _tableplot
00030 del version_info
00031 try:
00032     _swig_property = property
00033 except NameError:
00034     pass # Python < 2.2 doesn't have 'property'.
00035 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
00036     if (name == "thisown"): return self.this.own(value)
00037     if (name == "this"):
00038         if type(value).__name__ == 'SwigPyObject':
00039             self.__dict__[name] = value
00040             return
00041     method = class_type.__swig_setmethods__.get(name,None)
00042     if method: return method(self,value)
00043     if (not static):
00044         self.__dict__[name] = value
00045     else:
00046         raise AttributeError("You cannot add attributes to %s" % self)
00047 
00048 def _swig_setattr(self,class_type,name,value):
00049     return _swig_setattr_nondynamic(self,class_type,name,value,0)
00050 
00051 def _swig_getattr(self,class_type,name):
00052     if (name == "thisown"): return self.this.own()
00053     method = class_type.__swig_getmethods__.get(name,None)
00054     if method: return method(self)
00055     raise AttributeError(name)
00056 
00057 def _swig_repr(self):
00058     try: strthis = "proxy of " + self.this.__repr__()
00059     except: strthis = ""
00060     return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
00061 
00062 try:
00063     _object = object
00064     _newclass = 1
00065 except AttributeError:
00066     class _object : pass
00067     _newclass = 0
00068 
00069 
00070 class tableplot(_object):
00071     """Proxy of C++ casac::tableplot class"""
00072     __swig_setmethods__ = {}
00073     __setattr__ = lambda self, name, value: _swig_setattr(self, tableplot, name, value)
00074     __swig_getmethods__ = {}
00075     __getattr__ = lambda self, name: _swig_getattr(self, tableplot, name)
00076     __repr__ = _swig_repr
00077     def __init__(self): 
00078         """__init__(self) -> tableplot"""
00079         this = _tableplot.new_tableplot()
00080         try: self.this.append(this)
00081         except: self.this = this
00082     __swig_destroy__ = _tableplot.delete_tableplot
00083     __del__ = lambda self : None;
00084     def open(self, *args, **kwargs):
00085         """
00086         open(self, tabnames=std::vector< string >(1, "")) -> bool
00087 
00088         Summary
00089                 Specify list of tables to operate on.
00090 
00091         Input Parameters:
00092                 tabnames         List of strings identifying Table names 
00093                 
00094         --------------------------------------------------------------------------------
00095                       
00096         """
00097         return _tableplot.tableplot_open(self, *args, **kwargs)
00098 
00099     def setgui(self, gui=False):
00100         """
00101         setgui(self, gui=False) -> bool
00102 
00103         Summary
00104                 
00105           Set the GUI on or off. Can be done only once !!
00106 
00107 
00108         Input Parameters:
00109                 gui              gui=False to turn off gui false 
00110                 
00111         --------------------------------------------------------------------------------
00112                       
00113         """
00114         return _tableplot.tableplot_setgui(self, gui)
00115 
00116     def savefig(self, *args, **kwargs):
00117         """
00118         savefig(self, filename=string(""), dpi=-1, orientation=string(""), papertype=string(""), facecolor=string(""), 
00119             edgecolor=string("")) -> bool
00120 
00121         Summary
00122                 
00123              Save the currently plotted image.
00124            
00125 
00126         Input Parameters:
00127                 filename         Name the plot image is to be saved to. 
00128                 dpi              Number of dots per inch (resolution) to save the image at. -1 
00129                 orientation      Either landscape or portrait. Supported by the postscript format only. 
00130                 papertype        Valid values are: letter, legal, exective, ledger, a0-a10 and b0-b10. This option is supported byt the postscript format only. 
00131                 facecolor        Color of space between the plot and the edge of the square. Valid values are the same as those accepted by the plotcolour option of tp.plotdata(). 
00132                 edgecolor        Color of the outer edge. Valid values are the same as those accepted by the plotcolour option of tp.plotdata(). 
00133                 
00134         --------------------------------------------------------------------------------
00135                       
00136         """
00137         return _tableplot.tableplot_savefig(self, *args, **kwargs)
00138 
00139     def selectdata(self, *args, **kwargs):
00140         """
00141         selectdata(self, taqlstring=string("")) -> bool
00142 
00143         Summary
00144                  
00145             Perform a TaQL based subtable selection for subsequent plots. 
00146            
00147 
00148         Input Parameters:
00149                 taqlstring       TaQL string for selection 
00150                 
00151         --------------------------------------------------------------------------------
00152                       
00153         """
00154         return _tableplot.tableplot_selectdata(self, *args, **kwargs)
00155 
00156     def plotdata(self, *args, **kwargs):
00157         """
00158         plotdata(self, poption=initialize_record("1 1 6 0.8 1.0"), labels=std::vector< string >(1, ""), 
00159             datastr=std::vector< string >(1, "")) -> bool
00160 
00161         Summary
00162                 
00163             Plot the result of a general TaQL expression.
00164            
00165 
00166         Input Parameters:
00167                 poption          Record of plot options 1 1 6 0.8 1.0 
00168                 labels           List of strings : Title,Xlabel,Ylabel 
00169                 datastr          List of TaQL strings : X,Y 
00170                 
00171         --------------------------------------------------------------------------------
00172                       
00173         """
00174         return _tableplot.tableplot_plotdata(self, *args, **kwargs)
00175 
00176     def iterplotstart(self, *args, **kwargs):
00177         """
00178         iterplotstart(self, poption=initialize_record("1 1 6 0.8 1.0"), labels=std::vector< string >(1, ""), 
00179             datastr=std::vector< string >(1, ""), iteraxes=std::vector< string >(1, "")) -> bool
00180 
00181         Summary
00182                  Initialize plotting with an iteration axis
00183 
00184 
00185         Input Parameters:
00186                 poption          Record of plot options default is nxpanels=1, nypanels=1, windowsize=6, aspectratio=0.8, fontsize=1.0 1 1 6 0.8 1.0 
00187                 labels           List of strings : Title,Xlabel,Ylabel 
00188                 datastr          List of TaQL strings : X,Y 
00189                 iteraxes         List of strings : Iteration axes 
00190                 
00191         --------------------------------------------------------------------------------
00192                       
00193         """
00194         return _tableplot.tableplot_iterplotstart(self, *args, **kwargs)
00195 
00196     def replot(self):
00197         """
00198         replot(self) -> bool
00199 
00200         Summary
00201                 
00202             Replot all existing panels and layers.
00203            
00204         --------------------------------------------------------------------------------
00205                       
00206         """
00207         return _tableplot.tableplot_replot(self)
00208 
00209     def iterplotnext(self):
00210         """
00211         iterplotnext(self) -> int
00212 
00213         Summary
00214                 
00215         Start/Continue plotting
00216             
00217         --------------------------------------------------------------------------------
00218                       
00219         """
00220         return _tableplot.tableplot_iterplotnext(self)
00221 
00222     def iterplotstop(self, rmplotter=False):
00223         """
00224         iterplotstop(self, rmplotter=False) -> bool
00225 
00226         Summary
00227                  Stop plot iterations.
00228            
00229 
00230         Input Parameters:
00231                 rmplotter        Indicates whether the plot window should be removed (true) from the display or left (false) false 
00232                 
00233         --------------------------------------------------------------------------------
00234                       
00235         """
00236         return _tableplot.tableplot_iterplotstop(self, rmplotter)
00237 
00238     def markregions(self, *args, **kwargs):
00239         """
00240         markregions(self, nrows=0, ncols=0, panel=1, region=initialize_vector(1, (double)0.0)) -> bool
00241 
00242         Summary
00243                  Mark a rectangular region to flag
00244            
00245 
00246         Input Parameters:
00247                 nrows            Number of rows of panels 0 
00248                 ncols            Number of columns of panels 0 
00249                 panel            Panel number 1 
00250                 region           [xmin,ymin,xmax,ymax] bounding box 0.0 
00251                 
00252         --------------------------------------------------------------------------------
00253                       
00254         """
00255         return _tableplot.tableplot_markregions(self, *args, **kwargs)
00256 
00257     def flagdata(self):
00258         """
00259         flagdata(self) -> bool
00260 
00261         Summary
00262                 
00263         Flag Data for selected flag regions
00264            
00265         --------------------------------------------------------------------------------
00266                       
00267         """
00268         return _tableplot.tableplot_flagdata(self)
00269 
00270     def unflagdata(self):
00271         """
00272         unflagdata(self) -> bool
00273 
00274         Summary
00275                  
00276             Unset flags for all regions marked using {tt tp.markregions()}. 
00277            
00278         --------------------------------------------------------------------------------
00279                       
00280         """
00281         return _tableplot.tableplot_unflagdata(self)
00282 
00283     def locatedata(self, *args, **kwargs):
00284         """
00285         locatedata(self, columnlist=std::vector< string >(1, "")) -> bool
00286 
00287         Summary
00288                 
00289             Print info about data selected using tp.markregions(). 
00290            
00291 
00292         Input Parameters:
00293                 columnlist       List of strings : Column names (or TaQL expressions !) 
00294                 
00295         --------------------------------------------------------------------------------
00296                       
00297         """
00298         return _tableplot.tableplot_locatedata(self, *args, **kwargs)
00299 
00300     def clearflags(self, roottable=False):
00301         """
00302         clearflags(self, roottable=False) -> bool
00303 
00304         Summary
00305                   Clear all flags in the table.
00306             
00307 
00308         Input Parameters:
00309                 roottable        false : clear flags for the current sub-selection; true : clear flags for root table false 
00310                 
00311         --------------------------------------------------------------------------------
00312                       
00313         """
00314         return _tableplot.tableplot_clearflags(self, roottable)
00315 
00316     def saveflagversion(self, *args, **kwargs):
00317         """
00318         saveflagversion(self, versionname=string(""), comment=string(""), merge=string("")) -> bool
00319 
00320         Summary
00321                   Save current flags with a version name. 
00322                                  
00323 
00324         Input Parameters:
00325                 versionname      Version name 
00326                 comment          Comment for this flag table 
00327                 merge            merge type 
00328                 
00329         --------------------------------------------------------------------------------
00330                       
00331         """
00332         return _tableplot.tableplot_saveflagversion(self, *args, **kwargs)
00333 
00334     def restoreflagversion(self, *args, **kwargs):
00335         """
00336         restoreflagversion(self, versionname=std::vector< string >(1, ""), merge=string("")) -> bool
00337 
00338         Summary
00339                 Restore flags from a saved flag_version. 
00340                                    
00341 
00342         Input Parameters:
00343                 versionname      Version name 
00344                 merge            merge type 
00345                 
00346         --------------------------------------------------------------------------------
00347                       
00348         """
00349         return _tableplot.tableplot_restoreflagversion(self, *args, **kwargs)
00350 
00351     def deleteflagversion(self, *args, **kwargs):
00352         """
00353         deleteflagversion(self, versionname=std::vector< string >(1, "")) -> bool
00354 
00355         Summary
00356                   Delete a saved flag_version. 
00357                                    
00358 
00359         Input Parameters:
00360                 versionname      Version name 
00361                 
00362         --------------------------------------------------------------------------------
00363                       
00364         """
00365         return _tableplot.tableplot_deleteflagversion(self, *args, **kwargs)
00366 
00367     def getflagversionlist(self):
00368         """
00369         getflagversionlist(self) -> bool
00370 
00371         Summary
00372                   Print out a list of saved flag_versions. 
00373                                    
00374         --------------------------------------------------------------------------------
00375                       
00376         """
00377         return _tableplot.tableplot_getflagversionlist(self)
00378 
00379     def clearplot(self, nrows=0, ncols=0, panel=0):
00380         """
00381         clearplot(self, nrows=0, ncols=0, panel=0) -> bool
00382 
00383         Summary
00384                   Clear a plot.
00385 
00386 
00387         Input Parameters:
00388                 nrows            Number of rows of panels 0 
00389                 ncols            Number of columns of panels 0 
00390                 panel            Panel number (index) 0 
00391                 
00392         --------------------------------------------------------------------------------
00393                       
00394         """
00395         return _tableplot.tableplot_clearplot(self, nrows, ncols, panel)
00396 
00397     def done(self):
00398         """
00399         done(self) -> bool
00400 
00401         Summary
00402                   Clean up the tableplot tool
00403            
00404         --------------------------------------------------------------------------------
00405                       
00406         """
00407         return _tableplot.tableplot_done(self)
00408 
00409 tableplot_swigregister = _tableplot.tableplot_swigregister
00410 tableplot_swigregister(tableplot)
00411 
00412 # This file is compatible with both classic and new-style classes.
00413 
00414