yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #05187
[Branch ~yade-dev/yade/trunk] Rev 2334: A trivial fix for exceptions when drawing data that is being modified right now
------------------------------------------------------------
revno: 2334
committer: Janek Kozicki <cosurgi@xxxxxxxxxx>
branch nick: trunk
timestamp: Thu 2010-07-08 19:19:27 +0200
message:
A trivial fix for exceptions when drawing data that is being modified right now
modified:
py/plot.py
--
lp:yade
https://code.launchpad.net/~yade-dev/yade/trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription
=== modified file 'py/plot.py'
--- py/plot.py 2010-07-08 10:13:55 +0000
+++ py/plot.py 2010-07-08 17:19:27 +0000
@@ -181,7 +181,9 @@
ax.autoscale_view()
except RuntimeError: pass # happens if data are being updated and have not the same dimension at the very moment
for fig in figs:
- fig.canvas.draw()
+ try:
+ fig.canvas.draw()
+ except RuntimeError: pass # happens here too
time.sleep(liveInterval)