How to make scatter plot with varying point sizes and hues on
18 ビュー (過去 30 日間)
古いコメントを表示
I am struggling to add information of different size of points depending on the value of intensity.
I really appreciate if anyone please help me to a make scatter plot with different size of points (depending on the intensity) and different colors (depending on species S1, S2, S3, S4) as the following example based on the data1.
Thank you very much!
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1391574/image.png)
0 件のコメント
回答 (1 件)
Steven Lord
2023 年 5 月 23 日
See the entries in the Syntax section on the documentation page for the scatter function that include the sz (size) and c (colors) input arguments. The "Vary Circle Size" and "Vary Circle Color" examples on that documentation page may also be of use to you as a model for your code.
参考
カテゴリ
Help Center および File Exchange で Scatter Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!