Change the axis label unit length

1 visualización (últimos 30 días)
Fardin Azimi
Fardin Azimi el 23 de Oct. de 2016
Respondida: Marc Jakobi el 23 de Oct. de 2016
Hello everyone, I want to know how I can change the unit value of an axis, for example, I want the xaxis label to show values with a step of 1. In the standard form, it changes when you change the size of the plot, but I do not want that. Can anyone help me? Thank you

Respuesta aceptada

Marc Jakobi
Marc Jakobi el 23 de Oct. de 2016
You can set the XTick and XTickLabel properties.
ax = gca;
ax.XTick = [...]; %vector containing ticks you would like (spread evenly across axis)

Más respuestas (0)

Categorías

Más información sobre Annotations en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by