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

Does not seem to work with polar plots #106

Open
ed5464215 opened this issue Sep 8, 2020 · 4 comments
Open

Does not seem to work with polar plots #106

ed5464215 opened this issue Sep 8, 2020 · 4 comments

Comments

@ed5464215
Copy link

ed5464215 commented Sep 8, 2020

This module does not seem to work with polar plots, ie.

ax = plt.subplot(111, projection='polar')

Getting a lot of errors like this when calling adjust_text:

posx and posy should be finite values

@Phlya
Copy link
Owner

Phlya commented Sep 8, 2020

How exactly are you running it, and which version are you using?

@ed5464215
Copy link
Author

I'm using version 0.7.3 on Win10/Python 3.7.9

Code looks like this:

def plot()
    texts+=[ax.text(theta, r, name)]
    x.append(theta)
    y.append(r)

adjust_text(texts, x, y, ax=ax)

texts array looks like this:

[Text(0.05715958439863086, 187.4845909654667, '20'), Text(6.291530381946766, 185.78712870108785, '21'), Text(0.916860540984257, 184.7031924247027, '15')]

@Phlya
Copy link
Owner

Phlya commented Sep 8, 2020

I see, can you try installing the version from GitHub: pip install https://github.com/Phlya/adjustText/archive/master.zip

@ed5464215
Copy link
Author

ed5464215 commented Sep 8, 2020

OK I installed 0.8b2 and am not getting the

posx and posy should be finite values

but it's not plotting any text.

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