title: How to set the image resolution for animations?
body: <p>how can I set the resolution of an animation saved as mp4 movie with "matplotlib.animation" module?</p>
  
  <p>On the web I only found examples using "animation.FuncAnimation". For example the nice tutorial from <a href="http://jakevdp.github.com/blog/2012/08/18/matplotlib-animation-tutorial/" rel="noreferrer">http://jakevdp.github.com/blog/2012/08/18/matplotlib-animation-tutorial/</a> used:</p>
  
  <pre><code>anim = animation.FuncAnimation(fig, animate, init_func=init,
                             frames=200, interval=20, blit=True)
  anim.save('basic_animation.mp4', fps=30, extra_args=['-vcodec', 'libx264'])
  </code></pre>
  
  <p>From the matplotlib.animation module reference I found the "animation.Animation.save" method providing a "dpi"-argument, but I don't know how to apply this function properly</p>
  
  <pre><code>matplotlib.animation.Animation.save(filename, writer=None, fps=None, dpi=None, codec=None, bitrate=None, extra_args=None, metadata=None, extra_anim=None)
  </code></pre>
  
  <p>A small example code may be helpful. </p>
  
  <p>Many thanks.</p>
  
  <p>Johannes</p>
  
  <p>PS: By the way, how can you insert Python-code with sytax-highlighting?</p>