-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Brief explanation
Improve labels positioning and associated options
Details
Vectorplot introduced the possibility to automatically place labels associated to an object.
The first iteration of the automatic positioning of labels has two problems:
- it doesn't care about the associated object position
- it doesn't care about other labels
1. Object position
A label is always placed at the "max" coordinates of the bounding box of the object to which it is associated
A better option would to let the user choose between its position from options like in a "compass" that are relative to the bbox of the object
2. Other labels
A label doesn't know about other labels, this might result in two labels taking the same place.
A better solution could be to kep track of labels positions and avoid overlapping labels by auto-choosing another option in the "compass" around the bbox
Notes