-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
178 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,47 @@ | ||
<img src="https://github.com/Phlya/adjustText/blob/master/adjustText_logo.svg" width="183"> | ||
|
||
Ryan Neff: This version includes an improvement over the current package, by converting from Axes coordinates to display coordinates to allow for any underlying plot type, including polar graphs and 3D plots. | ||
[![Documentation Status](https://readthedocs.org/projects/adjusttext/badge/?version=latest)](http://adjusttext.readthedocs.io/en/latest/?badge=latest) | ||
[![Gitter chat](https://badges.gitter.im/gitterHQ/gitter.png)](https://gitter.im/adjustText/Lobby) | ||
[![DOI](https://zenodo.org/badge/49349828.svg)](https://zenodo.org/badge/latestdoi/49349828) | ||
[![PyPI version](https://badge.fury.io/py/adjustText.svg)](https://badge.fury.io/py/adjustText) | ||
|
||
[![Documentation Status](https://readthedocs.org/projects/adjusttext/badge/?version=latest)](http://adjusttext.readthedocs.io/en/latest/?badge=latest) [![Gitter chat](https://badges.gitter.im/gitterHQ/gitter.png)](https://gitter.im/adjustText/Lobby) | ||
# adjustText - automatic label placement for `matplotlib` | ||
|
||
Inspired by **ggrepel** package for R/ggplot2 (https://github.com/slowkow/ggrepel) | ||
![Alt text](figures/mtcars.gif "Labelled mtcars dataset") | ||
|
||
## 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. | ||
|
||
There is a simple documentation now, thanks to Christophe Van Neste @beukueb! | ||
## Getting started | ||
|
||
http://adjusttext.readthedocs.io/en/latest/ | ||
### Installation | ||
|
||
Should be installable from pypi: | ||
``` | ||
pip install adjustText | ||
``` | ||
Or with `conda`: | ||
``` | ||
conda install -c phlya adjusttext | ||
conda install -c conda-forge adjusttext | ||
``` | ||
|
||
For the latest version from github: | ||
``` | ||
pip install https://github.com/Phlya/adjustText/archive/master.zip | ||
``` | ||
|
||
See [wiki] for some basic introduction, and more advanced usage examples [here]. | ||
### Documentation | ||
|
||
[wiki]: https://github.com/Phlya/adjustText/wiki | ||
[Wiki] has some basic introduction, and more advanced usage examples can be found [here]. | ||
|
||
Thanks to Christophe Van Neste @beukueb, **adjustText** has a simple documentation: | ||
http://adjusttext.readthedocs.io/en/latest/ | ||
|
||
[Wiki]: https://github.com/Phlya/adjustText/wiki | ||
[here]: https://github.com/Phlya/adjustText/blob/master/docs/source/Examples.ipynb | ||
|
||
## Citing **adjustText** | ||
|
||
To cite the library if you use it in scientific publications (or anywhere else, if you wish), please use the link to the GitHub repository (https://github.com/Phlya/adjustText) and a zenodo doi (see top of this page). Thank you! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters