Title: bar() (and possibly other plots) should take an array of string labels for x axis · Issue #2516 · matplotlib/matplotlib · GitHub
Open Graph Title: bar() (and possibly other plots) should take an array of string labels for x axis · Issue #2516 · matplotlib/matplotlib
X Title: bar() (and possibly other plots) should take an array of string labels for x axis · Issue #2516 · matplotlib/matplotlib
Description: It's pretty common to have bar charts where the x axis is a set of string labels rather than numbers. This can currently be done in pyplot with e.g. bar([1,2,3],[4,3,6], align='center') gca().xaxis.set_ticks([1, 2, 3]) gca().xaxis.set_ti...
Open Graph Description: It's pretty common to have bar charts where the x axis is a set of string labels rather than numbers. This can currently be done in pyplot with e.g. bar([1,2,3],[4,3,6], align='center') gca().xaxis...
X Description: It's pretty common to have bar charts where the x axis is a set of string labels rather than numbers. This can currently be done in pyplot with e.g. bar([1,2,3],[4,3,6], align='center')...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/2516
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bar() (and possibly other plots) should take an array of string labels for x axis","articleBody":"It's pretty common to have bar charts where the x axis is a set of string labels rather than numbers. This can currently be done in pyplot with e.g.\n\n```\nbar([1,2,3],[4,3,6], align='center')\ngca().xaxis.set_ticks([1, 2, 3])\ngca().xaxis.set_ticklabels(['one', 'two', 'three'])\n```\n\nbut it would be much nicer to simply support\n\n```\nbar(['one', 'two', 'three'], [4,3,6])\n```\n\nSimilarly for `barh` and possibly some other plot types.\n\ncc: @alanedelman\n","author":{"url":"https://github.com/stevengj","@type":"Person","name":"stevengj"},"datePublished":"2013-10-12T14:21:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/2516/matplotlib/issues/2516"}
| 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:dc7943e8-0cfd-0c58-c85a-998bb96c7644 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9F96:3DEC57:2980A4D:3C0E507:6A566897 |
| html-safe-nonce | 1716b0eef9ccf1fc560a88c9914e213ba8c6dab0b81d400f2c4a569d94c4b6e3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Rjk2OjNERUM1NzoyOTgwQTREOjNDMEU1MDc6NkE1NjY4OTciLCJ2aXNpdG9yX2lkIjoiNzc3MTYzODI5OTA2MDc1ODY4MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 22551955cd542c8a15d1a23bff917fdb090561d3c3265e89da038e1c3517d856 |
| hovercard-subject-tag | issue:20911677 |
| 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/2516/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0bb45b9ba291e2355a7748c874ce2ddfee2b6814dbf7ac600ba2d43dce5b2d9b/matplotlib/matplotlib/issues/2516 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0bb45b9ba291e2355a7748c874ce2ddfee2b6814dbf7ac600ba2d43dce5b2d9b/matplotlib/matplotlib/issues/2516 |
| og:image:alt | It's pretty common to have bar charts where the x axis is a set of string labels rather than numbers. This can currently be done in pyplot with e.g. bar([1,2,3],[4,3,6], align='center') gca().xaxis... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | stevengj |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1bfcd903bf3318822b10b18a6332fac40d3a21f7d94456dca766ab8fa7328068 |
| 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 | 37f446b78ad53e6f593aa1a4243b87c76a3428ab |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width