How can I change the color of a single point on a scatter plot?
15 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
t sizzle
el 28 de Abr. de 2021
Respondida: t sizzle
el 28 de Abr. de 2021
I have a scatter plot of points but I would like to change the color of one while leaving the rest alone. I read through the scatter documentation and some other posts similar to this, but I was not able to get it to work.
x = [1.2,3,5.67,7.8,3.9]
y = [2.8,7,1.02,8.2,5]
scatter(x,y,'filled')
xlim([0 10])
ylim([0 10)])
If it helps, the point I would like to be a different color consists of the last values in each array.
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
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!