I am currently working on a plotting application, which uses gnuplot as its backend. Right now, the application pipes commands to gnuplots and gnuplot creates wonderful plots in a separate x window (set terminal x11).
I have started on embedding this output window into my (py)gtk application using a (terrible, non-portable, x11 specific) little hack:
1. Give the window a distinct title using the title option 'set terminal title xxx'.
2. Issue 'plot' command -> gnuplot window appears
3. Use 'xwininfo -name "xxx"' and receive the window id (yyy) of the window from the output.
4. Embed the gnuplot window into my own window using the Socket mechanism of gtk; for this I need to pass the window id yyy to the Socket object.
This works very well except for the annoyance that the window pops up in step 2, vanishes and then reappars in my own window.
As I haven't found any intrinsic property of gnuplot to embed the output windows (neither in the gnuplot documentation nor on the wild wide net), I turn to anyone on this mailing list to help me. Are there any other solutions, maybe even portable ones, to embed gnuplot into another window? (I do not request to have gnuplot as a library, piping is just fine!)
What suggestions do you have ?
Are there maybe any plans on adding support to embed the x11 output window ? From what I've gathered (I may be wrong), QT and GTK use a compatible mechanism to embed widgets.
Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min.
weltweit telefonieren! http://freephone.web.de/?mc=021201