Skip to content

Commit

Permalink
Print time and theora info
Browse files Browse the repository at this point in the history
  • Loading branch information
certik committed Jun 23, 2009
1 parent efc22c2 commit d24515d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plot.py
Expand Up @@ -9,7 +9,7 @@
from numpy import array
import matplotlib
matplotlib.use("Agg")
from pylab import pcolor, pcolormesh, show, savefig, clf, colorbar, gca
from pylab import pcolor, pcolormesh, show, savefig, clf, colorbar, gca, title

from tables import IsDescription, openFile, Float64Col
print " done."
Expand Down Expand Up @@ -40,10 +40,14 @@ def plot_frame(n=0):
pcolormesh(X, Y, C, vmin=C_min, vmax=C_max)
colorbar()
gca().set_aspect("equal")
title("time: %d" % (n*10))
print " savefig"
savefig("frame%04d.png" % n, dpi=100)
print " done"

for i in range(N):
print "frame:", i
plot_frame(i)

print "To encode using theora:"
print "ffmpeg2theora -F 15 -v 10 frame%04d.png -o density.ogv"

0 comments on commit d24515d

Please sign in to comment.