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 Exchange에서 Contour 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