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

 Respuesta aceptada

KSSV
KSSV el 3 de Nov. de 2021
Editada: KSSV el 3 de Nov. de 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 comentarios

wenhao yang
wenhao yang el 3 de Nov. de 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 el 3 de Nov. de 2021
thank you so much

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Contour Plots en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 3 de Nov. de 2021

Comentada:

el 3 de Nov. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by