MATLAB Answers

How can i have contour lines invisible in contourf?

147 ビュー (過去 30 日間)
Eyal Barnea
Eyal Barnea 2017 年 6 月 11 日
回答済み: Stalin Samuel 2017 年 6 月 11 日
Lately I purchased a 2017a student licence. Until then I used the institution's licence for 2016a where I could have lines invisible by setting "linewidth" to zero. The 2017a version alerts for error when I use this method. Is there another way to make the lines invisable?
  1 件のコメント
KSSV
KSSV 2017 年 6 月 11 日
If you want to make lines invisible...why to plot in first place?

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

採用された回答

Star Strider
Star Strider 2017 年 6 月 11 日
In R2017a, set 'LineStyle' to 'none':
figure(1)
Z = peaks(20);
contourf(Z,10, 'LineStyle','none')

その他の回答 (1 件)

Stalin Samuel
Stalin Samuel 2017 年 6 月 11 日
[cs,hc]=contourf(args);
set(hc,'EdgeColor','none')

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by