Changeset 2606 for trunk/python/customgui_base.py
- Timestamp:
- 07/23/12 18:28:01 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/customgui_base.py
r2605 r2606 877 877 self._thisregion['worldx'][1] = xdataend 878 878 lregion = self._thisregion['worldx'] 879 # WORKAROUND for the issue axvspan started to reset xlim. 880 axlimx = self._thisregion['axes'].get_xlim() 879 881 pregion = self._thisregion['axes'].axvspan(lregion[0],lregion[1], 880 882 facecolor='0.7') 883 self._thisregion['axes'].set_xlim(axlimx) 884 881 885 self.plotter._plotter.canvas.draw() 882 886 self._polygons.append(pregion) … … 959 963 ax = self.plotter._plotter.subplots[irow - int(strow)]['axes'] 960 964 mlist = regions.pop(str(irow)) 965 # WORKAROUND for the issue axvspan started to reset xlim. 966 axlimx = ax.get_xlim() 961 967 for i in range(len(mlist)): 962 968 self._polygons.append(ax.axvspan(mlist[i][0],mlist[i][1], 963 969 facecolor='0.7')) 964 del ax,mlist 970 ax.set_xlim(axlimx) 971 del ax,mlist,axlimx 965 972 if irow in panels: 966 973 ax = self.plotter._plotter.subplots[irow - int(strow)]['axes'] … … 1189 1196 return 1190 1197 # set row and panel counters to those of the 1st panel of previous page 1191 maxpanel = 161198 maxpanel = 25 1192 1199 # the ID of the last panel in current plot 1193 1200 lastpanel = self.plotter._ipanel … … 1232 1239 1233 1240 def _get_pagenum(self): 1234 maxpanel = 161241 maxpanel = 25 1235 1242 # get the ID of last panel in the current page 1236 1243 idlastpanel = self.plotter._ipanel
Note: See TracChangeset
for help on using the changeset viewer.