From: Alan W. I. <ir...@be...> - 2004-11-05 16:50:46
|
On 2004-11-05 05:36-0500 Ali Muhammad wrote: > Hi, > > I am using plsetopt("plwindow", "Figure 1") but it shows the default title. I am using java binding on windows. > > Please advise. Note, I document a tk bug I found for Maurice below. It turns out that plwindow is a valid option, but I frankly had never heard of it because Maurice (or whoever put this together) is a tricky guy :-) Normally, I use the -h command-line option to find particular options, but it turns out some of those are hidden (including the -showall and -plwindow options), and the only way to reverse that is to use the -showall option. java plplot.examples/x10 -showall -h |grep plwindow * -plwindow name Name of PLplot container window (tk or dp driver) Actually, this is poor documentation since we don't have a dp driver any more, and in fact I found this option only works for the xwin devices on the Unix side of things, e.g., java plplot.examples/x10 -plwindow "hello world" -dev xwin If I try -dev tk instead, I get the following error message: wrong # args: should be "plw::create w ?client_id?" wrong # args: should be "plw::create w ?client_id?" while executing "plw::create hello world tk" ("after" script) Maurice, it looks like bit-rot has set in, and you may wish to either remove this option altogether from the tk device or fix it. Ali, your interactive device driver on windows is different from xwin so at this time the plwindow option may just not be implemented. If you want to look into this further have a look at the source code for the device that you are using for interactive display on the windows side. I believe (although Arjen should know for sure) that is in .../sys/win32/msdev/src/win3.cpp file. Anyhow, that file has no mention of plwindow. I presume you could implement handling of the plwindow option by following what occurs for drivers/xwin.c. If you could get it to work, I am sure we would be happy to accept your patch. BTW, Ali, I believe you are the only user to get java to work on the windows side. Could you document what you did so other windows/java users could benefit? Alan __________________________ Alan W. Irwin email: ir...@be... phone: 250-727-2902 Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); PLplot scientific plotting software package (plplot.org); the Yorick front-end to PLplot (yplot.sf.net); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |