Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

contourf with no isolines

9 views
Skip to first unread message

Shani Gal

unread,
Feb 13, 2012, 1:20:11 PM2/13/12
to
Hi
How do I plot a contourf plot only with colors and no isolines?

"filled contour plot displays isolines calculated from matrix Z and fills the areas between the isolines using constant colors corresponding to the current figure's colormap"

I wish to have only the color between the isolines but no isolines..

Thanks

Shani

TideMan

unread,
Feb 13, 2012, 2:10:10 PM2/13/12
to
Try this:
[cs,hc]=contourf(x,y,z);
set(hc,'EdgeColor','none')

Alan Weiss

unread,
Feb 13, 2012, 2:18:03 PM2/13/12
to
Or even simpler:
[C,h] = contourf(peaks(20),10,'LineStyle','none');

Alan Weiss
MATLAB mathematical toolbox documentation

Ulf Graewe

unread,
Feb 14, 2012, 10:04:48 AM2/14/12
to

>
> I wish to have only the color between the isolines but no isolines..
>

Hi Shani,
try something like this:
contourf(peaks,30,'edgecolor','none')

Yuheng

unread,
Feb 14, 2012, 10:04:48 AM2/14/12
to
"Shani Gal" wrote in message <jhbk8q$r89$1...@newscl01ah.mathworks.com>...
Try

[c, h] = contourf(peaks);
set(h,'linestyle','none')
0 new messages