How to scale vertical axis without erasing boxplot horizontal axis?

2 visualizaciones (últimos 30 días)
I want the same vertical axis scale so the two subplot can be directly compared more easily. axis([-Inf Inf 0 6]) fails to preserve the horizontal axis boxplot grouping text. How do we rescale the vertical axes without erasing the horizontal text?

Respuesta aceptada

Daniel Bridges
Daniel Bridges el 9 de Mzo. de 2018
Editada: Daniel Bridges el 9 de Mzo. de 2018
ylim([0 6]) after the boxplot command allows one to edit the vertical axis scale without touching the horizontal axis.

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by