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?

 채택된 답변

Mischa Kim
Mischa Kim 2014년 2월 28일
편집: Mischa Kim 2014년 2월 28일

0 개 추천

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

Matthew
Matthew 2014년 2월 28일
Thanks - I just figured the same thing out and was about to answer my own question!!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

질문:

2014년 2월 28일

댓글:

2014년 2월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by