how can I adjust the axes for the table
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
rohail khan
le 29 Mar 2018
Commenté : rohail khan
le 2 Avr 2018
Hi, I have the following two objects.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/171681/image.jpeg)
I have plotted them as :
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/171682/image.jpeg)
How can I change the dimensions of the axes so that the plot can fit normally. Thanks
2 commentaires
Peter Perkins
le 2 Avr 2018
Nothing to do with your question, but you might find this more convenient to make the plot:
plot(nzpopulation.VarName1,nzpopulation.VarName2,'o')
There's no reason to create Nx1 tables, and dot subscripting is simpler than braces when referring to one variable.
Réponse acceptée
Walter Roberson
le 29 Mar 2018
ax = gca;
ax.YRuler.Exponent = 0;
This will cause the "x 10^6" to turn off, giving whole numbers on the y axes.
2 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Graphics Object Properties dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!