title: How to save PyPlot figures to video file in Julia?
body: <p>I want to do something like the following using a loop and PyPlot to plot in figure windows.  My question is how to save the figure windows to a movie file within the loop?</p>
  
  <pre><code>using PyPlot
  
  for k=1:5
    pcolormesh(rand(10,10)) 
    if k==1; colorbar(); end
    # save figure window to movie file here??
    sleep(.5)
  end
  </code></pre>