From 2e2fa85727eda6468e7e90e114d37cdc1ba3ceb8 Mon Sep 17 00:00:00 2001 From: flatberg Date: Wed, 9 Aug 2006 08:02:38 +0000 Subject: [PATCH] removed message, removed draw from release_select, added view limits update in scatterplot --- system/plots.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/system/plots.py b/system/plots.py index 11166a7..9c31273 100644 --- a/system/plots.py +++ b/system/plots.py @@ -273,6 +273,7 @@ class NavToolbar(NavigationToolbar2): def __init__(self, *args): NavigationToolbar2.__init__(self, *args) self._select_callback = None + self.message.hide() def select(self, *args): """Selection mode selected handler.""" @@ -294,8 +295,7 @@ class NavToolbar(NavigationToolbar2): self._idRelease = self.canvas.mpl_connect('button_release_event', self.release_select) self.mode = 'Select rectangle mode' - #self.set_message(self.mode) - self.set_message(None) + self.set_message(self.mode) def set_message(self, s): """Set status in toolbar to string s. @@ -332,7 +332,6 @@ class NavToolbar(NavigationToolbar2): self._select_callback(lastx, lasty, x, y) self._xypress = None - self.draw() self.release(event) def mouse_move(self, event): @@ -495,6 +494,7 @@ class ScatterPlot(Plot): if len(self.ax.lines)>1: del self.ax.lines[-1] self.ax.plot(xdata_new,ydata_new,'ok') + self._toolbar.forward() #update data lims before draw self.canvas.draw() class NetworkPlot(Plot):