Title: [Bug]: 3D text does not respect rotation to make it parallel with a given zdir axis · Issue #30563 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: 3D text does not respect rotation to make it parallel with a given zdir axis · Issue #30563 · matplotlib/matplotlib
X Title: [Bug]: 3D text does not respect rotation to make it parallel with a given zdir axis · Issue #30563 · matplotlib/matplotlib
Description: Bug summary 3D text rotated along a given axis, e.g. zdir = "x" or zdir = (1, 0, 0), is always rotated roughly 60 degrees and does not respect the rotation argument for changing the orientation to e.g. 0 or 90 to be parallel with the spe...
Open Graph Description: Bug summary 3D text rotated along a given axis, e.g. zdir = "x" or zdir = (1, 0, 0), is always rotated roughly 60 degrees and does not respect the rotation argument for changing the orientation to ...
X Description: Bug summary 3D text rotated along a given axis, e.g. zdir = "x" or zdir = (1, 0, 0), is always rotated roughly 60 degrees and does not respect the rotation argument for changing the orien...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/30563
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: 3D text does not respect rotation to make it parallel with a given zdir axis","articleBody":"### Bug summary\n\n3D text rotated along a given axis, e.g. `zdir = \"x\"` or `zdir = (1, 0, 0)`, is always rotated roughly 60 degrees and does not respect the `rotation` argument for changing the orientation to e.g. `0` or `90` to be parallel with the specified axis.\n\n### Code for reproduction\n\n```Python\nimport matplotlib.pyplot as plt\n\nfig, ax = plt.subplots(subplot_kw = {\"projection\" : \"3d\"})\nax.text(0.3, 0.4, 0, \"Horizontal\", zdir = (1, 0, 0), rotation = 0, rotation_mode = \"default\", fontsize = 20)\nax.text(0.3, 0.1, 0, \"Vertical\", zdir = (1, 0, 0), rotation = 90, rotation_mode = \"default\", fontsize = 20)\nplt.show()\n```\n\n### Actual outcome\n\n\u003cimg width=\"511\" height=\"474\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/ea02eecf-380b-44cc-9bc2-ee34e7637635\" /\u003e\n\n### Expected outcome\n\n\u003cimg width=\"491\" height=\"466\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/8186769d-89f4-475a-a477-cf187fb139c0\" /\u003e\n\n### Additional information\n\n_No response_\n\n### Operating system\n\nWindows\n\n### Matplotlib Version\n\n3.6.0\n\n### Matplotlib Backend\n\nTkAgg\n\n### Python version\n\n3.10.6\n\n### Jupyter version\n\n_No response_\n\n### Installation\n\npip","author":{"url":"https://github.com/XrioBtw","@type":"Person","name":"XrioBtw"},"datePublished":"2025-09-15T20:49:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/30563/matplotlib/issues/30563"}
| 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:68a54c79-feb4-03dc-413c-66475f418160 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AD58:10FEF0:66DC75:8AC0EE:6A526921 |
| html-safe-nonce | 706e813e90591c73f743a2c1f837373e3d3c4d4adf9b1b53eabd915f9d07fa00 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDU4OjEwRkVGMDo2NkRDNzU6OEFDMEVFOjZBNTI2OTIxIiwidmlzaXRvcl9pZCI6IjE2MjI4NjA5ODM3ODQ1OTc3OTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0cc1b26263e72ea3574afcb5eef3ee842023f7389c70dbe168db5ecd46cb0b8e |
| hovercard-subject-tag | issue:3419469720 |
| 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/30563/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a78084cf0dfced085a0c285799dbf55e68cba2230ba2c6012a001f31dfb31f78/matplotlib/matplotlib/issues/30563 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a78084cf0dfced085a0c285799dbf55e68cba2230ba2c6012a001f31dfb31f78/matplotlib/matplotlib/issues/30563 |
| og:image:alt | Bug summary 3D text rotated along a given axis, e.g. zdir = "x" or zdir = (1, 0, 0), is always rotated roughly 60 degrees and does not respect the rotation argument for changing the orientation to ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | XrioBtw |
| 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