How can I get only one number on each line and set the font and size of number on the line ?

 採用された回答

KSSV
KSSV 2021 年 11 月 3 日
編集済み: KSSV 2021 年 11 月 3 日

0 投票

[c,h] = contourf(peaks(100)) ;
clabel(c,h,'LabelSpacing',500,'FontSize',15,'Color','red')
Try to put more label spacing, so that you can get the label only once.

2 件のコメント

wenhao yang
wenhao yang 2021 年 11 月 3 日
thanks for your answer. However, what if I want to get only one number 2 and 4 on the line ?
wenhao yang
wenhao yang 2021 年 11 月 3 日
thank you so much

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

その他の回答 (0 件)

カテゴリ

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

タグ

質問済み:

2021 年 11 月 3 日

コメント済み:

2021 年 11 月 3 日

Community Treasure Hunt

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

Start Hunting!

Translated by