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

TypeError: Cannot cast array data from dtype('<U32') to dtype('float64') according to the rule 'safe' #118

Open
2klab opened this issue Sep 1, 2021 · 5 comments

Comments

@2klab
Copy link

2klab commented Sep 1, 2021

File "init.py", line 573, in adjust_text
orig_xy = [get_text_position(text) for text in texts]
File "init.py", line 573, in
orig_xy = [get_text_position(text) for text in texts]
File "init.py", line 55, in get_text_position
t_x, t_y = text.get_transform().transform((x, y))

@Phlya
Copy link
Owner

Phlya commented Sep 1, 2021

Please clarify your issue, what is the code you are running?

@2klab
Copy link
Author

2klab commented Sep 1, 2021

Trying to adjust some text and getting this error.

@2klab
Copy link
Author

2klab commented Sep 1, 2021

version 0.8B2, matplotlib 3.4.3

@Phlya
Copy link
Owner

Phlya commented Sep 1, 2021

You'll have to be more specific than that, sorry. Most errors people report are not bugs in adjustText but incorrect usage.

@2klab
Copy link
Author

2klab commented Sep 1, 2021

It does not produce any error with version 0.7.3.

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