tkinter gnuplot
Fábio Mendes
niels_bohr at uol.com.br
Wed Nov 10 20:42:04 EST 2004
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
More information about the Python-list
mailing list