]> hydra-www.ietfng.org Git - dyna2/commitdiff
added error test case.
authorTim Vieira <tim.f.vieira@gmail.com>
Thu, 11 Jul 2013 16:02:12 +0000 (12:02 -0400)
committerTim Vieira <tim.f.vieira@gmail.com>
Thu, 11 Jul 2013 16:02:12 +0000 (12:02 -0400)
src/Dyna/Backend/Python/post/draw.py

index cd212b76b45f3ec835a4a49a311416b8aa4c4086..6de168b2548fc3fefe5d28a898f69708a8e4b958 100644 (file)
@@ -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()