[SciPy-User] matplotlib with UI

Anthony Palomba apalomba@austin.rr....
Tue Oct 5 11:00:22 CDT 2010


Wow this is even better! I don't think it
can any easier than wxMPL.

I will study the examples that come with
with it.

Thanks for posting this Chris!



-ap





On Mon, Oct 4, 2010 at 4:32 PM, Christopher Barker <Chris.Barker@noaa.gov>wrote:

> J. David Lee wrote:
> > Integrating a matplotlib window into a wxPython app is pretty easy. I
> > import the following:
> >
> > from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg
> > from matplotlib.backends.backend_wxagg import NavigationToolbar2WxAgg
> > from matplotlib.figure import Figure
>
> I like wxMPL:
>
> http://agni.phys.iit.edu/~kmcivor/wxmpl/<http://agni.phys.iit.edu/%7Ekmcivor/wxmpl/>
>
> It's a wx wrapper around MPL that gives you nifty interactive features
> ready to go.
>
> -Chris
>
>
>
> > Create the controls:
> >
> > figure = Figure(figsize=(0.1,0.1))
> > canvas = FigureCanvasWxAgg(wxParent, -1, figure)
> > toolbar = NavigationToolbar2WxAgg(canvas)
> >
> > Then you add the canvas and toolbar to a layout.
> >
> > Now you can plot as usual:
> >
> > figure.clf()
> > ax = figure.gca()
> > ax.plot(x, y)
> > canvas.draw()
> >
> > David
> >
> >
> > On Sat, 2010-10-02 at 19:52 -0800, Joshua Holbrook wrote:
> >> On Sat, Oct 2, 2010 at 1:34 PM, Anthony Palomba <apalomba@austin.rr.com>
> wrote:
> >>> I want to use matplotlib to visualiize data sets but
> >>> I also want to create a UI that lets me manipulate
> >>> properties of that data and see the result.
> >>>
> >>> Does matplotlib support creating UI interfaces or
> >>> do I need to use some other package?
> >>>
> >>>
> >>>
> >>> Thanks,
> >>> Anthony
> >>>
> >>> _______________________________________________
> >>> SciPy-User mailing list
> >>> SciPy-User@scipy.org
> >>> http://mail.scipy.org/mailman/listinfo/scipy-user
> >>>
> >>>
> >> Hey Anthony,
> >>
> >> I'm no expert on plotting in python, but you may find Chaco
> >> useful--it's Enthought's plotting library, and is intended for use in
> >> GUIs.
> >>
> >>     http://code.enthought.com/chaco/
> >>
> >> --Josh
> >> _______________________________________________
> >> SciPy-User mailing list
> >> SciPy-User@scipy.org
> >> http://mail.scipy.org/mailman/listinfo/scipy-user
> >
> >
> > _______________________________________________
> > SciPy-User mailing list
> > SciPy-User@scipy.org
> > http://mail.scipy.org/mailman/listinfo/scipy-user
>
>
> --
> Christopher Barker, Ph.D.
> Oceanographer
>
> Emergency Response Division
> NOAA/NOS/OR&R            (206) 526-6959   voice
> 7600 Sand Point Way NE   (206) 526-6329   fax
> Seattle, WA  98115       (206) 526-6317   main reception
>
> Chris.Barker@noaa.gov
> _______________________________________________
> SciPy-User mailing list
> SciPy-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20101005/05e657e1/attachment.html 


More information about the SciPy-User mailing list