On Tue, Apr 20, 2010 at 8:56 AM, Nikolaus Rath <nikol...@rath.org> wrote:
> Hello,
>
> When I'm calling the pyplot.plot function from ipython, I get a nice
> dialog in which I can zoom, pan & save.
>
> How can I achieve the same thing from a non-interactive program?
>
> I tried
>
>    fig = plt.figure()
>    ax = fig.add_subplot(111)
>    ax.contourf(stuff)
>    fig.show()

Use plt.show() instead of fig.show()

Ryan

-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to