Same y-axis in a series of histograms

2 vues (au cours des 30 derniers jours)
José Luis
José Luis le 31 Mar 2025
Commenté : José Luis le 3 Avr 2025
Cómo puedo conseguir que una serie de histrogramas usen la misma escala en el eje Y. En los historgramas de las figuras de la derecha quiero que el eje de la Y sea entre 0 y 1000.
Sabéis cómo lo puedo conseguir.

Réponses (1)

Zinea
Zinea le 3 Avr 2025
After plotting the histogram, the Y-axis limits can be set to [0, 1000] using the function "ylim" as given below:
ylim([0 1000])
For more information on the "ylim" function, refer to the link below:
  1 commentaire
José Luis
José Luis le 3 Avr 2025
Thaks a lot. It works perfectly.

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!