Ignore:
Timestamp:
02/21/12 14:11:09 (12 years ago)
Author:
Kana Sugimoto
Message:

New Development: No

JIRA Issue: Yes (CAS-3749)

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs: an interactive test

  1. load casapy (or standalone asap)
  2. matplotlib.pyplot.show() ---> 2 plotters (ASAP plotter and matplotlib plotter) are displayed and casapy prompt is paused.
  3. close all plotter windows ---> casapy prompt should be back

Put in Release Notes: No

Module(s): sdplot, asap.plotter

Description:

Fixed a bug in asapplotter with Tk backend which caused scripts and python shells
freeze after the initial invocation of matplotlib.pyplot.show() (known as pl.show() on CASA).
plus minor fixes which handle backend dependencies.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asaplotgui_qt4.py

    r2170 r2416  
    3232        self.canvas = FigureCanvasQTAgg(self.figure)
    3333        # Simply instantiating this is enough to get a working toolbar.
    34         self.figmgr = FigureManagerQTAgg(self.canvas, 1)
     34        self.figmgr = FigureManagerQTAgg(self.canvas, 0)
    3535        self.window = self.figmgr.window
    3636        self._set_window_title('ASAP Plotter - Qt4')
    37         # register this plot to matplotlib
    38         _pylab_helpers.Gcf.set_active(self.figmgr)
     37        # Register this plot to matplotlib without activating it
     38        #_pylab_helpers.Gcf.set_active(self.figmgr)
     39        _pylab_helpers.Gcf.figs[self.figmgr.num] = self.figmgr
    3940
    4041        #############
Note: See TracChangeset for help on using the changeset viewer.