source: trunk/python/asaplot.py@ 2480

Last change on this file since 2480 was 2451, checked in by Kana Sugimoto, 13 years ago

New Development: No

JIRA Issue: Yes (CAS-3749)

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs: unit tests of sdplot

Put in Release Notes: No

Module(s): sdplot, sdfit, sdstat, sdflag, sdcal, sdreduce

Description:

Made asapplotter not to generate plotter window at start-up, but the window is
only generated at the first invokation of plotting operation.


  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.1 KB
Line 
1"""
2ASAP plotting class based on matplotlib.
3"""
4
5from asap.asaplotbase import *
6
7from matplotlib.backends.backend_agg import FigureCanvasAgg
8from matplotlib.backend_bases import FigureManagerBase
9from matplotlib import _pylab_helpers
10
11class asaplot(asaplotbase):
12 """
13 ASAP plotting class based on matplotlib.
14 """
15 def __init__(self, rows=1, cols=0, title='', size=None, buffering=False):
16 """
17 Create a new instance of the ASAPlot plotting class.
18
19 If rows < 1 then a separate call to set_panels() is required to define
20 the panel layout; refer to the doctext for set_panels().
21 """
22 v = vars()
23 del v['self']
24 asaplotbase.__init__(self,**v)
25 _pylab_helpers.Gcf.destroy(0)
26 self.window = None
27 self.canvas = FigureCanvasAgg(self.figure)
28 self.figmgr = FigureManagerBase(self.canvas,1)
29 _pylab_helpers.Gcf.figs[self.figmgr.num] = self.figmgr
30
31 def map(self):
32 """ This method is not available in non-GUI plotting class"""
33 pass
34
35 def unmap(self):
36 """ This method is not available in non-GUI plotting class"""
37 pass
38
Note: See TracBrowser for help on using the repository browser.