Title: [Bug]: Axes.grid(color) ignores alpha · Issue #22231 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: Axes.grid(color) ignores alpha · Issue #22231 · matplotlib/matplotlib
X Title: [Bug]: Axes.grid(color) ignores alpha · Issue #22231 · matplotlib/matplotlib
Description: Bug summary When using Color like described here https://matplotlib.org/stable/tutorials/colors/colors.html for the Axes grid, the alpha value is ignored. Code for reproduction import numpy as np fig, ax = plt.subplots() rng = np.random....
Open Graph Description: Bug summary When using Color like described here https://matplotlib.org/stable/tutorials/colors/colors.html for the Axes grid, the alpha value is ignored. Code for reproduction import numpy as np f...
X Description: Bug summary When using Color like described here https://matplotlib.org/stable/tutorials/colors/colors.html for the Axes grid, the alpha value is ignored. Code for reproduction import numpy as np f...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/22231
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: Axes.grid(color) ignores alpha","articleBody":"### Bug summary\n\nWhen using Color like described here https://matplotlib.org/stable/tutorials/colors/colors.html for the Axes grid, the alpha value is ignored.\n\n### Code for reproduction\n\n```python\nimport numpy as np\r\nfig, ax = plt.subplots()\r\nrng = np.random.default_rng(12345)\r\nax.plot(rng.integers(low=0, high=10, size=3))\r\nax.grid(color=(0.8, 0.8, 0.8, 0))\r\nfig.show()\n```\n\n\n### Actual outcome\n\n\r\n\n\n### Expected outcome\n\n\r\n\n\n### Additional information\n\n_No response_\n\n### Operating system\n\nWindows\n\n### Matplotlib Version\n\n3.5.1\n\n### Matplotlib Backend\n\nmodule://backend_interagg\n\n### Python version\n\n3.9.2\n\n### Jupyter version\n\n_No response_\n\n### Installation\n\npip","author":{"url":"https://github.com/mreiche","@type":"Person","name":"mreiche"},"datePublished":"2022-01-14T07:43:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/22231/matplotlib/issues/22231"}
| 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:eb63cb3a-7114-771b-7f79-ea4e815ebeae |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B5CA:28F606:93F0F5:C76373:6A5292FB |
| html-safe-nonce | 9bc7fa82ea27ecc8c122ce8589eeab211b5479bc01adaae56be2e81a470d1226 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNUNBOjI4RjYwNjo5M0YwRjU6Qzc2MzczOjZBNTI5MkZCIiwidmlzaXRvcl9pZCI6IjQ0Mzc5Mjc2OTM3MDc4MDk1MzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9bc1556f45554377242ee45fba9dea1f08d756cc1bd3b295f4b888a0c8f06bcc |
| hovercard-subject-tag | issue:1103173869 |
| 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/22231/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9212cfd63924f7352f99d1019a907e1e1d8f7525adc2f07dd1553e3107dcfbcc/matplotlib/matplotlib/issues/22231 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9212cfd63924f7352f99d1019a907e1e1d8f7525adc2f07dd1553e3107dcfbcc/matplotlib/matplotlib/issues/22231 |
| og:image:alt | Bug summary When using Color like described here https://matplotlib.org/stable/tutorials/colors/colors.html for the Axes grid, the alpha value is ignored. Code for reproduction import numpy as np f... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mreiche |
| 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