Contourf line setting number

2 views (last 30 days)
wenhao yang
wenhao yang on 3 Nov 2021
Commented: wenhao yang on 3 Nov 2021
How can I get only one number on each line and set the font and size of number on the line ?

Accepted Answer

KSSV
KSSV on 3 Nov 2021
Edited: KSSV on 3 Nov 2021
[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 Comments
wenhao yang
wenhao yang on 3 Nov 2021
thank you so much

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by