From: Francesca Turco on
Hi,
I have a 2D matrix M with values that range from 1e-8 to 1e0, when I plot it with >contourf(M) the colorbar only goes from 1 to 1.32 and of course the plot does not how the data at all. This happens also with contour.
Does anyone know why?
Thanks,
Francesca
From: TideMan on
On Jun 10, 2:09 pm, Francesca Turco <frances.tu...(a)gmail.com> wrote:
> Hi,
> I have a 2D matrix M with values that range from 1e-8 to 1e0, when I plot it with >contourf(M) the colorbar only goes from 1 to 1.32 and of course the plot does not how the data at all. This happens also with contour.
> Does anyone know why?
> Thanks,
> Francesca

Oh, come on!!!
Think about it.
How can poor old contour distinguish between 1e-8 and zero?
Try plotting a profile through the data using plot, say plot(M(:,10)).
What do you see?
If you want to distinguish between 1e-8 and 1e-7 for example, you'll
need to use log10(M).