integer increment on a plot axis

37 vues (au cours des 30 derniers jours)
Villanova
Villanova le 19 Août 2011
Hi, I am trying to plot wind speed vs Beaufort number (which is integers from 0 to 10). How can I make my y-axis in a way to only show integer increments 0 1 ... 10. Thanks in advance.

Réponse acceptée

Friedrich
Friedrich le 19 Août 2011
Hi,
you can try
set(gca,'ytick',0:10)
To limit the y-axis to 0 to 10 do
set(gca,'ylim',[0,10])
  1 commentaire
Villanova
Villanova le 19 Août 2011
Thank you so much Friedrich.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots 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!

Translated by