How do I remove lines atached to each point in the STEM plot in MATLAB?
65 次查看(过去 30 天)
显示 更早的评论
How do I remove lines atached to each point in the STEM plot in MATLAB? There are many lines together so I cannot see the points properly. Thanks.
0 个评论
回答(2 个)
Mech Princess
2014-12-9
there are places easier to use stem than plot
stem(1:10,rand(10,1),'LineStyle','none'); %removes the line
Other options - change marker size, type, color, line style, size etc
0 个评论
Anand
2013-4-15
A stem plot is meant to have those vertical lines, that's why it is a 'stem'.
You could just use plot.
For example, instead of
stem(1:10,rand(10,1))
use
plot(1:10,rand(10,1),'o')
1 个评论
另请参阅
类别
在 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!