Title: [Bug]: axis3d.Axis.get_tightbbox() is not including the offset_text · Issue #30744 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: axis3d.Axis.get_tightbbox() is not including the offset_text · Issue #30744 · matplotlib/matplotlib
X Title: [Bug]: axis3d.Axis.get_tightbbox() is not including the offset_text · Issue #30744 · matplotlib/matplotlib
Description: Bug summary The plot_surface will give a really weird issue if the value if of high precision. Code for reproduction import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D # noqa Z = np.array([[0.1,0.1...
Open Graph Description: Bug summary The plot_surface will give a really weird issue if the value if of high precision. Code for reproduction import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d imp...
X Description: Bug summary The plot_surface will give a really weird issue if the value if of high precision. Code for reproduction import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d imp...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/30744
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: axis3d.Axis.get_tightbbox() is not including the offset_text","articleBody":"### Bug summary\n\nThe plot_surface will give a really weird issue if the value if of high precision.\n\n### Code for reproduction\n\n```Python\nimport numpy as np\nimport matplotlib.pyplot as plt\nfrom mpl_toolkits.mplot3d import Axes3D # noqa\n\n\nZ = np.array([[0.1,0.100000001],[0.100000000001,0.100000000]])\nny, nx = Z.shape\nx = np.arange(nx)\ny = np.arange(ny)\nX, Y = np.meshgrid(x, y)\n\nprint(Z.min(), Z.max()) \nprint(Z.shape, X.shape) \n\nfig = plt.figure()\nax = fig.add_subplot(111, projection='3d')\nax.plot_surface(X, Y, Z)\nplt.show()\n```\n\n### Actual outcome\n\n\u003cimg width=\"410\" height=\"398\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/d158d37e-e3d1-4375-b2a5-b2f96e55f6e7\" /\u003e\n\n### Expected outcome\n\n\u003cimg width=\"418\" height=\"398\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/700ec1d0-e3b1-4c81-9bfc-70a7a5d6ae85\" /\u003e\n\n### Additional information\n\n_No response_\n\n### Operating system\n\n_No response_\n\n### Matplotlib Version\n\n3.10.0\n\n### Matplotlib Backend\n\n_No response_\n\n### Python version\n\n_No response_\n\n### Jupyter version\n\n_No response_\n\n### Installation\n\nNone","author":{"url":"https://github.com/cczw123","@type":"Person","name":"cczw123"},"datePublished":"2025-11-12T02:29:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/30744/matplotlib/issues/30744"}
| 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:a35a749a-d86b-047f-6b40-f03458c97c4b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9352:16EEE2:129359C:194BB94:6A5216BB |
| html-safe-nonce | 0d894e7fa3f7197b90d5d800da9757be70446300705404a798be3d43bfea8a12 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MzUyOjE2RUVFMjoxMjkzNTlDOjE5NEJCOTQ6NkE1MjE2QkIiLCJ2aXNpdG9yX2lkIjoiMTgwMjYyMzk3OTUxMDQzNzU2MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b32d4d040343d0300f6f4cedf9b3accac758e288a3edf9427e5dbd7e10465a60 |
| hovercard-subject-tag | issue:3614610566 |
| 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/30744/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fc2c9c3e0aaa176c735bf035b09a440db2986ec4239e85aeff798f9db3c0fa35/matplotlib/matplotlib/issues/30744 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fc2c9c3e0aaa176c735bf035b09a440db2986ec4239e85aeff798f9db3c0fa35/matplotlib/matplotlib/issues/30744 |
| og:image:alt | Bug summary The plot_surface will give a really weird issue if the value if of high precision. Code for reproduction import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d imp... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cczw123 |
| 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 |
Links:
Viewport: width=device-width