From: Vikram Khade on
I found a similar problem. In my case, contourf uses the last color to
paint both the last and second to last values. So that the second to last color
is not visible.
Peter, did the matlab engineer get back to you with the solution?
The version I am using is
7.7.0.471 (R2008b)
The problem persists even if one uses version 6 (I passed the\
'v6' flag to contourf).


Peter <petersamsimon2(a)hotmail.com> wrote in message <398ab7df-28fa-4325-b1f6-fa6225fe2583(a)f17g2000prh.googlegroups.com>...
> At the following web site I've placed an M-file (demo_contourf_bug.m)
> that I believe demonstrates a bug in the contourf function as
> implemented in Matlab 7.6:
>
> http://users.vcnet.com/simonp/contourf_demo/
>
> The M-file reads in the mat file data.mat, then uses a user-defined
> colormap with both pcolor (in the top subplot) and contourf (in the
> bottom subplot) to plot the same dataset. The figure that is
> generated by this M-file reveals that the contourf plot is missing the
> blue color that should be placed between the 99.76 and 99.81
> contours. A PDF image of the figure is also provided at the same site
> for viewing convenience.
>
> If anyone can explain this strange behavior, I'd be very grateful.
>
> Thanks,
> Peter