Title: mplot3d failed to clip bar charts if zlim is set. · Issue #8902 · matplotlib/matplotlib · GitHub
Open Graph Title: mplot3d failed to clip bar charts if zlim is set. · Issue #8902 · matplotlib/matplotlib
X Title: mplot3d failed to clip bar charts if zlim is set. · Issue #8902 · matplotlib/matplotlib
Description: Bug report Bug summary mplot3d failed to clip bar charts if zlim is set. Code for reproduction # Adapter from http://matplotlib.org/2.0.2/examples/mplot3d/bars3d_demo.html from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot ...
Open Graph Description: Bug report Bug summary mplot3d failed to clip bar charts if zlim is set. Code for reproduction # Adapter from http://matplotlib.org/2.0.2/examples/mplot3d/bars3d_demo.html from mpl_toolkits.mplot3d...
X Description: Bug report Bug summary mplot3d failed to clip bar charts if zlim is set. Code for reproduction # Adapter from http://matplotlib.org/2.0.2/examples/mplot3d/bars3d_demo.html from mpl_toolkits.mplot3d...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/8902
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mplot3d failed to clip bar charts if zlim is set.","articleBody":"### Bug report\r\n\r\n**Bug summary**\r\n\r\nmplot3d failed to clip bar charts if zlim is set.\r\n\r\n**Code for reproduction**\r\n\r\n```python\r\n# Adapter from http://matplotlib.org/2.0.2/examples/mplot3d/bars3d_demo.html\r\nfrom mpl_toolkits.mplot3d import Axes3D\r\nimport matplotlib.pyplot as plt\r\nimport numpy as np\r\n\r\nfig = plt.figure()\r\nax = fig.add_subplot(111, projection='3d')\r\nfor c, z in zip(['r', 'g', 'b', 'y'], [30, 20, 10, 0]):\r\n xs = np.arange(20)\r\n ys = np.random.rand(20)\r\n\r\n # You can provide either a single color or an array. To demonstrate this,\r\n # the first bar of each set will be colored cyan.\r\n cs = [c] * len(xs)\r\n cs[0] = 'c'\r\n ax.bar(xs, ys, zs=z, zdir='y', color=cs, alpha=0.8)\r\n\r\nax.set_xlabel('X')\r\nax.set_ylabel('Y')\r\nax.set_zlabel('Z')\r\n\r\n# Set zlim3d\r\nax.set_zlim3d(bottom=0.2, top=1)\r\n\r\nplt.show()\r\n```\r\n\r\n**Actual outcome**\r\n\r\n\r\n\r\n**Expected outcome**\r\nThe z-axis would be clipped according to the zlim_3d parameters properly\r\n\r\n**Matplotlib version**\r\n * Operating System: Windows 10 1703\r\n * Matplotlib Version: 2.0.2\r\n * Python Version: 3.6\r\n * Jupyter Version (if applicable):\r\n * Other Libraries: \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\nMatplotlib installed from pip.\r\n\r\n","author":{"url":"https://github.com/a113n","@type":"Person","name":"a113n"},"datePublished":"2017-07-17T07:59:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/8902/matplotlib/issues/8902"}
| 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:3b882dca-4d6f-958a-c53a-870e8fbbde08 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E384:1510D7:5143E9:6D08A2:6A5235F1 |
| html-safe-nonce | 3b62f8f294e0339efd71fef7ec70ac1cbbc7586ba7a454c51d6b10b116a7d246 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzg0OjE1MTBENzo1MTQzRTk6NkQwOEEyOjZBNTIzNUYxIiwidmlzaXRvcl9pZCI6IjQzMDkzNzEwMTYwNzE3NTUyNDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f7f61b0e419e0093c19833daad1e6db27e3ad2a8c0bf1fb36f7c9fd79e012734 |
| hovercard-subject-tag | issue:243319780 |
| 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/8902/issue_layout |
| twitter:image | https://opengraph.githubassets.com/75345e1b2360d67ee81c9c1a6cf91fc92251c8cc240534ceef09b5b013693ab8/matplotlib/matplotlib/issues/8902 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/75345e1b2360d67ee81c9c1a6cf91fc92251c8cc240534ceef09b5b013693ab8/matplotlib/matplotlib/issues/8902 |
| og:image:alt | Bug report Bug summary mplot3d failed to clip bar charts if zlim is set. Code for reproduction # Adapter from http://matplotlib.org/2.0.2/examples/mplot3d/bars3d_demo.html from mpl_toolkits.mplot3d... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | a113n |
| 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