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?

 Réponse acceptée

Mischa Kim
Mischa Kim le 28 Fév 2014
Modifié(e) : Mischa Kim le 28 Fév 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 commentaire

Matthew
Matthew le 28 Fév 2014
Thanks - I just figured the same thing out and was about to answer my own question!!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Interactive Control and Callbacks dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by