Contourf line setting number

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

请先登录,再进行评论。

更多回答(0 个)

类别

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