Skip to content

Commit

Permalink
Mention textalloc
Browse files Browse the repository at this point in the history
  • Loading branch information
Phlya committed Jan 6, 2024
1 parent 4f20ab1 commit 024b94e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
Inspired by **ggrepel** package for R/ggplot2 (https://github.com/slowkow/ggrepel)
![Alt text](figures/mtcars.gif "Labelled mtcars dataset")

Alternative: **textalloc** https://github.com/ckjellson/textalloc

## Brief description

The idea is that often when we want to label multiple points on a graph the text will start heavily overlapping with both other labels and data points. This can be a major problem requiring manual solution. However this can be largely automatized by smart placing of the labels (difficult) or iterative adjustment of their positions to minimize overlaps (relatively easy). This library (well... script) implements the latter option to help with matplotlib graphs. Usage is very straightforward with usually pretty good results with no tweaking (most important is to just make text slightly smaller than default and maybe the figure a little larger). However the algorithm itself is highly configurable for complicated plots.
Expand Down

0 comments on commit 024b94e

Please sign in to comment.