Title: Use of np.asscalar in Matplotlib v2.2.3 · Issue #13192 · matplotlib/matplotlib · GitHub
Open Graph Title: Use of np.asscalar in Matplotlib v2.2.3 · Issue #13192 · matplotlib/matplotlib
X Title: Use of np.asscalar in Matplotlib v2.2.3 · Issue #13192 · matplotlib/matplotlib
Description: 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 ...
Open Graph Description: 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 fun...
X Description: 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 fun...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/13192
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Use of np.asscalar in Matplotlib v2.2.3","articleBody":"### Bug report\r\n\r\n**Bug summary**\r\nWith NumPy v1.16.0, the use of `np.asscalar()` is deprecated and will probably be removed later on.\r\nCurrently, in Matplotlib v2.2.3, there are still three instances of this function being used.\r\nGiven 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?).\r\n\r\n**Code for reproduction**\r\nInstalling 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\r\n```\r\ncolors.py:101: ret = np.asscalar(ex)\r\nimage.py:425: a_min = np.asscalar(a_min.astype(scaled_dtype))\r\nimage.py:426: a_max = np.asscalar(a_max.astype(scaled_dtype))\r\n```\r\n\r\nIf allowed, I can easily go and replace those instances with `a.item()` or equivalent (if necessary) and make a PR.","author":{"url":"https://github.com/1313e","@type":"Person","name":"1313e"},"datePublished":"2019-01-16T01:31:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/13192/matplotlib/issues/13192"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e45eca45-a7a8-ed8c-4f17-dad9ca697891 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8F6C:1F82C3:8125AB:AE2C41:6A5307A6 |
| html-safe-nonce | a2f0d9523d0fc6a17a39601a8d42518a6f38347e62a506488c642277cfb876df |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjZDOjFGODJDMzo4MTI1QUI6QUUyQzQxOjZBNTMwN0E2IiwidmlzaXRvcl9pZCI6Ijg3ODE3MjczOTM0NzM4MjQ2NzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f24e2b0510fa41fda8f0efd3d235b70b75ac8656e0d0476d6858e08ca4aca129 |
| hovercard-subject-tag | issue:399608940 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/13192/issue_layout |
| twitter:image | https://opengraph.githubassets.com/db6afaeb249bb75bcd874836efaeff3705475a45916769b3ea4256bafbe10478/matplotlib/matplotlib/issues/13192 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/db6afaeb249bb75bcd874836efaeff3705475a45916769b3ea4256bafbe10478/matplotlib/matplotlib/issues/13192 |
| og:image:alt | 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 fun... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | 1313e |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width