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/asapplotter.py

    r2290 r2416  
    12561256        PL.ion()
    12571257        PL.draw()
    1258         PL.gcf().show()
     1258        if matplotlib.get_backend() == 'Qt4Agg': PL.gcf().show()
    12591259        if (self._outfile is not None):
    12601260           PL.savefig(self._outfile)
     
    12951295        [xmin,xmax,ymin,ymax] = PL.axis()
    12961296        PL.axis([xmax,xmin,ymin,ymax])
    1297         #PL.ion()
     1297        PL.ion()
    12981298        PL.draw()
    1299         PL.gcf().show()
     1299        if matplotlib.get_backend() == 'Qt4Agg': PL.gcf().show()
    13001300        if (self._outfile is not None):
    13011301           PL.savefig(self._outfile)
Note: See TracChangeset for help on using the changeset viewer.