You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug summary
With NumPy v1.16.0, the use of np.asscalar() is deprecated and will probably be removed later on.
Currently, in Matplotlib v2.2.3, there are still three instances of this function being used.
Given that Matplotlib v3.0.0+ no longer supports Python 2.7, I assume that the use of this function should be removed at some point (for v2.2.4?).
Code for reproduction
Installing Matplotlib v2.2.3 (in any Python version), going to the installation directory and executing (I do not know if this also works on anything besides Linux) grep -H -n np.asscalar *.py will return
Bug report
Bug summary
With NumPy v1.16.0, the use of
np.asscalar()
is deprecated and will probably be removed later on.Currently, in Matplotlib v2.2.3, there are still three instances of this function being used.
Given that Matplotlib v3.0.0+ no longer supports Python 2.7, I assume that the use of this function should be removed at some point (for v2.2.4?).
Code for reproduction
Installing Matplotlib v2.2.3 (in any Python version), going to the installation directory and executing (I do not know if this also works on anything besides Linux)
grep -H -n np.asscalar *.py
will returnIf allowed, I can easily go and replace those instances with
a.item()
or equivalent (if necessary) and make a PR.The text was updated successfully, but these errors were encountered: