MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Raster, Color Function as Pure FunctionI


If "Dynamic updating" is disabled  in the menu "Evaluation", the
following graphic shows up:
Graphics[Raster[{{0, 0.2, 0.4}, {0.6, 0.8, 1}}, ColorFunction -> Hue]]

while the following two don't:
Graphics[Raster[{{0, 0.2, 0.4}, {0.6, 0.8, 1}}, 
  ColorFunction -> (Hue[#1] & )]]
Graphics[Raster[{{0, 0.2, 0.4}, {0.6, 0.8, 1}}, 
  ColorFunction -> (RGBColor[#1, #1, 1 - #1] & )]]

Everything shows up finely with Dynamic Updating enabled. Obviously,
the treatment is more complex when pure functions are used to specify
the color scale. But why through dynamically evaluated things?

Anybody can shed light on the rendering process when pure functions
are used with Graphics[Raster[]]? Note that it is not the case when
ArrayPlot is used, even with Dynamic Updating disabled, pure functions
can be used for ColorFunction.

Thanks.

Guy Lamouche


  • Prev by Date: Re: step into dsolve routine on step at a time
  • Next by Date: Re: Can listcontourplot have log-log axes?
  • Previous by thread: Re: Can mathematica do a log-log contour plot?
  • Next by thread: Re: Can listcontourplot have log-log axes?