Title: v. 3.3.0: horizontal colorbar broken · Issue #18033 · matplotlib/matplotlib · GitHub
Open Graph Title: v. 3.3.0: horizontal colorbar broken · Issue #18033 · matplotlib/matplotlib
X Title: v. 3.3.0: horizontal colorbar broken · Issue #18033 · matplotlib/matplotlib
Description: Bug report Bug summary Horizontal colorbar location changed to something broken in latest 3.3.0 Code for reproduction Here is a minimal example in the exact way I am using it. Is there any quick fix/workaround? I really appreciate the im...
Open Graph Description: Bug report Bug summary Horizontal colorbar location changed to something broken in latest 3.3.0 Code for reproduction Here is a minimal example in the exact way I am using it. Is there any quick fi...
X Description: Bug report Bug summary Horizontal colorbar location changed to something broken in latest 3.3.0 Code for reproduction Here is a minimal example in the exact way I am using it. Is there any quick fi...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/18033
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"v. 3.3.0: horizontal colorbar broken","articleBody":"\u003c!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--\u003e\r\n\u003c!--You can feel free to delete the sections that do not apply.--\u003e\r\n\r\n### Bug report\r\n\r\n**Bug summary**\r\n\r\n\u003c!--A short 1-2 sentences that succinctly describes the bug--\u003e\r\nHorizontal colorbar location changed to something broken in latest 3.3.0\r\n\r\n**Code for reproduction**\r\n\r\n\u003c!--A minimum code snippet required to reproduce the bug.\r\nPlease make sure to minimize the number of dependencies required, and provide\r\nany necessary plotted data.\r\nAvoid using threads, as Matplotlib is (explicitly) not thread-safe.--\u003e\r\n\r\nHere is a minimal example in the exact way I am using it. Is there any quick fix/workaround? I really appreciate the improved 3D axis handling in v. 3.3!\r\n\r\n```python\r\nimport numpy as np\r\nimport matplotlib.pyplot as plt\r\n\r\nimport matplotlib as mpl\r\nver = mpl.__version__\r\n\r\nnum_plots = 4\r\nfig = plt.figure(figsize=plt.figaspect(1 / num_plots),\r\n constrained_layout=True)\r\n\r\nax_l = []\r\n\r\nfor idx in range(num_plots):\r\n ax = fig.add_subplot(1, num_plots, idx+1, projection='3d')\r\n p_tri = ax.plot_trisurf(np.random.randn(5), np.random.randn(5), np.random.randn(5),\r\n cmap=plt.cm.coolwarm)\r\n ax_l.append(ax)\r\n\r\ncbar = plt.colorbar(p_tri, ax=ax_l, orientation='horizontal')\r\n\r\n\r\nplt.suptitle(ver)\r\n\r\nplt.savefig(str(ver)+'.jpg')\r\nplt.show()\r\n```\r\n\r\n**Actual outcome**\r\n\r\n\u003c!--The output produced by the above code, which may be a screenshot, console output, etc.--\u003e\r\nfrom v. 3.2.0\r\n\r\n\r\nfrom v. 3.3.0\r\n\r\n\r\n\u003c!--Please tell us how you installed matplotlib and python e.g., from source, pip, conda--\u003e\r\n\u003c!--If you installed from conda, please specify which channel you used if not the default--\u003e\r\n\r\n","author":{"url":"https://github.com/chris-hld","@type":"Person","name":"chris-hld"},"datePublished":"2020-07-23T14:54:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/18033/matplotlib/issues/18033"}
| 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:d06d67fb-a100-f888-ce9d-5296c09e42b5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DF10:150D9B:503E9:6603D:6A527E91 |
| html-safe-nonce | 6f1f1c2cc4388bed44376ab6561e7ba27378898511da3ca765b64b3dd8a7d7fd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjEwOjE1MEQ5Qjo1MDNFOTo2NjAzRDo2QTUyN0U5MSIsInZpc2l0b3JfaWQiOiI3Njc3MzU5NzEyNDY0MTc0NzM3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 103d285626ad30183dd738ed8a79d4272bce48a9ad9271bc4ae1b78722e8d480 |
| hovercard-subject-tag | issue:664545218 |
| 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/18033/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9d114e8e09cd50637af650f9c98577e4bd5bc2bc9d187e6d35cb26b7f52c38ae/matplotlib/matplotlib/issues/18033 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9d114e8e09cd50637af650f9c98577e4bd5bc2bc9d187e6d35cb26b7f52c38ae/matplotlib/matplotlib/issues/18033 |
| og:image:alt | Bug report Bug summary Horizontal colorbar location changed to something broken in latest 3.3.0 Code for reproduction Here is a minimal example in the exact way I am using it. Is there any quick fi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | chris-hld |
| 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