Title: [Bug]: color=("Cn", alpha) does not work · Issue #27827 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: color=("Cn", alpha) does not work · Issue #27827 · matplotlib/matplotlib
X Title: [Bug]: color=("Cn", alpha) does not work · Issue #27827 · matplotlib/matplotlib
Description: Bug summary Reading https://matplotlib.org/stable/users/explain/colors/colors.html#color-formats it would seem like color=("C0", .5) (C0 color with alpha=0.5) should work, but it doesn't. (Could also be considered a doc bug or a feature ...
Open Graph Description: Bug summary Reading https://matplotlib.org/stable/users/explain/colors/colors.html#color-formats it would seem like color=("C0", .5) (C0 color with alpha=0.5) should work, but it doesn't. (Could al...
X Description: Bug summary Reading https://matplotlib.org/stable/users/explain/colors/colors.html#color-formats it would seem like color=("C0", .5) (C0 color with alpha=0.5) should work, but it doesn...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/27827
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: color=(\"Cn\", alpha) does not work","articleBody":"### Bug summary\n\nReading https://matplotlib.org/stable/users/explain/colors/colors.html#color-formats it would seem like `color=(\"C0\", .5)` (C0 color with alpha=0.5) should work, but it doesn't.\r\n\r\n(Could also be considered a doc bug or a feature request, strictly speaking.)\n\n### Code for reproduction\n\n```Python\nfrom pylab import *; plot([0, 1], c=(\"C0\", .5))\n```\n\n\n### Actual outcome\n\nValueError: ('C0', 0.5) is not a valid value for color\n\n### Expected outcome\n\nNo error.\n\n### Additional information\n\n_No response_\n\n### Operating system\n\nmacos\n\n### Matplotlib Version\n\n3.9.0.dev1178+g88d64e5f0c\n\n### Matplotlib Backend\n\nany\n\n### Python version\n\n3.12\n\n### Jupyter version\n\nnone\n\n### Installation\n\ngit checkout","author":{"url":"https://github.com/anntzer","@type":"Person","name":"anntzer"},"datePublished":"2024-02-27T19:59:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/27827/matplotlib/issues/27827"}
| 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:5f58aaf8-adf5-e85b-63c1-00f8e1e6ced6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A48C:3A486F:582C91:75D9E8:6A52F9D9 |
| html-safe-nonce | 2d07d911fbcd921710dd25f3375464173c2e5e48b755a5f6511d487c843ba674 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDhDOjNBNDg2Rjo1ODJDOTE6NzVEOUU4OjZBNTJGOUQ5IiwidmlzaXRvcl9pZCI6IjY1ODAwODg5NDk1MTUxNTU5MjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 881b1e84ae53fb9d7269cc291d913b0d435c7c3f5553fe7899c3766b45f5bb83 |
| hovercard-subject-tag | issue:2157500651 |
| 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/27827/issue_layout |
| twitter:image | https://opengraph.githubassets.com/57c4df357254ea740730df332f4dbbb10162fc37d20d075078b4a5ca5f16e6ea/matplotlib/matplotlib/issues/27827 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/57c4df357254ea740730df332f4dbbb10162fc37d20d075078b4a5ca5f16e6ea/matplotlib/matplotlib/issues/27827 |
| og:image:alt | Bug summary Reading https://matplotlib.org/stable/users/explain/colors/colors.html#color-formats it would seem like color=("C0", .5) (C0 color with alpha=0.5) should work, but it doesn't. (Could al... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | anntzer |
| 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