Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Set units for MarkerSize property

Subject: Set units for MarkerSize property

From: Tiên

Date: 26 Dec, 2010 16:39:04

Message: 1 of 2

Hi All,
I want to draw more balls of radius = 0.5 unit in 2D and 3D, but default of Matlab for MarkerSize property set by "pixel". When I zoomed out the graphic then the markers didn't zoom out. So, could you the me how to set units of MarkerSize property to units as default when i draw more balls?Thank you very much.
Tien Nguyen

Subject: Set units for MarkerSize property

From: Stefan Kowalski

Date: 26 Dec, 2010 18:00:21

Message: 2 of 2

"Tiên" wrote in message <if7r38$i7n$1@fred.mathworks.com>...
> Hi All,
> I want to draw more balls of radius = 0.5 unit in 2D and 3D, but default of Matlab for MarkerSize property set by "pixel". When I zoomed out the graphic then the markers didn't zoom out. So, could you the me how to set units of MarkerSize property to units as default when i draw more balls?Thank you very much.
> Tien Nguyen

The size of markers in plot are constant. If they are set to 5 pixels they will have 5 pixels no matter how big the zoom is. Consider using 'scatter':
http://www.mathworks.com/help/techdoc/ref/scatter.html

Regards, Stefan

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us