Adjusting axis limits
1 回表示 (過去 30 日間)
古いコメントを表示
I am trying to have the axis limits automatically adjust. I know they do by default, but they way it does it, the extreme data points are right on the edge of the plot. Is there any way to specify a margin?
I looked in axis properties but didn't see anything.
0 件のコメント
採用された回答
Walter Roberson
2011 年 11 月 3 日
No, there is no mechanism for specifying a margin.
3 件のコメント
Walter Roberson
2011 年 11 月 3 日
max(YourData(isfinite(YourData(:)))
Or use NaN instead of inf, as max() ignores NaN.
Jan
2011 年 11 月 3 日
Exactly for this task I'm using MinMaxElem(Y, 'finite'): http://www.mathworks.com/matlabcentral/fileexchange/30963-minmaxelem .
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Discrete Data Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!