Title: Unavoidable warnings with pybind11 main branch · Issue #31495 · matplotlib/matplotlib · GitHub
Open Graph Title: Unavoidable warnings with pybind11 main branch · Issue #31495 · matplotlib/matplotlib
X Title: Unavoidable warnings with pybind11 main branch · Issue #31495 · matplotlib/matplotlib
Description: I am seeing warnings like Open Graph Description: I am seeing warnings like X Description: I am seeing warnings like <ipython-input-4-1eb00ff78cf2>:1: MatplotlibDeprecationWarning: The x parameter as float was deprecated in Matplotlib 3.10 and will be removed in 3.12. Use int(x) in...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/31495
X: @github
Domain: github.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unavoidable warnings with pybind11 main branch","articleBody":"I am seeing warnings like\n\n```\n\u003cipython-input-4-1eb00ff78cf2\u003e:1: MatplotlibDeprecationWarning: The x parameter as float was deprecated in Matplotlib 3.10 and will be removed in 3.12. Use int(x) instead.\n plt.show()\n\u003cipython-input-4-1eb00ff78cf2\u003e:1: MatplotlibDeprecationWarning: The y parameter as float was deprecated in Matplotlib 3.10 and will be removed in 3.12. Use int(y) instead.\n plt.show()\n```\n\nthat come out on every draw ever for the simplest of plots (e.g. `plt.gac(); plt.show()`). \n\nThese are coming from https://github.com/matplotlib/matplotlib/blob/59eafb86ba9f61bb6955260aadb9a4f48fcc14bb/src/_backend_agg_wrapper.cpp#L68-L90\n\nthese warnings triggering are due to a change in pybind11 (only see this with their development branch) and which I bisected to\n\n```\ne8e8d6ab22f39938607f31d457d4d359c130f078 is the first bad commit\ncommit e8e8d6ab22f39938607f31d457d4d359c130f078\nAuthor: Michael Carlstrom \u003crmc@carlstrom.com\u003e\nDate: Mon Feb 16 23:00:01 2026 -0800\n```\n\nwhich came in via\n\nhttps://github.com/matplotlib/matplotlib/blob/59eafb86ba9f61bb6955260aadb9a4f48fcc14bb/src/_backend_agg_wrapper.cpp#L68-L90\n\nhttps://github.com/pybind/pybind11/pull/5879\n\nWe either need to sort out how to adjust the pybind11 code or remove this warning.\n\n","author":{"url":"https://github.com/tacaswell","@type":"Person","name":"tacaswell"},"datePublished":"2026-04-13T14:11:06.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/31495/matplotlib/issues/31495"}
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:a1c8b491-b739-a8bf-19af-f493c511f2f6 current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id D832:97529:2722F9:35865A:6A51D8A1 html-safe-nonce 30804bd366261b07daff6875ed9d3879fe4bb09625261b0dd47bbdbc5c57e3d4 visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODMyOjk3NTI5OjI3MjJGOTozNTg2NUE6NkE1MUQ4QTEiLCJ2aXNpdG9yX2lkIjoiMjM1MDA3MTQzNzQ1NTM4MjY4OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 visitor-hmac 43d8a04c984cdb7790e48b40ca85ea583abdd9a3e2534d740d4e3719bdd592ad hovercard-subject-tag issue:4255485752 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/31495/issue_layout twitter:image https://opengraph.githubassets.com/d6c0a158f5210fcb3d935d300b0eb70730208cecb6e9b31a6cfdb5025d358ed8/matplotlib/matplotlib/issues/31495 twitter:card summary_large_image og:image https://opengraph.githubassets.com/d6c0a158f5210fcb3d935d300b0eb70730208cecb6e9b31a6cfdb5025d358ed8/matplotlib/matplotlib/issues/31495 og:image:alt I am seeing warnings like og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username tacaswell 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 7aed05249554b889eb33d002851a973eebcc7e91 ui-target full theme-color #1e2327 color-scheme light dark
URLs of crawlers that visited me.