Skip to content

Add ability to autoformat tick labels to prevent overlap #20

@JCGoran

Description

@JCGoran

Due to how matplotlib does its positioning of tick labels, it's possible to have tick labels that overlap.
It would be nice to find a way to generate tick labels that do not overlap by either:

  1. using a different format for the labels (assuming they are purely textual)
  2. finding a different, but still "nice" position of ticks (using the ticker API), and labeling those instead

Note that the algorithm should take into account the movement of all tick labels (otherwise the plot would not look nice), and provide a scoring function in the end (so it's basically an optimizer).

Provided such an algorithm exists and is general enough, it could even be placed in an external Python module, though I would settle for just an application to this module's plotting requirements.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestgraphicsRelated to the graphics module

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions