How to position data labels on a 3D scatter plot?
3 次查看(过去 30 天)
显示 更早的评论
Hi, I'm using scatter3 and labelling each data point, but the labels come up too close to the points. Is there any way of specifying that the labels are positioned slightly further away from the points they refer to? Thanks in advance! Rebecca
0 个评论
回答(1 个)
Walter Roberson
2016-1-9
If you are using text() then you might want to try changing the horizontal or vertical alignment; see http://www.mathworks.com/help/matlab/ref/text-properties.html
If you are using text() and the alignment is not enough, then you will need to add an offset to your coordinates. What offset to use will require some thought that takes into account the various axes view properties such as camera target, and the DataAspect, and the [XYZ]Limit properties, so that after the projection due to the view is taken into account, the label becomes far enough away.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Scatter Plots 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!