Cannot set axes limits
1 次查看(过去 30 天)
显示 更早的评论
Hi, I am working with GUI interface. I want to set ,y own xlimits and ylimits. But I cannot do it:
figure('name','MomentFinder')
axes('OuterPosition',[0,0.2,1,0.8],'XLim',[-2 50],'YLim',[-2 35],'XLimMode','manual', 'YLimMode','manual');
plot(gca,file,vel1,'-',file,vel2,'-');
Matlab plot's vel1(file) in it's own limits. And I want the limits to be static. What is wrong?
Thanks
0 个评论
采纳的回答
José-Luis
2014-9-17
Set the limits after you issue the plot() command.
3 个评论
Image Analyst
2014-9-17
Perhaps using "hold on" in between axes() and plot() would do it, but I prefer doing what Jose-Luis said.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!