-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arrow color to text color? #6
Comments
Hi, Yes, currently it is not possible... I would be happy to accept a PR for this, I myself don't have time right now to try and implement this. In my opinion, the best solution would be fixing the other issue you reported, then all properties of annotations can be set during their creation as required, and here we then only move them. |
Note: you can set the color of the arrows according to their respective labels ex post by:
nlabels = len(ax.texts)
adjust_text(ax.texts, ...)
for new, old in zip(ax.texts[nlabels:], ax.texts):
new.arrow_patch.set_color(old.get_color()) (If your blueprint is a different kind of object, like |
@bertsky AdjustText doesn't have arrowpatch attribute, how were you able to accomplish changing the color of the arrow? I have the same problem but with a graph |
@edlemus what do you mean |
Hi,
I found this package from http://stackoverflow.com/a/34762716/712624 and I have to say, it's amazing! I was trying to do this myself, manually, and when I realized how not-simple it was, I luckily stumbled upon this project. It does a great job!
The only downside seems to be that I can't set the arrowprops for each line. For example, I want the arrow color to match the text color, but since I pass
adjust_text
a list of text objects, I can't pass data for each object individually.I realize that solving this would seem a bit hacky, but is it something you'd be willing to implement or accept a patch for?
Thanks for this great project!
The text was updated successfully, but these errors were encountered: