cleanfigure.m file from matlab2tikz can take care of this issue.
xlim command for figures
6 ビュー (過去 30 日間)
古いコメントを表示
xlim command changes the axis limit of the figure.
How can i also limit data that is contained by the figure?
Appearently, even though xlim is applied data is still there.
0 件のコメント
採用された回答
その他の回答 (1 件)
Wayne King
2013 年 11 月 8 日
編集済み: Wayne King
2013 年 11 月 8 日
If when you say limit data, you mean restrict the range of data values, then use ylim
x = randn(100,1);
plot(x);
set(gca,'xlim',[1 25],'ylim',[-1 1])
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!