Dear All, I got some problems when I had a colour table with 150 colours in cmap0 and then wanted to create a "gif" file from that. I got an error like "Too many colours in cmap0".
Looking through the code it turned out to be cuased by the "gd.c" driver. This one takes the maximum number of colours "NCOLOURS" from "gdMacColors" (which is defined as 256 in the header file gd.h). But at a certain moment the number of colours as defined for the cmap0 colour table is compared with "NCOLOURS/2" (see line815 in gd.c). So, as I have 150 colours in my map, I now get this error as it exceeds 128 and my "gif" file is not what I wanted. Is there a special reason why only half of the colours is allowed here ? (I removed that limitation by just testing at NCOLOURS and now my picture looks as expected) Regards, Hans Rijneke ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Plplot-general mailing list Plplot-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-general