[SciPy-user] Scipy and ipython and Aquaterm

John Hunter jdhunter at ace.bsd.uchicago.edu
Fri Jun 17 16:52:16 CDT 2005

>>>>> "Zhiwen" == Zhiwen Chong <zhiwen.chong at elf.mcgill.ca> writes:

    Zhiwen> What I want is this: 1) a means of plotting a graph from
    Zhiwen> the interactive environment; and, 2) a means of doing the
    Zhiwen> same from within a series of Python scripts that I plan to
    Zhiwen> distribute to others. Currently, that means using py2exe
    Zhiwen> (for Windows). I'm doing my development on Mac OS X (and
    Zhiwen> deploying on Windows), so I'm constrained to using a
    Zhiwen> cross-platform framework like wxWidgets through wxPython.

    Zhiwen> How do you do your plotting in ipython? How do I get my
    Zhiwen> Python program to plot using wxPython without using
    Zhiwen> ipython?

You may want to look at matplotlib 

  * Plotting with ipython with wxagg backend works by setting 

       backend : WxAgg 

    in your matplotlib rc file.  And then start ipython with 

       > ipython -pylab

     You'll be able to start plotting right out of the box

      In[0]: plot(rand(100))

     because ipython pylab mode imports everything you need

  * Embedding matplotlib in wx apps -- follow the
    examples/wmbedding_in_wx*.py in the matplotlib src distribution

  * Freezing wx apps with py2exe -- see
    http://matplotlib.sourceforge.net/faq.html#PY2EXE, in particular
    the simple_plot_wxagg directory in the zip file that is linked.


More information about the SciPy-user mailing list