From: Vince D. <vi...@sa...> - 2002-11-27 13:23:02
|
Ok, I understand this a bit. The 'Plplotter' package is the one achieved by using the windows-specific makefile from my changes over the last couple of years, using the 'tkwin' driver. It only exposes the 'plframe' widget and associated megawidgets to the level of Tcl/Tk. The API Rayal is referring to is that achieved through 'Pltcl_Init' which simply isn't in it. Rayal: for someone who knows the relevant APIs, it shouldn't be hard to compile a different version which exposes the stuff you are trying to use, but I think you will find it easier just to use plplot via 'plframe', so do this: package require Plplotter plframe .p and then wherever you see a command 'plinit', 'plcol0' etc, use instead: .p cmd plinit .p cmd plcol0 ... etc. cheers, -- Vince <http://www.santafe.edu/~vince> On Tue, 26 Nov 2002, Rayal wrote: > Hi > Thank you for your response. > I have installed Plplot5.1.0 along with ActiveState Tcl/Tk on NT sysytem. > I believe the Plplot installation was successful because I could see > Plplotter among the list of all packages that I got with "package names" > command. I haven't compiled or built any source files. I tried to source a > small script file(.tcl)with the following code which was given in Plplot > reference document: > > //////////////////////////////////////////////////////// > package require Plplotter > set xmin 0; set xmax 1; set ymin 0; set ymax 1 > set just 0; set axis 0 > set xlab (x) > set ylab (y) > set title "The title of the graph" > plinit > plenv $xmin $xmax $ymin $ymax $just $axis > pllab $xlab $ylab $title > ///////////////////////////////////////////////////////// > > I got the error message saying.."invalid command name plinit" > I tried removing the offending line and again I got the error .. > " invalid command name plenv" > Similarly I also tried many commands at the tcl prompt but all I get is > the 'invalid command' error. > However interesting point to note is that If I type "Plplotwin .p" at the > Tcl prompt I get a blank Plplot Widget window with all the menu items > 'File', 'Orient', 'Zoom', 'Page', 'Options'. > > So I have a feeling that the package was installed correctly, but I am > unable to figure out how to make the code/commands work. Could you please > throw some light on this. > > Rayal. > _______________________________________________________________ > Get Your FREE FlashMail Address now at http://www.flashmail.com > It's Free, Easy, & Fun !!! > > > ------------------------------------------------------- > This SF.net email is sponsored by: Get the new Palm Tungsten T > handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > _______________________________________________ > Plplot-general mailing list > Plp...@li... > https://lists.sourceforge.net/lists/listinfo/plplot-general > |