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

 Akzeptierte Antwort

KSSV
KSSV am 3 Nov. 2021
Bearbeitet: KSSV am 3 Nov. 2021

0 Stimmen

[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 Kommentare

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Contour Plots finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by