Dots in plot are either too big or too small.

I'm trying to control the dot size in the plot command, but there seems to be only a few sizes available with the standard figure window.
If you use plot(x,y,'.','MarkerSize',sz) then for sz<6 the dots are tiny (probably 1x1 pixel) and for sz>=6 they are quite large.
If you output as an eps/pdf then the dot size is fine - no nasty size jumps.
Is there a way to get the matlab figure window to correctly reflect the marker size?

 Respuesta aceptada

Mischa Kim
Mischa Kim el 28 de Feb. de 2014
Editada: Mischa Kim el 28 de Feb. de 2014
Matthew, you might want to try a different marker, such as o or * .
plot(x,y,'o','MarkerSize',sz)
For some of these you can also define a MarkerFaceColor.

1 comentario

Matthew
Matthew el 28 de Feb. de 2014
Thanks - I just figured the same thing out and was about to answer my own question!!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 28 de Feb. de 2014

Comentada:

el 28 de Feb. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by