Changeset 1982
- Timestamp:
- 01/28/11 18:34:41 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/casatoolbar.py
r1981 r1982 180 180 self._set_prevpage_counter() 181 181 #self.plotter._plotter.clear() 182 self.plotter._plot(self.plotter._data) 182 183 self.set_pagenum(self._get_pagenum()) 183 self.plotter._plot(self.plotter._data)184 184 self.plotter._plotter.release() 185 185 self.plotter._plotter.tidy() … … 214 214 def _get_pagenum(self): 215 215 maxpanel = 16 216 nextp = self.plotter._ipanel+1 216 # get the ID of last panel in the current page 217 idlastpanel = self.plotter._ipanel 217 218 if self.plotter._rows and self.plotter._cols: 218 219 ppp = self.plotter._rows*self.plotter._cols 219 220 else: 220 221 ppp = maxpanel 221 return int( nextp/ppp)+1222 return int(idlastpanel/ppp)+1 222 223 223 224 #####################################
Note:
See TracChangeset
for help on using the changeset viewer.