MATLAB Answers

contourf with no isoline

521 views (last 30 days)
Shani Gal
Shani Gal on 13 Feb 2012
Commented: Oanh Bui on 2 Aug 2015
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

Accepted Answer

Andrew Newell
Andrew Newell on 13 Feb 2012
Here is an example of how to do it:
[C,h] = contourf(peaks(20),10);
set(h,'LineColor','none')
  4 Comments
Oanh Bui
Oanh Bui on 2 Aug 2015
Thanks so much. it worked.

Sign in to comment.

More Answers (1)

Todd
Todd on 7 Mar 2012
You can also put 'LineColor', 'none' in the argument list to contourf.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!