Ignore:
Timestamp:
03/30/12 19:58:59 (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: 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.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/interactivemask.py

    r2427 r2451  
    157157
    158158        #if not self.p._plotter or self.p._plotter.is_dead:
    159         if not self.p or self.p._plotter.is_dead:
     159        if not self.p:
    160160            asaplog.push('A new ASAP plotter will be loaded')
    161161            asaplog.post()
     
    163163            self.p = asapplotter()
    164164            self.newplot = True
    165 
     165        self.p._assert_plotter(mode='reload')
     166       
    166167        # Plot selected spectra if needed
    167168        if self.scan != self.p._data:
     
    171172                asaplog.post("WARN")
    172173            # Need replot
    173             self.p._plotter.legend(1)
     174            self.p._legendloc = 1
    174175            self.p.plot(self.scan)
    175176            # disable casa toolbar
Note: See TracChangeset for help on using the changeset viewer.