Re: Raster and ColorFunctionScaling
- To: mathgroup at smc.vnet.net
- Subject: [mg31574] Re: Raster and ColorFunctionScaling
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Wed, 14 Nov 2001 03:41:50 -0500 (EST)
- Organization: Universitaet Leipzig
- References: <9sl376$dlf$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi, it is not, because the third argument of Raster[] gives an explicit range for the color values in the first argument. There are a lot of bitmap operations that require an explicit rescaling and the "automatical" height rescaling would be very confusing for bitmaps. Regards Jens David Park wrote: > > Dear MathGroup, > > Is there any explanation for the strange behavior of the > ColorFunctionScaling option when used with the Raster graphics primitive. > When set to True it simply clamps z < 0 to 0 and z > 1 to 1. But in > ContourPlot and DensityPlot the minimum and maximum z values in the plot are > found and then scaled to 0 and 1. It is certainly easy enough for > Mathematica to find the minimum and maximum values in the raster array, so > why doesn't Mathematica do the same kind of scaling with Raster? It is > inconsistent and confusing usage. > > David Park > djmp at earthlink.net > http://home.earthlink.net/~djmp/