Last change
on this file since 2593 was 2146, checked in by Kana Sugimoto, 13 years ago |
New Development: No
JIRA Issue: No (a fix)
Ready for Test: Yes
Interface Changes: No
What Interface Changed:
Test Programs: List test programs
Put in Release Notes: No
Module(s): asapplotter, sdplot
Description: a fix for non-GUI and QT4 plotting
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
990 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 | from matplotlib.backend_bases import FigureManagerBase
|
---|
9 |
|
---|
10 | class asaplot(asaplotbase):
|
---|
11 | """
|
---|
12 | ASAP plotting class based on matplotlib.
|
---|
13 | """
|
---|
14 | def __init__(self, rows=1, cols=0, title='', size=None, buffering=False):
|
---|
15 | """
|
---|
16 | Create a new instance of the ASAPlot plotting class.
|
---|
17 |
|
---|
18 | If rows < 1 then a separate call to set_panels() is required to define
|
---|
19 | the panel layout; refer to the doctext for set_panels().
|
---|
20 | """
|
---|
21 | v = vars()
|
---|
22 | del v['self']
|
---|
23 | asaplotbase.__init__(self,**v)
|
---|
24 | self.canvas = FigureCanvasAgg(self.figure)
|
---|
25 | self.figmgr = FigureManagerBase(self.canvas,1)
|
---|
26 |
|
---|
27 | def map(self):
|
---|
28 | """ This method is not available in non-GUI plotting class"""
|
---|
29 | pass
|
---|
30 |
|
---|
31 | def unmap(self):
|
---|
32 | """ This method is not available in non-GUI plotting class"""
|
---|
33 | pass
|
---|
34 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.