"Oh Kyu Yoon" <okyoon@stanfor d.edu> wrote in message news:<bt04a4$2e 3$1@news.Stanfo rd.EDU>...[color=blue]
> Does anyone know how to implement plots from scipy, chaco, etc
> into wxPython widget?
>
> Thank you[/color]
Hello "Oh Kyu Yoon",
[color=blue]
> Does anyone know how to implement plots from scipy, chaco, etc
> into wxPython widget?[/color]
Save them as an image and use wxImage?
On Thursday 01 January 2004 01:31 Oh Kyu Yoon wrote in
<bt04a4$2e3$1@n ews.Stanford.ED U>:
[color=blue]
> Does anyone know how to implement plots from scipy, chaco, etc
> into wxPython widget?[/color]
Hi.
I'm doing some research on the same subject and I found out that
Matplotlib seems to be very interesting. Go to http://matplotlib.sourceforge.net/ and take a look by yourself.
On 31 Dec 2003 23:56:09 -0800, Miki Tebeka wrote:[color=blue]
> Hello "Oh Kyu Yoon",
>[color=green]
>> Does anyone know how to implement plots from scipy, chaco, etc
>> into wxPython widget?[/color]
>
> Save them as an image and use wxImage?[/color]
This works. This past spring I had to implement basic graph
generation for a school project I was using wxPython for. I opened a
pipe to gnuplot, let it create an image, then displayed the image.
-D
--
If your life is a hard drive,
Christ can be your backup.
Download matplotlib for free. Matplotlib is a python library for making publication quality plots using a syntax familiar to MATLAB users. Matplotlib uses numpy for numerics.
Here's a sample script:
import matplotlib
matplotlib.use( 'WX')
from matplotlib import plot, show
plot([1,2,3])
show()
You can use matplotlib interactively from the python shell, in batch
python scripts, or embed it in wxpython application window. Or you
can use it offline w/o a GUI environment to make hardcopy plots in
PNG, PS or other formats.
See the example examples/embedding_in_wx .py for demo code showing how
to embed matplotlib figures into wx apps.
Perhaps I can add another verse to that song I've been writing
called The GTK/PyGtk/wGlade/Wx/MatPlotLib Blues ....
You know a couple of verses already .... :-)
[color=blue][color=green][color=darkred]
>>>
>>> import matplotlib
>>>
>>> matplotlib.use( 'WX' )[/color][/color][/color]
unrecognized backend WX.
Use one of PS, GD, GTK, Template
>>>>> "Cousin" == Cousin Stanley <CousinStanley@ hotmail.com> writes:
Cousin> John .... Perhaps I can add another verse to that song
Cousin> I've been writing called The
Cousin> GTK/PyGtk/wGlade/Wx/MatPlotLib Blues ....
Cousin> You know a couple of verses already .... :-)
[color=blue][color=green][color=darkred]
>>>> import matplotlib
>>>>
>>>> matplotlib.use( 'WX' )[/color][/color][/color]
Cousin> unrecognized backend WX. Use one of PS, GD, GTK, Template
Looks like you're using an older version of matplotlib. The WX
backend is a fairly recent addition. Make sure you are using 0.40.
Comment