How can I adjust the labels on contour lines in a 'meshc' 3D-plot?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Ibrahim Wasiq
el 3 de Mzo. de 2017
Comentada: David J. Mack
el 3 de Mzo. de 2017
I have made a 3D-plot using 'meshc'. I want to adjust the placement of the labels on the contour lines.
The handle return by the 'meshc' is
h =
2x1 graphics array:
Surface
Contour
Hence, I used the following commands to display the labels.
hContour=h(2);
hContour.ShowText='on';
The labels are too crowded. I want to manually adjust their location and the font size.
0 comentarios
Respuesta aceptada
David J. Mack
el 3 de Mzo. de 2017
Hey Ibrahim,
have a look at Contour Properties - the LabelSpacing property might help. Also you can specify your own contour levels (see the Contour Levels property group) which might be used to control the labels indirectly.
Greetings, David
2 comentarios
David J. Mack
el 3 de Mzo. de 2017
Use the clabel function for full control on the lines & labels. With the current plot you cannot achieve your goal. If you want to keep the current lines, a workaround maybe to use a colorbar with color levels matching exactly your contour levels and then label the colorbar accordingly.
Más respuestas (0)
Ver también
Categorías
Más información sobre Contour Plots en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!