我有一个有限大小的圆形粒子系统(比如 r=5cm
),我需要在给定域(比如 L=5m
)中绘制它。由于它们很多,scatter
比 rectangle
的任何循环使用都快。
我不清楚的是定义圆/标记的直径/半径的正确方法,以便与绘制的域几何正确缩放. (通过使用rectangle
,可以轻松定义粒子的直径。)
基于 this answer , 可以很好地控制标记的大小,尽管真正的缩放比例对我来说是模糊的。
任何人都可以解释一下吗?
最佳答案
The SCATTER function expects its 'S' parameter to contain the marker area in points squared. This area corresponds to the area of a square bounding box around the marker.
查看链接中的代码。
关于matlab - 正确缩放散点图中的圆形标记,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16771972/