Removing connecting lines between points in plot

Hi, When i try to plot the following data x,y, and z using plot 3 function, i'm getting the plot, where the points have connection lines between them. How can i remove those connecting lines between points ? This is my code:
x=0:5:50;
y=0:5:50;
z=0:5:50;
plot3(x,y,z,'Color',[1,0,0],'Marker','o');
Thanks in advance.

 採用された回答

Stefan Raab
Stefan Raab 2016 年 5 月 4 日

6 投票

Hello,
add the following name value pair:
'LineStyle','none'
Kind regards, Stefan

3 件のコメント

Rajesh Subramanian
Rajesh Subramanian 2016 年 5 月 4 日
編集済み: Rajesh Subramanian 2016 年 5 月 4 日
I tested it and it works like a charm. Thank you very much Stefan ! You helped me save hours on searching :)
utsav kakkad
utsav kakkad 2019 年 1 月 8 日
I couldn't quite get it doing the same gives me an error
Can you please kindly give me the exact syntax of what exactly you did?
I need to remove a line coming bang in the middle of my graph & its frustrating me
Maryam
Maryam 2019 年 1 月 28 日
Works the best!

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

その他の回答 (2 件)

pinhas elbaiev
pinhas elbaiev 2018 年 11 月 25 日

0 投票

i dont understand...plz can u show what u did?

1 件のコメント

utsav kakkad
utsav kakkad 2019 年 1 月 8 日
did you get it finally?
can you please show me what you did?

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

Maryam
Maryam 2019 年 1 月 28 日

0 投票

errorbar(x, y ,'horizontal', 'LineStyle', 'none');
Pinhas,
try the code line above.
I was trying to plot the std lines horizontally, but I got some extra vertical lines. With this code line however, it only gave the horizontal lines.
Thanks Stefan. :)

カテゴリ

ヘルプ センター および File ExchangeGraphics Performance についてさらに検索

製品

タグ

質問済み:

2016 年 5 月 4 日

回答済み:

2019 年 1 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by