How to scale vertical axis without erasing boxplot horizontal axis?

조회 수: 1(최근 30일)
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?

채택된 답변

Daniel Bridges
Daniel Bridges 2018년 3월 9일
편집: Daniel Bridges 2018년 3월 9일
ylim([0 6]) after the boxplot command allows one to edit the vertical axis scale without touching the horizontal axis.

추가 답변(0개)

Community Treasure Hunt

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

Start Hunting!

Translated by