Phlya / adjustText

A small library for automatically adjustment of text position in matplotlib plots to minimize overlaps.
https://adjusttext.readthedocs.io/
MIT License
1.5k stars 87 forks source link

Use adjustText....with images? #87

Open drussellmrichie opened 4 years ago

drussellmrichie commented 4 years ago

I have a scatterplot of images, and I'd love to use adjustText's functionality to make them not overlap! My current solution is to adjust the transparency of the images, but I'm not terribly happy with how this works. Would it somehow be possible to modify the code of adjustText to handle images....?

I know the name of the library is adjustText, but I thought I would ask! Love this library!

image

Phlya commented 4 years ago

Hi! It's not possible directly for sure, but I think someone asked me for something similar a while ago, I might have a look how feasible this would be to implement at some point. Matplotlib objects are not very consistent in which methods are implemented, so not sure it would be possible easily.

Glad you like the library!