473,324 Members | 2,400 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Graph in wxPython

Does anyone know how to implement plots from scipy, chaco, etc
into wxPython widget?

Thank you
Jul 18 '05 #1
10 5732
This might be helpful.

http://starship.python.net/crew/jhauser/plot-res.html

-Anand

"Oh Kyu Yoon" <ok****@stanford.edu> wrote in message news:<bt**********@news.Stanford.EDU>...
Does anyone know how to implement plots from scipy, chaco, etc
into wxPython widget?

Thank you

Jul 18 '05 #2
Hello "Oh Kyu Yoon",
Does anyone know how to implement plots from scipy, chaco, etc
into wxPython widget?

Save them as an image and use wxImage?

HTH.
Miki
Jul 18 '05 #3
On Thursday 01 January 2004 01:31 Oh Kyu Yoon wrote in
<bt**********@news.Stanford.EDU>:
Does anyone know how to implement plots from scipy, chaco, etc
into wxPython widget?


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.
Be seeing you,
--
Godoy. <go***@ieee.org>
Jul 18 '05 #4
Tom
http://www.cyberus.ca/~g_will/wxPython/wxpyplot.html

Is that the sort of thing you mean?

Tom

Oh Kyu Yoon wrote:
Does anyone know how to implement plots from scipy, chaco, etc
into wxPython widget?

Thank you


Jul 18 '05 #5
Thank you all.
You guys have been very helpful.

Jul 18 '05 #6
On 31 Dec 2003 23:56:09 -0800, Miki Tebeka wrote:
Hello "Oh Kyu Yoon",
Does anyone know how to implement plots from scipy, chaco, etc
into wxPython widget?


Save them as an image and use wxImage?


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.

www: http://dman13.dyndns.org/~dman/ jabber: dm**@dman13.dyndns.org
Jul 18 '05 #7
>>>>> "Oh" == Oh Kyu Yoon <ok****@stanford.edu> writes:

Oh> Does anyone know how to implement plots from scipy, chaco, etc
Oh> into wxPython widget?

matplotlib has a wxpython plotting backend, which supports interactive
data exploration and hardcopy save to a variety of output formats --
http://matplotlib.sourceforge.net

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.

matplotlib also supports GTK, PS and GD.

biasedly-yours,
JDH

Jul 18 '05 #8
John ....

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 .... :-)

import matplotlib

matplotlib.use( 'WX' )

unrecognized backend WX.
Use one of PS, GD, GTK, Template

--
Cousin Stanley
Human Being
Phoenix, Arizona

Jul 18 '05 #9
>>>>> "Cousin" == Cousin Stanley <Co***********@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 .... :-)
import matplotlib

matplotlib.use( 'WX' )

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.

Hope this helps,
JDH
Jul 18 '05 #10
| 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

John ....

I've got MatPlotLib 0.30 installed here on 2003-10-21 ....

I'll look for 0.40 ....

Thanks for the update ....

--
Cousin Stanley
Human Being
Phoenix, Arizona

Jul 18 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Todd Gardner | last post by:
I would like to graph two columns of x,y numbers? I would greatly appreciate any pointers or suggestions. Thank you, Todd
9
by: Lilith | last post by:
Is there a python module somewhere (been searching today, no luck) which has efficiently coded various graph-handling routines, such as finding the shortest path through a graph, or the set of all...
4
by: George Sakkis | last post by:
Does anyone know of a good graph API ? The only one I found for Python is part of kjbuckets (http://starship.python.net/crew/aaron_watters/kjbuckets/kjbuckets.html), but I was looking for...
1
by: timothy.williams | last post by:
I'm trying to install wxPython 2.5.3.1 using Python 2.3.2 on a Fedora 2 machine. I have python in a non-standard place, but I'm using --prefix with the configure script to point to where I have...
8
by: Ghirai | last post by:
Hello list, I need to draw a graph, 2 axes, 2D, nothing fancy. One of the axes is time, the other one is a series of integers. I don't care much about the output format. Are there any...
2
by: sriniwas | last post by:
Hi Frnd's, m using prefuse visulation,it's have one display class and this class have one saveImage(outPutStream, String jpg,double size);. now graph is converting ia jpg image properly.now my...
4
by: Man4ish | last post by:
namespace ve/////////////////ve.h { struct VertexProperties { std::size_t index; boost::default_color_type color; }; }...
2
by: Man4ish | last post by:
I have created Graph object without vertex and edge property.It is working fine. #include <boost/config.hpp> #include <iostream> #include <vector> #include <string> #include...
0
by: eureka2050 | last post by:
Hi all, I am creating a radar chart containing 2 plots using jpgraph. My code is as follows:- include ("./jpgraph/src/jpgraph.php"); include ("./jpgraph/src/jpgraph_radar.php"); //...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.