フィルターのクリア

How do I remove lines atached to each point in the STEM plot in MATLAB?

37 ビュー (過去 30 日間)
Iker Lafuente
Iker Lafuente 2013 年 4 月 15 日
回答済み: Mech Princess 2014 年 12 月 9 日
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.

回答 (2 件)

Mech Princess
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

Anand
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 件のコメント
Mech Princess
Mech Princess 2014 年 3 月 27 日
Thanks. I was stuck with stem and line plots. this works great

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeStem Plots についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by