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

query_pairs unexpected argument #176

Open
DrBadabing opened this issue Jun 5, 2024 · 3 comments
Open

query_pairs unexpected argument #176

DrBadabing opened this issue Jun 5, 2024 · 3 comments

Comments

@DrBadabing
Copy link

Running adjustText gives an error even when running the base example. For example running the following:

np.random.seed(0)
x, y = np.random.random((2,30))
fig, ax = plt.subplots()
plt.plot(x, y, 'bo')
texts = [ax.text(x[i], y[i], 'Text%s' %i, ha='center', va='center') for i in range(len(x))]
adjust_text(texts);

Gives the following error:

File "", line 6, in
adjust_text(texts);

File "C:\ProgramData\Anaconda3\lib\site-packages\adjustText_init_.py", line 548, in adjust_text
explode_x, explode_y = explode(coords, static_coords, explode_radius)

File "C:\ProgramData\Anaconda3\lib\site-packages\adjustText_init_.py", line 247, in explode
pairs = tree.query_pairs(r, output_type="ndarray")

TypeError: query_pairs() got an unexpected keyword argument 'output_type'

@Phlya
Copy link
Owner

Phlya commented Jun 6, 2024

What is your scipy version?

@DrBadabing
Copy link
Author

scipy is version 1.5.2

@Phlya
Copy link
Owner

Phlya commented Jun 27, 2024

Can you try updating to a newer version? 1.5.2 is quite old now

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