Borrar filtros
Borrar filtros

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

18 visualizaciones (últimos 30 días)
Gem
Gem el 23 de Mayo de 2023
Comentada: Gem el 26 de Mayo de 2023
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!

Respuestas (1)

Steven Lord
Steven Lord el 23 de Mayo de 2023
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 comentario
Gem
Gem el 26 de Mayo de 2023
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.

Iniciar sesión para comentar.

Categorías

Más información sobre Scatter Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by