How do I remove lines atached to each point in the STEM plot in MATLAB?
조회 수: 37 (최근 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에서 Stem Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!