- 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!