In order to run TK code that uses plplot extensions, you need an extended wish that knows about these extra commands. That's what plserver is for (it also has some IPC for handling requests from the plplot TK driver which is why it's not simply called "plwish".. too bad, that would've been more transparent). So use plserver, or write your own extended wish; it should be straightforward enough (google it). One of the niceties of Tcl/Tk is its ease of embedding in users applications and light footprint.
Maurice On Monday, August 9, 2010 at 08:09:34 (-0700) Faizullabhoy, Alefiya writes: > Hello Arwen, > > Thank you for your reply. Do you have sample TK code that plots a graph > without using plserver or an xtk02 C wrapper? I did look at the tk02.in > sample program but have not been able to invoke it without using xtk02. I > am running on Linux. > > Thanks, > Alefiya > > -----Original Message----- > From: Arjen Markus [mailto:[email protected]] > Sent: Monday, August 09, 2010 10:03 AM > To: Faizullabhoy, Alefiya > Cc: [email protected] > Subject: Re: [Plplot-devel] creating a graph using Tcl/tk > > Hello Alefiya, > > should you have more questions about the Tcl/Tk interface, let us know. > (I should be able to help out with it - especially if you use it on > Window.) > > Regards, > > Arjen > > On 2010-08-03 23:04, Alan W. Irwin wrote: > > On 2010-08-03 06:50-0700 Faizullabhoy, Alefiya wrote: > > > >> I'm new to plplot and I installed plplot with all the given examples on > >> Fedora. I need an example where I can create a graph from within a > >> TCL/TK > >> program. I looked at the examples but they all seem to require a C > >> program > >> to run them ie xtk02 -f tk02.in. How do I create a graph directly from a > >> TCL/TK program without using a C program such as xtk02? > > > > Hi Alefiya: > > > > Thanks for your interest in PLplot. > > > > To answer your specific question, in the svn version (and possibly > > 5.9.6 as well although there are some issues that have been fixed > > since 5.9.6) look at examples/tk/standard_examples.in in the source > > tree that is the template for the configured shell script located at > > examples/tk/standard_examples in the build tree. That configured > > shell script implements what is suggested for the plserver way of > > doing things in examples/tk/README.tkdemos. That latter file also > > suggests some additional possibilities for running our standard Tcl > > examples (as well a C-compiled examples) from a Tk environment. > > > > Alan > > __________________________ > > Alan W. Irwin > > > > 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 libLASi project (unifont.org/lasi); the Loads of > > Linux Links project (loll.sf.net); and the Linux Brochure Project > > (lbproject.sf.net). > > __________________________ > > > > Linux-powered Science > > __________________________ > > > > ------------------------------------------------------------------------------ > > The Palm PDK Hot Apps Program offers developers who use the > > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > > of $1 Million in cash or HP Products. Visit us here for more details: > > http://p.sf.net/sfu/dev2dev-palm > > _______________________________________________ > > Plplot-devel mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/plplot-devel > > > DISCLAIMER: This message is intended exclusively for the addressee(s) and > may contain confidential and privileged information. If you are not the > intended recipient please notify the sender immediately and destroy this > message. Unauthorized use, disclosure or copying of this message is strictly > prohibited. > The foundation 'Stichting Deltares', which has its seat at Delft, The > Netherlands, Commercial Registration Number 41146461, is not liable in any > way whatsoever for consequences and/or damages resulting from the improper, > incomplete and untimely dispatch, receipt and/or content of this e-mail. ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ Plplot-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/plplot-devel
