can wxPython do plot?

Hi there,

I’m a total newbie to wxPython and Python, could some warm-hearted shed me some light to the following 2 questions?

  1. I wish to plot some discrete data to fit in some distribution functions, can wxPython do this? If so, are there some examples?

  2. Is it possible to link Fortran code with the wxPython plot code as one single program?

Thank you very much!

Owen

···

Yahoo! Mail Mobile

Take Yahoo! Mail with you! Check email on your mobile phone.

Yup, sure can. Several different options. There is SciPy for
complicated plotting (large data sets, 3d, etc).

For simpler plots, look into wx.lib.plot. This creates a plotCanvas
which is just another wxWindow.

-Matt

···

On 6/14/05, w.o.b <wob96@yahoo.com> wrote:

Hi there,
  
I'm a total newbie to wxPython and Python, could some warm-hearted shed me
some light to the following 2 questions?
  
1. I wish to plot some discrete data to fit in some distribution functions,
can wxPython do this? If so, are there some examples?
  
2. Is it possible to link Fortran code with the wxPython plot code as one
single program?
  
Thank you very much!
  
Owen

________________________________
Yahoo! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.

--
Don't be a pioneeer. A pioneer is the guy with the arrow through his
chest. -- John J. Rakos

1. I wish to plot some discrete data to fit in some distribution functions,
can wxPython do this? If so, are there some examples?

Yes, however there is no documentation, just the demo: look for pyplot.py in
your python directory.

2. Is it possible to link Fortran code with the wxPython plot code as one
single program?

Most likely yes, at the very worst through a "C glue"

Regards,

Philippe

···

On Tuesday 14 June 2005 08:12 pm, w.o.b wrote:

Hi there,

I'm a total newbie to wxPython and Python, could some warm-hearted shed me
some light to the following 2 questions?

1. I wish to plot some discrete data to fit in some distribution functions,
can wxPython do this? If so, are there some examples?

2. Is it possible to link Fortran code with the wxPython plot code as one
single program?

Thank you very much!

Owen

---------------------------------
Yahoo! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.

--
*************************************
Philippe C. Martin
SnakeCard, LLC
www.snakecard.com
+1 405 694 8098
*************************************

w.o.b wrote:

2. Is it possible to link Fortran code with the wxPython plot code as one single program?

If the fortran code is exposed as a Python extension module then yes.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

w.o.b wrote:

1. I wish to plot some discrete data to fit in some distribution functions, can wxPython do this? If so, are there some examples?

Someone else already suggested wx.lib.plot, which will handle simple cases. However, if you want something more full-featured, matplotlib is your best bet:

most of the docs give examples for how to use it in interactive mode, or part of simple procedural scripts, but it can also be embedded in a wxPython app just like any other wx.Window. Look for docs and examples about the "OO interface" and the "embedded in wx" examples.

Chaco is also worth considering if you're only on Windows. while theoretically cross-platform, I think it's only being developed on Windows at this point. It's written and distributed by Enthought:

www.enthought.com

2. Is it possible to link Fortran code with the wxPython plot code as one single program?

You want to check out f2py for this:

http://cens.ioc.ee/projects/f2py2e/

You'll also probably want to use Numeric or numarray, and maybe SciPy.

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer
                                         
NOAA/OR&R/HAZMAT (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

Hi Owen,

You might also want to look at matplotlib.

See you
Werner

w.o.b wrote:

···

Hi there,
I'm a total newbie to wxPython and Python, could some warm-hearted shed me some light to the following 2 questions?
1. I wish to plot some discrete data to fit in some distribution functions, can wxPython do this? If so, are there some examples?
2. Is it possible to link Fortran code with the wxPython plot code as one single program?
Thank you very much!
Owen

------------------------------------------------------------------------
Yahoo! Mail Mobile
Take Yahoo! Mail with you! <http://us.rd.yahoo.com/evt=31132/*http://mobile.yahoo.com/learn/mail&gt; Check email on your mobile phone.

Hi Werner,

I'll take a look at it. Thanks!

Owen

···

--- "Werner F. Bruhin" <werner.bruhin@free.fr> wrote:

Hi Owen,

You might also want to look at matplotlib.

http://matplotlib.sourceforge.net/

See you
Werner

w.o.b wrote:

> Hi there,
>
> I'm a total newbie to wxPython and Python, could
some warm-hearted
> shed me some light to the following 2 questions?
>
> 1. I wish to plot some discrete data to fit in
some distribution
> functions, can wxPython do this? If so, are there
some examples?
>
> 2. Is it possible to link Fortran code with the
wxPython plot code as
> one single program?
>
> Thank you very much!
>
> Owen
>
>

------------------------------------------------------------------------

> Yahoo! Mail Mobile
> Take Yahoo! Mail with you!
>

<http://us.rd.yahoo.com/evt=31132/*http://mobile.yahoo.com/learn/mail&gt;

> Check email on your mobile phone.

---------------------------------------------------------------------

To unsubscribe, e-mail:
wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org

__________________________________
Discover Yahoo!
Get on-the-go sports scores, stock quotes, news and more. Check it out!
http://discover.yahoo.com/mobile.html