I am starting with a zero array, populate it according to some
condition, save the graph, and then reset the array to zero.  Can
someone tell me if there is a better (faster) way to do this?  Or am I
just doing that much, and that is how long it will take?  I have a
couple hundred graphs that I am creating, that will ultimately be
combined for animation.

ay=4000
ax=60
#create empty array
a = zeros((ay,ax), int)

while something:
  pcolormesh(X, Y, a)
  figname = 'Frame%03d' %int(field)
  print figname
  savefig(figname)
  # reset values
  a = zeros((ay,ax), int)
  if something:
     if something:
     a[y,x] = a[y,x]+1
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to