Changeset 1982 for trunk


Ignore:
Timestamp:
01/28/11 18:34:41 (14 years ago)
Author:
Kana Sugimoto
Message:

New Development: No

JIRA Issue: Yes (CAS-1822/ASAP-204)

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs: plot spectra and move among pages

Put in Release Notes: No

Module(s): asapplotter and sdplot

Description: a little bit of fix of page counter


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/casatoolbar.py

    r1981 r1982  
    180180            self._set_prevpage_counter()
    181181        #self.plotter._plotter.clear()
     182        self.plotter._plot(self.plotter._data)
    182183        self.set_pagenum(self._get_pagenum())
    183         self.plotter._plot(self.plotter._data)
    184184        self.plotter._plotter.release()
    185185        self.plotter._plotter.tidy()
     
    214214    def _get_pagenum(self):
    215215        maxpanel = 16
    216         nextp = self.plotter._ipanel+1
     216        # get the ID of last panel in the current page
     217        idlastpanel = self.plotter._ipanel
    217218        if self.plotter._rows and self.plotter._cols:
    218219            ppp = self.plotter._rows*self.plotter._cols
    219220        else:
    220221            ppp = maxpanel
    221         return int(nextp/ppp)+1
     222        return int(idlastpanel/ppp)+1
    222223
    223224#####################################
Note: See TracChangeset for help on using the changeset viewer.