MathGroup Archive 2011

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

Search the Archive

Re: MatrixPlot

None of the options worked...
My command is:
  ColorFunction -> (GrayLevel[(# - Min[a])/(Max[a] - Min[a])] &),
  ColorFunctionScaling -> False, PlotRange -> All]
And generates a matrix of whites. The matrix ranges between -7866.78
and 145, so some color should be visible.
Am I doing something wrong in this command?
Thanks in advance!

On Sat, Jan 29, 2011 at 7:01 AM, DrMajorBob <btreat1 at> wrote:
> There is PlotRange -> All, and we recently discovered PlotRange -> Full.
> Maybe one of those will work.
> Bobby
> On Fri, 28 Jan 2011 05:16:40 -0600, Sofia Figueiredo <sofiafig at>
> wrote:
>> Dear Math group,
>> I have a 14x8 matrix "A" and I want to present it as a color map. I am
>> trying to use the command MatrixPlot, but I do not manage to set the
>> upper and lower limit. I tried to define the
>> PlotRange->{Min[A],Max[A]}, but it did not work.
>> How can I set the upper limite of the color range to the maximal value
>> of my matrix and the lower limite of the color range to the minimal
>> value of my matrix?
>> I also find strange that, in the MatrixPlot I get, the system can
>> diferentiate between the values 0.7 and 0.2, but then attributes the
>> same color to values as disparate as 1 and 145. How can I avoid this?
>> Thanks in advance.
>> Sofia
> --
> DrMajorBob at

  • Prev by Date: Re: FindFit bug
  • Next by Date: Re: FindFit bug
  • Previous by thread: Re: Mathematica 8 Integration Bug
  • Next by thread: Re: MatrixPlot