How to increase axis of stem plots
9 次查看(过去 30 天)
显示 更早的评论
I am trying to create a stem plot and using the following code:
x=[100,500,1000]
y=[2,8,6]
stem(x,y)
however, i need the graph to start at value 0 and end at 1400 on x axis.
I also need the y value to start at 0 and end at 16, so that there is some space around the ploted points.
0 个评论
回答(2 个)
KALYAN ACHARJYA
2021-2-27
编辑:KALYAN ACHARJYA
2021-2-27
xlim([0,1400 ])
Do the same for y axis
ylim([0 16])
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Stem Plots 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!