Title: Discrete scatter? · Issue #6802 · matplotlib/matplotlib · GitHub
Open Graph Title: Discrete scatter? · Issue #6802 · matplotlib/matplotlib
X Title: Discrete scatter? · Issue #6802 · matplotlib/matplotlib
Description: Hey. So I briefly talked with @tacaswell about this. I mostly use scatter to show a discrete third variable via color (say I plot weight vs height and want to color by gender). The current scatter is not entirely equipped for this, becau...
Open Graph Description: Hey. So I briefly talked with @tacaswell about this. I mostly use scatter to show a discrete third variable via color (say I plot weight vs height and want to color by gender). The current scatter ...
X Description: Hey. So I briefly talked with @tacaswell about this. I mostly use scatter to show a discrete third variable via color (say I plot weight vs height and want to color by gender). The current scatter ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/6802
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Discrete scatter?","articleBody":"Hey.\nSo I briefly talked with @tacaswell about this. I mostly use scatter to show a discrete third variable via color (say I plot weight vs height and want to color by gender). The current scatter is not entirely equipped for this, because it doesn't really allow me to create the legend that I want, and I doesn't allow me to use cyclers on the symbols or color.\nWhat I want can be relatively trivially implemented as a for-loop over the unique values of the discrete variable, and calling plot once for each.\nI use this A LOT, and other data sciency folks, too, I think, so it would be nice to have a one-liner for this, i.e. implement a function that does that for you.\n\nMy question is:\nShould this go into matplotlib or somewhere else?\nIf it should go into matplotlib, should it go into scatter or into a new function?\n","author":{"url":"https://github.com/amueller","@type":"Person","name":"amueller"},"datePublished":"2016-07-19T19:37:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":14},"url":"https://github.com/6802/matplotlib/issues/6802"}
| 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:80b9d3b5-e66e-1a91-ba7f-a2284828de75 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9250:32982F:1947B1C:22472CA:6A523ED5 |
| html-safe-nonce | 82bd418fd661fbdbd75c1e0669410d7b1d7bb42a18ab54cf345f8ca0fb44b346 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjUwOjMyOTgyRjoxOTQ3QjFDOjIyNDcyQ0E6NkE1MjNFRDUiLCJ2aXNpdG9yX2lkIjoiNzU1NDM3NTIwMDg0MzkwNjc3MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 88029e916858f90613689a3facf07ac88a484b2a87e482814900d13bf05e3127 |
| hovercard-subject-tag | issue:166415767 |
| 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/6802/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c7ba98d0ec1899740e81f42f6da38ac3479e0a42369479cc777cebbdf50aeb14/matplotlib/matplotlib/issues/6802 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c7ba98d0ec1899740e81f42f6da38ac3479e0a42369479cc777cebbdf50aeb14/matplotlib/matplotlib/issues/6802 |
| og:image:alt | Hey. So I briefly talked with @tacaswell about this. I mostly use scatter to show a discrete third variable via color (say I plot weight vs height and want to color by gender). The current scatter ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | amueller |
| 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