Borrar filtros
Borrar filtros

Making plot markers distinct

3 visualizaciones (últimos 30 días)
mpho bosupeng
mpho bosupeng el 4 de Feb. de 2022
Comentada: Voss el 6 de Feb. de 2022
Hello experts,
I have the following plot with markers. The markers for May, June, July and August are statistically significant while others are not. How do I make the significant makers distinct from the others for example, like using a different color?

Respuesta aceptada

Voss
Voss el 4 de Feb. de 2022
x = 1:11;
y = [4.89 4.68 4.54 4.62 4.63 4.95 5.24 5.32 5.21 5.17 5.08];
plot(x,y,'-o');
hold on
idx = 5:8;
plot(x(idx),y(idx),'ro');
xlim(x([1 end]));
  2 comentarios
mpho bosupeng
mpho bosupeng el 6 de Feb. de 2022
Thank you 🙏🙏 @Benjamin. It works great.
Voss
Voss el 6 de Feb. de 2022
@mpho bosupeng You are welcome!

Iniciar sesión para comentar.

Más respuestas (1)

Davide Masiello
Davide Masiello el 4 de Feb. de 2022

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by