- The text areas do not overlap
- The labels appear next to the data points, such that it is clear to which point they belong to
How to avoid text overlapping automatically in plot3?
12 次查看(过去 30 天)
显示 更早的评论
Hello guys,
I have a few points in 3d space indicating the reduction of error. As you can see from the plot there are some points overlapping with each other. How can I avoid this automatically? Add blank space before the numeral manually is not a good option.
Another thing is that how can I make this indication of error reduction visually better? Maybe add some arrow on the line? Any ideas?
Thanks!
0 个评论
回答(1 个)
Jan
2016-11-3
You want to set the positions of the labels considering 2 criteria:
The problem is not trivial, because the 2nd criterion cannot be defined easily in mathematical terms. It is a complicated optimization problem which must take into account the visual reception system of humen. In addition the solution will depend on the medium the diagram is displayed on: You can simply and intuitively rotate it in 3D on the screen to "look behind the labels": Users are used to change their 3D position to look behind obstacles. But this fails, when the diagram is printed on paper.
Do you simply want to visualize the results of some computations or is you goal writing a PhD about optimal label placement in scientific publications?
I'd decide for short labels and a legend. Even then an overlap can and will happen if the view angle is fixed, but it will be much faster to control this manually.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!