From 742d2f77e37671641d0e53e69706256de3028159 Mon Sep 17 00:00:00 2001 From: Arnaud Gardelein Date: Sun, 30 Aug 2009 23:28:14 +0200 Subject: [PATCH] figure: add draw() to update the figure --- oscopy/figure.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/oscopy/figure.py b/oscopy/figure.py index bb90cb3..e028fb7 100644 --- a/oscopy/figure.py +++ b/oscopy/figure.py @@ -223,7 +223,13 @@ class Figure(object): # self._axes = ax if not self._kid: self._kid = self._fig.canvas.mpl_connect('key_press_event', self._key) - self._fig.draw() + + def draw(self): + """ Draw the figure + To be called by when the figure should be updated + """ + self._fig.canvas.draw() + def insert(self, sigs): """ Add a signal into the current graph -- 2.11.4.GIT