Change minimum y-limits on a plot?
22 次查看(过去 30 天)
显示 更早的评论
Hi guys.
I have a grpah that for some reason starts at .5 on the y axis instead of 0. I want to change the minimum limit on the y axis to 0. I have tried using ylim but for that I also need to input the max limit. However I ONLY want to change the minimum y-limit as the maximum limit is already correct.
Thank you in advance!
0 个评论
采纳的回答
Joakim Magnusson
2014-8-14
编辑:Joakim Magnusson
2014-8-14
Maybe you are looking for this?
yLim = get(gca,'YLim');
set(gca,'YLim', [0 yLim(2)]);
更多回答(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!