Change the axis label unit length
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Fardin Azimi
il 23 Ott 2016
Risposto: Marc Jakobi
il 23 Ott 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 Commenti
Risposta accettata
Marc Jakobi
il 23 Ott 2016
You can set the XTick and XTickLabel properties.
ax = gca;
ax.XTick = [...]; %vector containing ticks you would like (spread evenly across axis)
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Axis Labels in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!