Change the axis label unit length
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Fardin Azimi
am 23 Okt. 2016
Beantwortet: Marc Jakobi
am 23 Okt. 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
0 Kommentare
Akzeptierte Antwort
Marc Jakobi
am 23 Okt. 2016
You can set the XTick and XTickLabel properties.
ax = gca;
ax.XTick = [...]; %vector containing ticks you would like (spread evenly across axis)
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Axis Labels finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!