Title: Doc build fails with numpy>=2.1.0 · Issue #28780 · matplotlib/matplotlib · GitHub
Open Graph Title: Doc build fails with numpy>=2.1.0 · Issue #28780 · matplotlib/matplotlib
X Title: Doc build fails with numpy>=2.1.0 · Issue #28780 · matplotlib/matplotlib
Description: The doc build is failing with File "/home/circleci/project/galleries/examples/units/radian_demo.py", line 26, in
Open Graph Description: The doc build is failing with File "/home/circleci/project/galleries/examples/units/radian_demo.py", line 26, in
X Description: The doc build is failing with File "/home/circleci/project/galleries/examples/units/radian_demo.py", line 26, in <module> axs[0].plot(x, cos(x), xunits=radians) ^^^^^^ File "/h...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/28780
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Doc build fails with numpy\u003e=2.1.0","articleBody":"The doc build is failing with \r\n\r\n```\r\nFile \"/home/circleci/project/galleries/examples/units/radian_demo.py\", line 26, in \u003cmodule\u003e\r\n axs[0].plot(x, cos(x), xunits=radians)\r\n ^^^^^^\r\n File \"/home/circleci/project/galleries/examples/units/basic_units.py\", line 382, in cos\r\n return [math.cos(val.convert_to(radians).get_value()) for val in x]\r\n ^^^^^^^^^^^^^^\r\n AttributeError: 'numpy.float64' object has no attribute 'convert_to'\r\n```\r\n\r\nWe already pinned away from 2.1.0, but that does not protect against 2.1.1, which was just released. \r\n\r\nhttps://github.com/matplotlib/matplotlib/pull/28779 pins to numpy 2.0. However, the above should be fixed.","author":{"url":"https://github.com/jklymak","@type":"Person","name":"jklymak"},"datePublished":"2024-09-03T17:55:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":16},"url":"https://github.com/28780/matplotlib/issues/28780"}
| 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:d0dc87a0-12db-c260-6132-e8665112a7e9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 84B2:1C64B7:389D4:49F07:6A5268E6 |
| html-safe-nonce | 0d33c90ce5a9a3d715039d84e05730a48a3a199a77ac9fc913ac035370ee59af |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NEIyOjFDNjRCNzozODlENDo0OUYwNzo2QTUyNjhFNiIsInZpc2l0b3JfaWQiOiI5MDEwMTc3ODY3ODg0MTYxMjU0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9abb21f7dc8b132413998e6df6bf51d17553dc7b7ca9f3399bb39947c90992b8 |
| hovercard-subject-tag | issue:2503447488 |
| 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/28780/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9edddff76413f9000b29c9bbccacc85a506c3fc942cc8dde3dfb439df6fe8aa2/matplotlib/matplotlib/issues/28780 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9edddff76413f9000b29c9bbccacc85a506c3fc942cc8dde3dfb439df6fe8aa2/matplotlib/matplotlib/issues/28780 |
| og:image:alt | The doc build is failing with File "/home/circleci/project/galleries/examples/units/radian_demo.py", line 26, in |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jklymak |
| 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