Title: Scatter doesn't accept a list of strings as color spec. · Issue #12438 · matplotlib/matplotlib · GitHub
Open Graph Title: Scatter doesn't accept a list of strings as color spec. · Issue #12438 · matplotlib/matplotlib
X Title: Scatter doesn't accept a list of strings as color spec. · Issue #12438 · matplotlib/matplotlib
Description: Originally posted by @ImportanceOfBeingErnest in #12431 (comment) I wonder if this is the correct fix. The documentation also states c : color, sequence, or sequence of color, optional, default: 'b' The marker color. Possible values: A s...
Open Graph Description: Originally posted by @ImportanceOfBeingErnest in #12431 (comment) I wonder if this is the correct fix. The documentation also states c : color, sequence, or sequence of color, optional, default: 'b...
X Description: Originally posted by @ImportanceOfBeingErnest in #12431 (comment) I wonder if this is the correct fix. The documentation also states c : color, sequence, or sequence of color, optional, default: ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/12438
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Scatter doesn't accept a list of strings as color spec. ","articleBody":"_Originally posted by @ImportanceOfBeingErnest in https://github.com/matplotlib/matplotlib/pull/12431#issuecomment-427697109_\r\n\r\nI wonder if this is the correct fix. The documentation also states\r\n\r\n\u003e `c` : color, sequence, or sequence of color, optional, default: 'b'\r\nThe marker color. Possible values:\r\n\u003e\r\n\u003e* A single color format string.\r\n\u003e* **A sequence of color specifications of length n.**\r\n\r\nSo for \r\n\r\n plt.scatter([0,1],[2,3],c=(\"0.5\", \"0.7\"))\r\n\r\none would expect two points with different shades of grey. But this is converted to an array of values and shown with the viridis colormap. \r\nNot sure if the documentation is wrong here or the code.\r\n","author":{"url":"https://github.com/jklymak","@type":"Person","name":"jklymak"},"datePublished":"2018-10-08T03:22:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/12438/matplotlib/issues/12438"}
| 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:4c761fc9-93e3-ef78-be5e-31003faf443c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D052:2A8696:4EB9BB3:6D92096:6A54FF75 |
| html-safe-nonce | 28ede510801e307450b4f05197bf13364fb20365d990e16141a0c77f2ea9f4e3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDUyOjJBODY5Njo0RUI5QkIzOjZEOTIwOTY6NkE1NEZGNzUiLCJ2aXNpdG9yX2lkIjoiMzczNzA2NDgzNzE3MzU0Mjc3MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 472e3c5b73507899ec30454c8a66c25f08c54e18556103a4ac4f1754c3d3395a |
| hovercard-subject-tag | issue:367627707 |
| 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/12438/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7904391e9037e063b6347af34d31ae57d2c8f095298cd95184d3bea067c36578/matplotlib/matplotlib/issues/12438 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7904391e9037e063b6347af34d31ae57d2c8f095298cd95184d3bea067c36578/matplotlib/matplotlib/issues/12438 |
| og:image:alt | Originally posted by @ImportanceOfBeingErnest in #12431 (comment) I wonder if this is the correct fix. The documentation also states c : color, sequence, or sequence of color, optional, default: 'b... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jklymak |
| hostname | github.com |
| expected-hostname | github.com |
| None | eae2aab99907699a22d2c8449aa683ca74454fca87211b98f7c7b722086b2839 |
| 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 | 6a35ab858be185cd86d12b93a43bccf34e8d8536 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width