How to change x-axis values?

3 vues (au cours des 30 derniers jours)
SuzieChan
SuzieChan le 12 Avr 2020
Modifié(e) : SuzieChan le 12 Avr 2020
Hello everyone,
Matlab automatically put the x-axis values into x10 format. This is wrong.
How can I make x-axis values to look like whole number values i.e. 9000, 9200 etc?
Thank you.

Réponse acceptée

Ameer Hamza
Ameer Hamza le 12 Avr 2020
Modifié(e) : Ameer Hamza le 12 Avr 2020
ax = gca;
ax.XAxis.Exponent = 0;
  2 commentaires
SuzieChan
SuzieChan le 12 Avr 2020
Hello. Ok, how do I make axis bar show on top and right of right - to make the graph look like a box? thanks.
Ameer Hamza
Ameer Hamza le 12 Avr 2020
Add the line
box on

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Creating, Deleting, and Querying Graphics Objects dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by