Re: tkinter gnuplot
From: Fábio Mendes (niels_bohr_at_uol.com.br)
Date: 11/11/04
- Next message: Anthony Papillion II: "mod_python not working (showing source code)"
- Previous message: Sam Holden: "Re: distutils and Debian"
- In reply to: Fernando Perez: "Re: tkinter gnuplot"
- Next in thread: Fernando Perez: "Re: tkinter gnuplot"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: Python <python-list@python.org> Date: Wed, 10 Nov 2004 23:42:04 -0200
Em Qua, 2004-11-10 às 15:31 -0700, Fernando Perez escreveu:
> Rama Calaga wrote:
>
> > Hi, I use both python and gnuplot a lot, but I am
> > unable to find a way to embed gnuplot "window/canvas" into tkinter. BLT
> > option in PMW is not so powerful and not so great, any suggestions ??
>
> I don't think there's an easy way to do that, since all access to gnuplot from
> python is via a pipe. Gnuplot is an external program, not a library. You
> might be able to make gnunplot generate .pngs and then load those into a tk
> canvas, but it will be clumsy.
>
> You might want to look at http://matplotlib.sourceforge.net. It's a true
> python plotting library (as opposed to a pipe to an external program), set up
> from the get-go for GUI embedding (with Tk, GTK and WX examples included).
>
> Best,
>
Or even scipy. It's a great scientific library and I think it uses
gnuplot as one of the graphical frontends (http://scipy.org) . I'm not
sure if it allows you to pass arbitrary gnuplot commands, but if you
want to build such a thing, surely the source could be helpful.
Cheers,
Fabio
- Next message: Anthony Papillion II: "mod_python not working (showing source code)"
- Previous message: Sam Holden: "Re: distutils and Debian"
- In reply to: Fernando Perez: "Re: tkinter gnuplot"
- Next in thread: Fernando Perez: "Re: tkinter gnuplot"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|