From: Maurice L. <mj...@ga...> - 2003-08-24 19:20:34
|
Aldric L'Hernault writes: > Hi, > > First I have to thanks you guys for this library. I finally > managed to compile it on HP, Solaris and Linux. > > I am using tcl binding with "plframe" widget, then use the > "plbop" subcommand. > After creating aa few wigdets (around 15) it sometime reaches a > maximum number of color and the whole program stops with a message > similar to this one: > > *** PLPLOT ERROR *** > cannot allocate any color > > I wouldn't consider this dramatic except it crash the wish > interpreter also. Is there a way to decreases color allocation, or > at least to trap the error before ? I agree this should be handled better. Right now there are many bail-out scenarios in the X driver that the plframe TK widget should probably trap. No simple solution however. You can reduce the number in cmap0 or cmap1 through the plscmap0n() and plscmap1n() API calls, respectively. Unfortunately there isn't currently a plframe widget option that achieves this effect. On my Linux system using a 16-bit color depth X session, I don't see this error. Using the 'tk03' demo program I created 30 child windows (containing plframe widgets) without problem before quitting. -- Maurice LeBrun Lightspeed Semiconductor Corp |