cleanfigure.m file from matlab2tikz can take care of this issue.
xlim command for figures
7 次查看(过去 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!