Ignore:
Timestamp:
03/17/11 17:52:18 (13 years ago)
Author:
Kana Sugimoto
Message:

New Development: No

JIRA Issue: Yes (CAS-2764, ATNF-238)

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs: interactive test is necessary.

plot single dish spectra by sdplot + header=True or asapplotter.plot+asapplotter.print_header, and move between pages.
Check if you see header strings plotted in the same size and position in every page.

Put in Release Notes: No

Module(s): asapplotter, sdplot

Description: fixed a bug in asapplotter. asapplotter now prints header strings in every page.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/casatoolbar.py

    r1983 r2051  
    181181    ### actual plotting of the new page
    182182    def _new_page(self,goback=False):
     183        top = None
    183184        if self.plotter._startrow <= 0:
    184185            msg = "The page counter is reset due to chages of plot settings. "
     
    187188            asaplog.post('WARN')
    188189            goback = False
    189            
     190        else:
     191            top = self.plotter._plotter.figure.subplotpars.top
     192
    190193        self.plotter._plotter.hold()
    191194        if goback:
     
    196199        self.plotter._plotter.release()
    197200        self.plotter._plotter.tidy()
     201        if self.plotter._headstring:
     202            if top and top != self.plotter._margins[3]:
     203                # work around for sdplot in CASA. complete checking in future?
     204                self.plotter._plotter.figure.subplots_adjust(top=top)
     205            self.plotter.print_header()
    198206        self.plotter._plotter.show(hardrefresh=False)
     207        del top
    199208
    200209    ### calculate the panel ID and start row to plot the previous page
Note: See TracChangeset for help on using the changeset viewer.