Change ylim to leave appropriate white space

조회 수: 4 (최근 30일)
Lee
Lee 2019년 12월 4일
댓글: dpb 2019년 12월 5일
I am making a boxplot where I omit showing the outliers due to one value being way off the mark. When I produce the boxplot the yaxis maximum value is still including the non-plotted outlier points. Besides manually setting the ymax by using the ylim function or changing the data set to remove the outliers, how else can I get Matlab to auto change the yaxis range based on the upper whisker value plus some white space?
  댓글 수: 1
dpb
dpb 2019년 12월 5일
Automagically, you can't--autoranging is what it is--covers the data on the axis.
You can write some logic to evaluate the data you're plotting and have it do the testing and reset ylim based on what it finds, but that's best can do...

댓글을 달려면 로그인하십시오.

답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by