Skip to content
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

Font size? #30

Closed
jeiranj opened this issue Jul 14, 2017 · 4 comments
Closed

Font size? #30

jeiranj opened this issue Jul 14, 2017 · 4 comments

Comments

@jeiranj
Copy link

jeiranj commented Jul 14, 2017

Hi,
Hope all is well!

I somehow cant change the font size:

adjust_text(texts, force_text=(2,2), arrowprops=dict(arrowstyle="-|>", color='k', alpha=0.4), fontsize=60)

Changing the value of the fonrsize arg has no effect.
What is happening? Thanks!

@Phlya
Copy link
Owner

Phlya commented Jul 14, 2017

Hi, why don't you specify the fontsize when creating texts?

@Phlya
Copy link
Owner

Phlya commented Jul 14, 2017

If you don't, the labels might start overlapping, since their size will be different than the original one.
What you are trying to do doesn't work because (I think) all properties of annotations are updated after creation using the original text objects.

@jeiranj
Copy link
Author

jeiranj commented Jul 16, 2017

Perfect! That worked perfectly. Thanks!

@Phlya
Copy link
Owner

Phlya commented Jul 16, 2017

Glad I could help!

@Phlya Phlya closed this as completed Jul 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants