필터 지우기
필터 지우기

Can the marker size be set by units of coordinates?

조회 수: 3 (최근 30일)
Michael
Michael 2014년 8월 5일
답변: Rick Rosson 2014년 8월 6일
I am trying to plot positions of spheres in 3-D space. Each sphere has the same radius and is defined by its center point. I am plotting using
plot3(x,y,z,'o')
but the size of the plotted circle for each sphere changes based on zoom level. Is there a way to set the marker size to a defined number? Like I'd want to say, "MarkerSize = 2 plotting units" so that no matter how zoomed in I am, the marker stays the same size relative to the coordinate system. Also, it has to be dynamic enough that I can rotate and zoom with the figure freely.
[I looked into the "rectangle()" command, but it only works in 2-D.]
  댓글 수: 1
Christopher Berry
Christopher Berry 2014년 8월 5일
Markers are marking points, so they should not actually have any extent... What it sounds like you want is a small fixed sized surface at every point, correct?
I think it could be done by using sphere to draw small spheres at each and every point in [x,y,z], but that would be a lot of work for what seems like little gain.
What exactly are you trying to achieve with this?

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

답변 (1개)

Rick Rosson
Rick Rosson 2014년 8월 6일

카테고리

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