Ignore:
Timestamp:
08/21/06 10:48:45 (18 years ago)
Author:
mar637
Message:

lots of changes to support soft refresh, for things like text overlays, linecatlogs etc. reworked plot_lines to to auto-peak detection. added forwarding functions to matplotlib.axes. drawing functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asaplotgui.py

    r1084 r1153  
    2626        v = vars()
    2727        del v['self']
    28        
     28
    2929        asaplotbase.__init__(self, **v)
    3030        self.window = Tk.Tk()
     
    3838        # Simply instantiating this is enough to get a working toolbar.
    3939        self.figmgr = FigureManagerTkAgg(self.canvas, 1, self.window)
    40         self.window.wm_title('ASAPlot graphics window')
     40        self.window.wm_title('ASAP Plotter - Tk')
    4141
    4242        self.events = {'button_press':None,
     
    4444                       'motion_notify':None}
    4545
    46         matplotlib.interactive = True
    47         self.buffering = buffering
     46        matplotlib.rcParams["interactive"] = True
     47        #self.buffering = buffering
    4848
    4949        self.canvas.show()
     
    177177
    178178
    179     def show(self):
     179    def show(self, hardrefresh=True):
    180180        """
    181181        Show graphics dependent on the current buffering state.
    182182        """
    183183        if not self.buffering:
    184             asaplotbase.show(self)
     184            if hardrefresh:
     185                asaplotbase.show(self)
    185186            self.window.wm_deiconify()
    186             self.canvas.draw()
     187            self.canvas.show()
    187188
    188189    def terminate(self):
Note: See TracChangeset for help on using the changeset viewer.