How to make scatter plot with varying point sizes and hues on

조회 수: 25 (최근 30일)
Gem
Gem 2023년 5월 23일
댓글: Gem 2023년 5월 26일
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!

답변 (1개)

Steven Lord
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.
  댓글 수: 1
Gem
Gem 2023년 5월 26일
Thank you very much for your suggestion.
I also tried to use bubblechart and could separate the data based on the size of bubbles (points) and colors.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Data Distribution Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by