Skip to content

[DEVELOPMENT] Label positioning #15

@marnec

Description

@marnec

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:

  1. it doesn't care about the associated object position
  2. 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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions