|
Last change
on this file since 2475 was 2451, checked in by Kana Sugimoto, 14 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
|
| Rev | Line | |
|---|
| [111] | 1 | """
|
|---|
| 2 | ASAP plotting class based on matplotlib.
|
|---|
| 3 | """
|
|---|
| 4 |
|
|---|
| [708] | 5 | from asap.asaplotbase import *
|
|---|
| [111] | 6 |
|
|---|
| [708] | 7 | from matplotlib.backends.backend_agg import FigureCanvasAgg
|
|---|
| [1819] | 8 | from matplotlib.backend_bases import FigureManagerBase
|
|---|
| [2451] | 9 | from matplotlib import _pylab_helpers
|
|---|
| [111] | 10 |
|
|---|
| [708] | 11 | class asaplot(asaplotbase):
|
|---|
| [111] | 12 | """
|
|---|
| 13 | ASAP plotting class based on matplotlib.
|
|---|
| 14 | """
|
|---|
| [1564] | 15 | def __init__(self, rows=1, cols=0, title='', size=None, buffering=False):
|
|---|
| [1826] | 16 | """
|
|---|
| 17 | Create a new instance of the ASAPlot plotting class.
|
|---|
| [119] | 18 |
|
|---|
| [1826] | 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 | """
|
|---|
| [708] | 22 | v = vars()
|
|---|
| 23 | del v['self']
|
|---|
| 24 | asaplotbase.__init__(self,**v)
|
|---|
| [2451] | 25 | _pylab_helpers.Gcf.destroy(0)
|
|---|
| 26 | self.window = None
|
|---|
| [708] | 27 | self.canvas = FigureCanvasAgg(self.figure)
|
|---|
| [1819] | 28 | self.figmgr = FigureManagerBase(self.canvas,1)
|
|---|
| [2451] | 29 | _pylab_helpers.Gcf.figs[self.figmgr.num] = self.figmgr
|
|---|
| [2146] | 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.