From: Dean C. <de...@qu...> - 2001-02-20 15:15:07
|
On Sunday, February 18, 2001 1:35 AM, Maurice LeBrun [SMTP:mj...@ga...] wrote: > Dean Clamons writes: > > I've found that the routines plscmap0, plscmap1 and plscol0 all have API's > > > > defined in tclgen.c. That's fine and they seem to work, but in plframe > > there > > are also separate implementations in Cmd which seem to require different > > calling sequences. I'm assuming that these are left over from some previous > > > > incarnation. Incidentally, I've looked at the 5.0.2 source files to see if > > the > > problem still exists there. It does. > > The color handling routines in plframe use X11 conventions rather than plplot > ones, which is more appropriate for a widget. I.e. it uses XParseColor to > convert a string into its 3 rgb components. This lets you use symbolic names > or hex notation for color values. > That seems reasonable, but what is the calling sequence expected by plframe? For instance, the C calling sequence for plscmap1 is "plscmap1(r,g,b,ncol)". One would then expect the tcl calling sequence to be "plscmap1 r g b ncol". That is not what plframe expects. I haven't analyzed exactly what it wants, but the first parameter is supposed to be ncol. Dean Clamons Code 7420 Naval Research Lab Washington, DC 20375 202-767-2732 |