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 日

8 投票

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

4 件のコメント

Walter Roberson
Walter Roberson 2012 年 2 月 13 日
Should it be EdgeColor since it is patches that are constructed?
Andrew Newell
Andrew Newell 2012 年 2 月 13 日
I tested it and it works - so maybe the lines are plotted separately.
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 日

12 投票

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

1 件のコメント

Utility
Utility 2022 年 6 月 20 日
super! Thanks a lot!

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeContour Plots についてさらに検索

タグ

質問済み:

2012 年 2 月 13 日

コメント済み:

2022 年 6 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by