Scatter 'o' Marker circularity

조회 수: 10 (최근 30일)
NLD
NLD 2016년 3월 8일
댓글: Walter Roberson 2016년 3월 9일
Hi, I am trying to use scatter function in Matlab with circle makers. But I noticed that the marker 'o' is not fully circle. it is more of an oval ( wider in y direction). Is there anyway to make it a perfect circle?

채택된 답변

Walter Roberson
Walter Roberson 2016년 3월 8일
The 'o' marker is implemented as an octagon (at least up to R2014a). On my R2014a OS-X system, they appear to retain their aspect ratio no matter how large I make them and no matter what aspect ratio I have in effect or how wide I make the axes (that is, they are drawn "after" the other items are sized.)
If you have R2012a or later and Image Processing Tookbox, then you could try viscircles() -- but note that any circles drawn that way are going to be subject to aspect ratio considerations; see "axis equal" or set the "dataaspect" property of the axes.
  댓글 수: 2
NLD
NLD 2016년 3월 8일
Thanks for your answer. I am just wondering if I can plot filled circles using viscircles(). Because I looked at the documentation and there was no option about it.
Walter Roberson
Walter Roberson 2016년 3월 9일
It looks to me as if for viscircles the only way to fill would be to use a really big linewidth :) But viscircles returns an hggroup and I do not know what the contents of the group are.
You could use a bunch of rectangle() calls with FaceColor and with Curvature [1 1]

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by