Scale data on a plot by opacity?

3 visualizaciones (últimos 30 días)
Blenndrman
Blenndrman el 3 de Mzo. de 2020
Comentada: Star Strider el 3 de Mzo. de 2020
Hi,
I have a set of data that is plotted, in 2D, as a bunch of points (a scatter plot). Each point also has an intensity associated with it. How can I plot the data such that the intensity is represented by shades of color?
I.e. currently I'm specifying the appearance of the points with 'ro' string, such that each point is a red dot. How do I change this to be scaled such that the most "intense" value is deep red, and the least intense values are grey?
I've seen this done before, so I know it's possible.
Thanks!

Respuesta aceptada

Star Strider
Star Strider el 3 de Mzo. de 2020
See Vary Circle Color in the scatter documentation.
  6 comentarios
Blenndrman
Blenndrman el 3 de Mzo. de 2020
Thank you! I was able to manipulate this to get a one-color grayscale.
Star Strider
Star Strider el 3 de Mzo. de 2020
As always, my pleasure!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Graphics Performance en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by