|
From: Dave D. <dde...@es...> - 2004-09-06 17:12:24
|
Daniel J Sebald <dan...@ie...> writes: > 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? >> > > Hi Donald, > > Well, that is where my X-pertise runs out. From what I see, it > appears the X-window has to of a specific configuration to be > compatible with gnuplot_x11 as it is currently set up. I found the > same behavior as you did. I ran applications from the command line so > that any errors would be reported back to the terminal window. Often > what happens is when gnuplot_x11 attempts to access the supplied X > window, that window dies. gnuplot_x11 must default to a simple X > window in that case. (But I'm not sure, I didn't go that far into the > code.) I think Dave or Ethan might have some more insight into what > is going wrong. > There's a tool you can use to watch X packets. xmon I think. This would let you see raw X error packets being sent - you can never entirely trust programs to show you the actual errors. Did you go with making a new window parented by the supplied window, or drawing directly to the given window ? Do you use the existing colormap or try to impose one. One thing you can try to simplify the world is to use Xvfb or something to give yourself a limited X server. Eg if it only supports one colour depth, or only static visuals, windows can only be of a certain configuration. dd -- Dave Denholm <dde...@es...> http://www.esmertec.com |