How to increase marker size in scatter plot?

I tried to increase the marker size:
scatter(X,Y,'+','k', 'MarkerSize', 10);
How to increase the size (e.g. twice bigger '+')?

 採用された回答

Stephen23
Stephen23 2017 年 4 月 18 日
編集済み: Stephen23 2017 年 4 月 18 日

21 投票

According to the scatter documentation, like this:
scatter(X,Y,20,'k','+')
^ this is the size

5 件のコメント

Marcin Kolacz
Marcin Kolacz 2021 年 1 月 28 日
He asked about scatterplot, not scatter
Igor Yashayaev
Igor Yashayaev 2022 年 11 月 11 日
Nope, this does not work, once you indicate a different marker, the size does not see it
DGM
DGM 2022 年 11 月 11 日
X = randn(100,1);
Y = randn(100,1);
scatter(X,Y,10,'k','+')
scatter(X,Y,50,'k','+')
From the documentation:
The size controls the area of each marker in points squared
so the response may indeed not seem linear if you're thinking in terms of radius.
Igor Yashayaev
Igor Yashayaev 2022 年 11 月 11 日
I retract my statement ... The trick is that you need to indicate much larger size than you would in plot(). I tried 10 before, and the markers remained small, but 15 showed some growth.
Ola Fekry
Ola Fekry 2023 年 3 月 27 日
thanks so much

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

その他の回答 (0 件)

カテゴリ

質問済み:

2017 年 4 月 18 日

コメント済み:

2023 年 3 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by