bboxto my labels (like a white background), is there a way for
adjust_textto take this into account? I think this might be related to
add_objects(issue #76) but I can't figure it out.
~The situation I've run into is that texts created outside of a loop will be managed by ~
adjust_text, but texts created inside of a particular loop will not. I can show a code snippet on the Issue tracker, if interested.
Whoops, user error. Inside of a loop I was reinitializing the
texts list, so
adjust_text only knew about the final one, yet the plot was annotated correctly so it looked like an
adjust_text problem, but it was really just my problem. Sorry for the noise.
For example, background and labeled points overlap: https://pasteboard.co/I8COIOT.png (look at the light green text and white box, which is covering the light green point near the bottom of the "p" in "a-hpa-p").
In this case, I'm using
texts.append(plt.text(i + 0.3, j, k, size=28, color = colors[index], bbox=dict(facecolor="w", alpha=0.8)))
with the default
expand_points=(1.2, 1.2)helps a lot.
expand_text=(1.2, 1.4), parameters that I found empirically to work well. See the label for
b-hexis overlapping two points. Is there a quick and dirty way to just increase the force parameters to push this away from the points? (It may not be worth really troubleshooting, because these parameters work pretty well for a number of similar graphs...) https://pasteboard.co/I8DjGMS.png
Circles and passing the patches to