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

np.asscalar(a) is deprecated since NumPy v1.16, use a.item() instead #469

Open
hossam-zaki opened this issue Jul 23, 2020 · 3 comments
Open
Labels

Comments

@hossam-zaki
Copy link

Hello! I am using mpld3 in my jupyter notebook, and am having some issues. I continueally get this error, and I do not know why. Any advice?

/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/mpld3/_display.py:138: DeprecationWarning: np.asscalar(a) is deprecated since NumPy v1.16, use a.item() instead

@ckerr-IDM
Copy link

Hi @hossam-zaki , thanks for reporting this. It's just a warning, not an error, so it's fine to ignore. Hopefully @vladh or I will get around to fixing this at some point :)

@hossam-zaki
Copy link
Author

hossam-zaki commented Jul 23, 2020

The reason I ask is that I was getting this really weird plot using this package. The plot looks fine with regular matplotlib, but using the packages messes it up a bit

Screen Shot 2020-07-23 at 2 31 33 AM

This is what it's meant to look like: https://github.com/hossam-zaki/BSRP2020/blob/master/SVPlots/NumberOfSVsPerGene.png

@ckerr-IDM
Copy link

@hossam-zaki Whoa, that's like straight of a plotting bad dream :) Can you share a minimal example so we can try to reproduce? E.g. same plot but replace with random numbers (since I imagine it's pretty complicated where the actual numbers came from).

@vladh vladh added the bug label Jul 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants