Plotting 5 different filled markers on one graph

13 ビュー (過去 30 日間)
Alice K
Alice K 2022 年 8 月 6 日
コメント済み: Star Strider 2022 年 8 月 6 日
Hi All,
I need to plot 5 sets of data on a one graph, I can plot the data but I can't not fill the markers. Is there a way to fill the different markers? I don't need the line contecting the points.
3 of the datasets contain 6 points, 1 constains 5 points and 1 contains 7. This is what I have, I need to fill in the markers and change the colours of the markers.
Thanks

採用された回答

Star Strider
Star Strider 2022 年 8 月 6 日
編集済み: Star Strider 2022 年 8 月 6 日
If you don’t need lines connecting the points, use the scatter function. It has a 'filled' option to automatically fill the markers.
x = 1:15;
y = randn(5,15);
figure
scatter(x, y, 'filled')
EDIT — (6 Aug 2022 at 14:44)
Added scatter plot.
.
  6 件のコメント
Alice K
Alice K 2022 年 8 月 6 日
Your other code worked. Thank you so much.
Star Strider
Star Strider 2022 年 8 月 6 日
As always, my pleasure!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by