Title: boxplot treats iterables differently by type · Issue #2539 · matplotlib/matplotlib · GitHub
Open Graph Title: boxplot treats iterables differently by type · Issue #2539 · matplotlib/matplotlib
X Title: boxplot treats iterables differently by type · Issue #2539 · matplotlib/matplotlib
Description: It's stated in the documentation, but I find this behavior to be rather wart-y, and it led to some bugs in statsmodels. Why treat x array different from x sequence of lists? For an array it iterates over the first axis import numpy as np...
Open Graph Description: It's stated in the documentation, but I find this behavior to be rather wart-y, and it led to some bugs in statsmodels. Why treat x array different from x sequence of lists? For an array it iterate...
X Description: It's stated in the documentation, but I find this behavior to be rather wart-y, and it led to some bugs in statsmodels. Why treat x array different from x sequence of lists? For an array it ite...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/2539
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"boxplot treats iterables differently by type","articleBody":"It's stated in the documentation, but I find this behavior to be rather wart-y, and it led to some bugs in statsmodels. Why treat x array different from x sequence of lists?\n\nFor an array it iterates over the first axis\n\n```\nimport numpy as np\nimport matplotlib.pyplot as plt\n\nx = np.random.normal(size=(2,1000))\nfig, ax = plt.subplots()\n\nax.boxplot(x.T)\n```\n\nfor lists it iterates over the zero axis\n\n```\nfig, ax = plt.subplots()\nax.boxplot([x[0,:],x[1,:]])\n```\n\nWhy the distinction? I'd expect them to be the same (i.e., the list gets an np.asarray call) and it seems inconsistent that they're not.\n","author":{"url":"https://github.com/jseabold","@type":"Person","name":"jseabold"},"datePublished":"2013-10-23T15:14:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/2539/matplotlib/issues/2539"}
| 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:a777206e-85ae-e7b7-3500-6d84ff6fb84d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8E40:16A191:AD1669:EA2763:6A51EC20 |
| html-safe-nonce | 094f5d1ecc3ecd28ee7e37a5684b574cf708c7b92623db24a0253f4396111fc4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTQwOjE2QTE5MTpBRDE2Njk6RUEyNzYzOjZBNTFFQzIwIiwidmlzaXRvcl9pZCI6IjM0MDYxNTEyODIxOTI0MTE2ODAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8c4acb6fa24c9118ea9138c0a954dc3c392600d1e0f0e6cd6af59a5581b355f0 |
| hovercard-subject-tag | issue:21460753 |
| 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/2539/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7586871666510f3a63011d7607839878cf93b806cdcc94798b899d6c26acdb78/matplotlib/matplotlib/issues/2539 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7586871666510f3a63011d7607839878cf93b806cdcc94798b899d6c26acdb78/matplotlib/matplotlib/issues/2539 |
| og:image:alt | It's stated in the documentation, but I find this behavior to be rather wart-y, and it led to some bugs in statsmodels. Why treat x array different from x sequence of lists? For an array it iterate... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jseabold |
| 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 | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width