| 
            Last change
 on this file since 1137 was             708, checked in by mar637, 20 years ago           | 
        
        
          | 
             
split asaplot into gui and non-gui versions inheriting from asaplotbase. This is the non-gui version. 
 
           | 
        
        
          
            
              - 
Property                 svn:eol-style
 set to                 
native
               
              - 
Property                 svn:keywords
 set to                 
Author Date Id Revision
               
             
           | 
        
        
          | 
            File size:
            637 bytes
           | 
        
      
      
| Line |   | 
|---|
| 1 | """
 | 
|---|
| 2 | ASAP plotting class based on matplotlib.
 | 
|---|
| 3 | """
 | 
|---|
| 4 | 
 | 
|---|
| 5 | from asap.asaplotbase import *
 | 
|---|
| 6 | 
 | 
|---|
| 7 | from matplotlib.backends.backend_agg import FigureCanvasAgg
 | 
|---|
| 8 | 
 | 
|---|
| 9 | class asaplot(asaplotbase):
 | 
|---|
| 10 |     """
 | 
|---|
| 11 |     ASAP plotting class based on matplotlib.
 | 
|---|
| 12 |     """
 | 
|---|
| 13 |     def __init__(self, rows=1, cols=0, title='', size=(8,4), buffering=False):
 | 
|---|
| 14 |         """
 | 
|---|
| 15 |         Create a new instance of the ASAPlot plotting class.
 | 
|---|
| 16 | 
 | 
|---|
| 17 |         If rows < 1 then a separate call to set_panels() is required to define
 | 
|---|
| 18 |         the panel layout; refer to the doctext for set_panels().
 | 
|---|
| 19 |         """
 | 
|---|
| 20 |         v = vars()
 | 
|---|
| 21 |         del v['self']
 | 
|---|
| 22 |         asaplotbase.__init__(self,**v)
 | 
|---|
| 23 |         self.canvas = FigureCanvasAgg(self.figure)
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.