contourf with no isoline

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

Here is an example of how to do it:
[C,h] = contourf(peaks(20),10);
set(h,'LineColor','none')

4 Comments

Should it be EdgeColor since it is patches that are constructed?
I tested it and it works - so maybe the lines are plotted separately.
Thanks, how do I change the label on the axis? a 20x400 matrix will display 0 to 20 and 0 to 400. How do I assign real values to this numbers?
Thanks so much. it worked.

Sign in to comment.

More Answers (1)

Todd
Todd on 7 Mar 2012

12 votes

You can also put 'LineColor', 'none' in the argument list to contourf.

Categories

Tags

Asked:

on 13 Feb 2012

Commented:

on 20 Jun 2022

Community Treasure Hunt

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

Start Hunting!