-
Notifications
You must be signed in to change notification settings - Fork 85
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
type error at end of ajust_text #42
Comments
Hi, thanks for your interest and for reporting this. Could you please share
the exact code you used?
вт, 17 Апр 2018 г., 9:39 EisFranzi <notifications@github.com>:
… I was trying your examples. Everything worked well except at the end I get
the error:
File "C:\Python27\lib\site-packages\adjustText\adjustText.py", line 563,
in adjust_text
return i+1
TypeError: can only concatenate tuple (not "int") to tuple
This actually prevents the image from being saved with a plt.savefig()
command.
I did not install pandas. Is that a prerequisite?
Thanks for paying attention!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#42>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACwsuuWRj63tJUp0y2Tuy0-Obp_gJbfWks5tpao5gaJpZM4TX3sw>
.
|
I tried some examples from https://github.com/Phlya/adjustText/wiki and just added a save command at the end. The image does not get saved because of the error message mentioned before. import matplotlib.pyplot as plt np.random.seed(0) |
I'm closing this as fixed by @colinmorris, let me know if it isn't. Thanks! |
Hi I've been having a similar issue, even without a save command, and when save_steps = False. I get a type error when running the following code: x, y = np.random.random((2,30)) |
Hi, have you tried upgrading from the repo? I don't think I have pushed this to PyPI yet... |
Hi. I did try, but I had another go. This time I uninstalled the PyPl first, and then installed from the repo. That seems to have done it. Sorry to take up your time on something silly. Thanks |
I was trying your examples. Everything worked well except at the end I get the error:
File "C:\Python27\lib\site-packages\adjustText\adjustText.py", line 563, in adjust_text
return i+1
TypeError: can only concatenate tuple (not "int") to tuple
This actually prevents the image from being saved with a plt.savefig() command.
I did not install pandas. Is that a prerequisite?
Thanks for paying attention!
The text was updated successfully, but these errors were encountered: