Title: plt.step(..., where="auto") · Issue #5855 · matplotlib/matplotlib · GitHub
Open Graph Title: plt.step(..., where="auto") · Issue #5855 · matplotlib/matplotlib
X Title: plt.step(..., where="auto") · Issue #5855 · matplotlib/matplotlib
Description: I would like to suggest adding a fourth option for the where kwarg of plt.step: where="auto". This would take x and y arguments which differ by 1 (in either way) in length, and make a step plot that either has horizontal segments at both...
Open Graph Description: I would like to suggest adding a fourth option for the where kwarg of plt.step: where="auto". This would take x and y arguments which differ by 1 (in either way) in length, and make a step plot tha...
X Description: I would like to suggest adding a fourth option for the where kwarg of plt.step: where="auto". This would take x and y arguments which differ by 1 (in either way) in length, and make a ste...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/5855
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"plt.step(..., where=\"auto\")","articleBody":"I would like to suggest adding a fourth option for the `where` kwarg of `plt.step`: `where=\"auto\"`. This would take `x` and `y` arguments _which differ by 1 (in either way)_ in length, and make a step plot that either has horizontal segments at both ends (if `len(x) == len(y) + 1`) or has vertical segments at both ends (if `len(y) == len(x) + 1`).\n\nAs far as I know, currently, to make such a plot one must manually duplicate either the first or the last value in the shorter of the two arrays, which is a bit awkward. Additionally, `\"auto\"`-mode would make it much easier to rotate such a plot by 90° (in the \"vertical\" direction): you'd just have to switch the `x` and `y` arguments, without worrying about whether you need to change `where` or which element to duplicate.\n\nThoughts?\n","author":{"url":"https://github.com/anntzer","@type":"Person","name":"anntzer"},"datePublished":"2016-01-15T00:39:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":28},"url":"https://github.com/5855/matplotlib/issues/5855"}
| 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:1db47809-be6d-3edf-034e-4d3bdbfbec77 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E20E:2D56E3:180186E:205F356:6A535DEE |
| html-safe-nonce | bb910297165378dcc691d48495585918d0299a200ca79896098b931a27af9290 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjBFOjJENTZFMzoxODAxODZFOjIwNUYzNTY6NkE1MzVERUUiLCJ2aXNpdG9yX2lkIjoiODkxMDE3NDM2NDc2MDIzNTUwMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | cde6f18a75fcb574d95b062d32d2f79220deb2c216d065c9275e4203b1841c21 |
| hovercard-subject-tag | issue:126781796 |
| 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/5855/issue_layout |
| twitter:image | https://opengraph.githubassets.com/28fee25ce092707b455922f068e7d7562a31ea080a1757455eabeb15601b0ef3/matplotlib/matplotlib/issues/5855 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/28fee25ce092707b455922f068e7d7562a31ea080a1757455eabeb15601b0ef3/matplotlib/matplotlib/issues/5855 |
| og:image:alt | I would like to suggest adding a fourth option for the where kwarg of plt.step: where="auto". This would take x and y arguments which differ by 1 (in either way) in length, and make a step plot tha... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | anntzer |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width