|
From: Daniel J S. <dan...@ie...> - 2004-09-06 20:08:31
|
Donald Burns wrote: >Hi Dan, > >I've got the latest CVS and your last patch, even got it to compile and >run and install but I can't make it pop up in a tck/tk window. I've >tried both "frames" and canvases but with no joy. gnuplot just stubornly >pops up a fresh window. Have check that the correct gnuplot_x11 binary >is being run and it is. I must be missing a trick here. I can get it to >work using ghostview as per your instructions but oddly enough it comes >up with a small window on top of the gnuplot plot. Any ideas? > > Yes, that small window (what I called the "paper") is where gv puts the interpretted PostScript. The parent window underneath is the one which will allow gnuplot_x11 to write to it. As I say, it is just a proof-of-concept that gnuplot_x11 can write to an outside window. Nothing more. I've never worked with tcl/tk, but after poking around a bit on my RedHat distribution I think I'm catching on. To launch tcl is "tcl", that's easy enough. But to get the X extensions tk interpretted is another matter. I see "tclx" and "tk" are extensions. Is the interpretter for the tk portion of all this something called "wish" or "wishx"? [There is all kinds of documentation on tcl/tk, but nothing telling you what command to start it.] So a "frame" seems like a fundamental thing in "wish", but that isn't necessarily the same thing as an X frame. My guess is that "frame" is a simple tk concept of a place to position buttons, dials, etc. Probably not the sort of thing that allows gnuplot_x11 to put a plot there. "canvas" sounds more like a versatile window in which to put graphical stuff. There is a demo as part of tk called "widgets", and in there is a demo for images. I tried hooking gnuplot_x11 to one of those windows. Unfortunately, it causes the tk demo to crash. Someone with a clearer understanding of X and the types of X windows or configuration that works with what gnuplot_x11 is attempting to do might be able to help. Dan |