Ignore:
Timestamp:
07/23/12 18:28:01 (12 years ago)
Author:
Kana Sugimoto
Message:

New Development: No

JIRA Issue: Yes (CAS-3616, Trac-274)

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs:

Put in Release Notes: No

Module(s): flagplotter, sdflag

Description: fixed misc bugs in flagplotter.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/customgui_base.py

    r2605 r2606  
    877877        self._thisregion['worldx'][1] = xdataend
    878878        lregion = self._thisregion['worldx']
     879        # WORKAROUND for the issue axvspan started to reset xlim.
     880        axlimx = self._thisregion['axes'].get_xlim()
    879881        pregion = self._thisregion['axes'].axvspan(lregion[0],lregion[1],
    880882                                                   facecolor='0.7')
     883        self._thisregion['axes'].set_xlim(axlimx)
     884       
    881885        self.plotter._plotter.canvas.draw()
    882886        self._polygons.append(pregion)
     
    959963                ax = self.plotter._plotter.subplots[irow - int(strow)]['axes']
    960964                mlist = regions.pop(str(irow))
     965                # WORKAROUND for the issue axvspan started to reset xlim.
     966                axlimx = ax.get_xlim()
    961967                for i in range(len(mlist)):
    962968                    self._polygons.append(ax.axvspan(mlist[i][0],mlist[i][1],
    963969                                                     facecolor='0.7'))
    964                 del ax,mlist
     970                ax.set_xlim(axlimx)
     971                del ax,mlist,axlimx
    965972            if irow in panels:
    966973                ax = self.plotter._plotter.subplots[irow - int(strow)]['axes']
     
    11891196            return
    11901197        # set row and panel counters to those of the 1st panel of previous page
    1191         maxpanel = 16
     1198        maxpanel = 25
    11921199        # the ID of the last panel in current plot
    11931200        lastpanel = self.plotter._ipanel
     
    12321239
    12331240    def _get_pagenum(self):
    1234         maxpanel = 16
     1241        maxpanel = 25
    12351242        # get the ID of last panel in the current page
    12361243        idlastpanel = self.plotter._ipanel
Note: See TracChangeset for help on using the changeset viewer.