For your information there is a peculiar but designed interaction between
the background colour and _default_ cmap1.

If you run example 16 with the background set to a light-coloured value, e.g.,

c/x16c -dev psc -o test.ps -bg fffff

or

c/x16c -dev psc -o test.ps -cmap0 cmap1_black_on_white.pal

you get very different default cmap1 values than if you run with a black 
background colour.  The result is independent of device driver. I originally
thought this was some horrible bug, but it turns out the vertex logic used
to set the _default_ cmap1 depends on the mean background colour by design.

I wasted a lot of time on this today (including a binary search to
"discover" that the effect was not there for -bg 7f7f7f but was there for
-bg 808080) so I thought I should mention it here so that others don't waste
their time trying to track down this "bug".

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
__________________________

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to