Changeset 1999


Ignore:
Timestamp:
02/18/11 12:15:58 (14 years ago)
Author:
Kana Sugimoto
Message:

New Development: No

JIRA Issue: Yes (CAS-1306/ASAP-205)

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs:

Put in Release Notes: No

Module(s): flagtoolbar & flagplotter

Description:

Changed function call to mark selections from asaplotbase.show() to
matplotlib.pyplot.FigureCanvasBase.draw() for hopefully faster drawing.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/flagtoolbar.py

    r1998 r1999  
    259259
    260260        self.lastspan = self._thisregion['axes'].axvspan(self._thisregion['xs'],xnow,facecolor='0.7')
    261         self.plotter._plotter.show(False)
     261        #self.plotter._plotter.show(False)
     262        self.plotter._plotter.canvas.draw()
    262263        del xnow
    263264
     
    282283        pregion = self._thisregion['axes'].axvspan(lregion[0],lregion[1],
    283284                                                   facecolor='0.7')
    284         self.plotter._plotter.show(False)
     285        #self.plotter._plotter.show(False)
     286        self.plotter._plotter.canvas.draw()
    285287        self._polygons.append(pregion)
    286288        srow = self._getrownum(self._thisregion['axes'])
     
    317319        shadow = Rectangle((0,0),1,1,facecolor='0.7',transform=selax.transAxes,visible=True)
    318320        self._polygons.append(selax.add_patch(shadow))
    319         self.plotter._plotter.show(False)
     321        #self.plotter._plotter.show(False)
     322        self.plotter._plotter.canvas.draw()
    320323        print "row", irow, "added to the panel selections"
    321324        print "selected rows =",self._selpanels
     
    370373                self._polygons.append(ax.add_patch(shadow))
    371374                del ax,shadow
    372         self.plotter._plotter.show(False)
     375        #self.plotter._plotter.show(False)
     376        self.plotter._plotter.canvas.draw()
    373377        del regions,panels,strow,enrow
    374378
Note: See TracChangeset for help on using the changeset viewer.