Hi,
I'd like to know, if there is any solution to this:
I have a mesh plot:
question.png
Can i somehow assign the names of samples displayed in plot (left bottom corner) to the numbers 1-6 on the x-axis?
Thank you for any answers.

 Respuesta aceptada

Star Strider
Star Strider el 9 de Feb. de 2019

1 voto

Use the 'XTick' (link) and 'XTickLabel' (link) properties to define the tick values and tick labels. Note that you need to use them together, or you will get unexpected (and probably undesirable) results.

2 comentarios

Tomas Suchanek
Tomas Suchanek el 9 de Feb. de 2019
Works! Thanks alot.
Star Strider
Star Strider el 9 de Feb. de 2019
As always, my pleasure!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.

Preguntada:

el 9 de Feb. de 2019

Comentada:

el 9 de Feb. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by