From: Tim Vieira Date: Thu, 11 Jul 2013 16:02:12 +0000 (-0400) Subject: added error test case. X-Git-Url: https://hydra-www.ietfng.org/gitweb/?a=commitdiff_plain;h=9ff3049b0b9b70254bce91e50244614086f5f66f;p=dyna2 added error test case. --- diff --git a/src/Dyna/Backend/Python/post/draw.py b/src/Dyna/Backend/Python/post/draw.py index cd212b7..6de168b 100644 --- a/src/Dyna/Backend/Python/post/draw.py +++ b/src/Dyna/Backend/Python/post/draw.py @@ -1,5 +1,4 @@ import pylab as pl -from matplotlib.animation import FuncAnimation from collections import defaultdict class draw(object): @@ -11,7 +10,7 @@ class draw(object): visual element v - frame(T, &text(String, tuple(X, Y))). + frame(T, &text(String, [X, Y])). ^ time index @@ -36,6 +35,7 @@ class draw(object): nframes = max(frame) + # TODO: support multiple creating plots assert nframes == 0, 'many frames found. Did you mean to use an animtation?' def draw_frame(t): @@ -73,7 +73,7 @@ class draw(object): ax = pl.axes() draw_frame(0) - + #pl.ion(); pl.show() #from arsenal.debug import ip; ip() pl.show()