MATLAB: Scatter ‘o’ Marker circularity

scatter marker shape

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?

Best Answer

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.