Ignore:
Timestamp:
05/18/12 19:44:44 (12 years ago)
Author:
Kana Sugimoto
Message:

New Development: No

JIRA Issue: Yes (related to CAS-3749)

Ready for Test: Yes

Interface Changes: Yes

What Interface Changed: added a new method, _alive(), in asaplotbase class

Test Programs: Interactive tests

Put in Release Notes: No

Module(s):

Description:

Added a new method, _alive(), in asaplotbase class. The method return True
if asaplot instance is alive. More complete check compared to 'is_dead' parameter.
asapplotter._assert_plotter method is simplified by calling this function.

Fixed misc bugs found in interactive tests.

  1. set back linewidth = 1 in plots invoked by modules, interactivemask, asapmath, and asapfitter.
  2. interactivemask module: plotter in properly quited at the end.
  3. interactivemask module: avoid error when user close interacive plot window before calling the finalization method, finish_selection().
  4. added definition of a dummy function, quit(), in asaplot class.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asaplot.py

    r2483 r2538  
    2626        self.window = None
    2727        self.canvas = FigureCanvasAgg(self.figure)
    28         self.figmgr = FigureManagerBase(self.canvas,1)
     28        self.figmgr = FigureManagerBase(self.canvas,0)
    2929        # This seems necessary when using Gcf, as this is done in
    3030        # pyplot.figure. Otherwise this can cause atexit errors at cleanup
     
    3232        self.figmgr._cidgcf = None
    3333        _pylab_helpers.Gcf.figs[self.figmgr.num] = self.figmgr
     34
     35    def quit(self):
     36        # never dextroy non-GUI plotter.
     37        pass
    3438
    3539    def map(self):
Note: See TracChangeset for help on using the changeset viewer.