Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2003

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

Search the Archive

RE: Bug in ColorFunctionScaling ???

  • To: mathgroup at
  • Subject: [mg39439] RE: [mg39386] Bug in ColorFunctionScaling ???
  • From: "Wolf, Hartmut" <Hartmut.Wolf at>
  • Date: Sat, 15 Feb 2003 01:42:17 -0500 (EST)
  • Sender: owner-wri-mathgroup at

>-----Original Message-----
>From: Cesar Guerra [mailto:guerra_cesar at]
To: mathgroup at
>Sent: Thursday, February 13, 2003 10:54 AM
>To: mathgroup at
>Subject: [mg39439] [mg39386] Bug in ColorFunctionScaling ???
>Hi math group
>working with the matrix given at the end of this mail I had 
>troubles trying to visualize it. For instance
>works too bad as can be seen using a 3D chart
>I got the correct density plot when I scaled the matrix 
>elements by hand:
>min = Min[matrix];
>max = Max[matrix];
>The question: is it a bug or I lost something in the way? A 
>similar problem arises with many matrices that I generated in 
>which there are many numbres close to zero.
>Regards.. Cesar,
>Well here is the matrix. Sorry because of the horrible format


In[8]:= dp = ListDensityPlot[matrix];

In[10]:= Cases[Graphics[dp], Raster[_, _, zrange_] :> zrange, Infinity] //
Out[10]//InputForm= {{0., 0.00009202801719751475}}

In[11]:= Through[{Min, Max}[matrix]]
Out[11]= {6.532730362808272`*^-22, 0.9373917995816773`}

This is the discrepancy; the suspicion is, this comes from some (mostly)
convenient automatism:

In[13]:= Options[dp, {ColorFunction, ColorFunctionScaling, PlotRange}]
Out[13]= {PlotRange -> Automatic, ColorFunction -> Automatic, 
  ColorFunctionScaling -> True}


In[14]:= ListDensityPlot[matrix, PlotRange -> All]; what you do miss.

Hartmut Wolf

  • Prev by Date: Re: Porting Mathematica graphics to MicroSoft Point, with quality
  • Next by Date: RE: Silly Gridbox[] question
  • Previous by thread: RE: Bug in ColorFunctionScaling ???
  • Next by thread: Re: Bug in ColorFunctionScaling ???