contourf with no isoline

177 次查看(过去 30 天)
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

采纳的回答

Andrew Newell
Andrew Newell 2012-2-13
Here is an example of how to do it:
[C,h] = contourf(peaks(20),10);
set(h,'LineColor','none')
  4 个评论
Shani Gal
Shani Gal 2012-2-19
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?
Oanh Bui
Oanh Bui 2015-8-2
Thanks so much. it worked.

请先登录,再进行评论。

更多回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Contour Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by