The plot is exceeding the boundaries of the box in a figure.
显示 更早的评论
Hello all,
I am trying to plot my data using stem command but I see the data is exceeding the boundaries of the box in the figure.
Please see the attached image.
Can someone help me to fix this problem.

Thank you
1 个评论
Ankit
2020-1-14
Is it possible to post your code for this plot?
回答(1 个)
Ajay Kumar
2020-1-14
编辑:Ajay Kumar
2020-1-14
Did you turn off the Clipping ?
Try this after plot:
ax = gca; % get the current axis
ax.Clipping = 'on'; % turn clipping on
类别
在 帮助中心 和 File Exchange 中查找有关 Line Plots 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!