Title: Single-character colors do not match long names · Issue #17591 · matplotlib/matplotlib · GitHub
Open Graph Title: Single-character colors do not match long names · Issue #17591 · matplotlib/matplotlib
X Title: Single-character colors do not match long names · Issue #17591 · matplotlib/matplotlib
Description: Bug report Bug summary According to our docs: one of {'b', 'g', 'r', 'c', 'm', 'y', 'k', 'w'}, they are the single character short-hand notations for blue, green, red, cyan, magenta, yellow, black, and white. Code for reproduction import...
Open Graph Description: Bug report Bug summary According to our docs: one of {'b', 'g', 'r', 'c', 'm', 'y', 'k', 'w'}, they are the single character short-hand notations for blue, green, red, cyan, magenta, yellow, black,...
X Description: Bug report Bug summary According to our docs: one of {'b', 'g', 'r', 'c', 'm', 'y', 'k', 'w'}, they are the single character short-ha...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/17591
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Single-character colors do not match long names","articleBody":"### Bug report\r\n\r\n**Bug summary**\r\n\r\nAccording to our docs:\r\n\u003e one of {'b', 'g', 'r', 'c', 'm', 'y', 'k', 'w'}, they are the single character short-hand notations for blue, green, red, cyan, magenta, yellow, black, and white.\r\n\r\n**Code for reproduction**\r\n\r\n```python\r\nimport matplotlib.pyplot as plt\r\n\r\nfig, ax = plt.subplots()\r\nfor i, long in enumerate('blue green red cyan magenta yellow'.split()):\r\n short = long[0]\r\n ax.plot([0], c=long, label=long)\r\n ax.plot([0], c=short, label=short)\r\nax.legend()\r\n\r\nplt.show()\r\n```\r\n\r\n**Actual outcome**\r\n\r\n\r\n\r\n**Expected outcome**\r\n\r\ncyan/c, magenta/m, yellow/y should match each other. I don't think we can change these unless we do a 4 release, so I've labelled this as a documentation fix.\r\n\r\n**Matplotlib version**\r\n * Matplotlib version: master\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): Tkagg\r\n * Python version: 3.6.8","author":{"url":"https://github.com/QuLogic","@type":"Person","name":"QuLogic"},"datePublished":"2020-06-09T00:21:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/17591/matplotlib/issues/17591"}
| 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:295e7426-cb0d-448d-1e16-86677eb1cc48 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 87FE:2D422D:1BDB93F:25B886D:6A524B10 |
| html-safe-nonce | f1fc330430d878c5bfbfd60103c81035b367325531c3a19427d6888be4962ca5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4N0ZFOjJENDIyRDoxQkRCOTNGOjI1Qjg4NkQ6NkE1MjRCMTAiLCJ2aXNpdG9yX2lkIjoiODI4NzEzMzE5NzQ4MzAwMjY0MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7abb9ddbdac56a40fc9876dd0a10b28222bf2f556c7d16992d92c7071a4501a2 |
| hovercard-subject-tag | issue:635017347 |
| 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/17591/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b76da0c339aab3c1f9309e4ecd69885358b70dfd912f4c5f6301b4cd1cfba582/matplotlib/matplotlib/issues/17591 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b76da0c339aab3c1f9309e4ecd69885358b70dfd912f4c5f6301b4cd1cfba582/matplotlib/matplotlib/issues/17591 |
| og:image:alt | Bug report Bug summary According to our docs: one of {'b', 'g', 'r', 'c', 'm', 'y', 'k', 'w'}, they are the single character short-hand notations for blue, green, red, cyan, magenta, yellow, black,... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | QuLogic |
| 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