Title: pyplot.step broken in 3.0.0? · Issue #12515 · matplotlib/matplotlib · GitHub
Open Graph Title: pyplot.step broken in 3.0.0? · Issue #12515 · matplotlib/matplotlib
X Title: pyplot.step broken in 3.0.0? · Issue #12515 · matplotlib/matplotlib
Description: Bug report Bug summary There appears to be a mix-up of arguments for pyplot.step. x and y arguments get promoted to keyword arguments, but Axes.step wants them as positional arguments. Code for reproduction from pylab import *;step([1,2]...
Open Graph Description: Bug report Bug summary There appears to be a mix-up of arguments for pyplot.step. x and y arguments get promoted to keyword arguments, but Axes.step wants them as positional arguments. Code for rep...
X Description: Bug report Bug summary There appears to be a mix-up of arguments for pyplot.step. x and y arguments get promoted to keyword arguments, but Axes.step wants them as positional arguments. Code for rep...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/12515
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"pyplot.step broken in 3.0.0?","articleBody":"### Bug report\r\n\r\n**Bug summary**\r\n\r\nThere appears to be a mix-up of arguments for `pyplot.step`.\r\n`x` and `y` arguments get promoted to keyword arguments, but `Axes.step` wants them as positional arguments.\r\n\r\n**Code for reproduction**\r\n\r\n```python\r\nfrom pylab import *;step([1,2],[3,4],'g')\r\n```\r\n\r\n**Actual outcome**\r\n\r\n```\r\nTraceback (most recent call last):\r\n File \"\u003cstring\u003e\", line 1, in \u003cmodule\u003e\r\n File \"/home/jgillis/miniconda3/envs/temp_env/lib/python3.6/site-packages/matplotlib/pyplot.py\", line 2850, in step\r\n return gca().step(x=x, y=y, *args, where=where, data=data, **kwargs)\r\n File \"..../lib/python3.6/site-packages/matplotlib/__init__.py\", line 1786, in inner\r\n return func(ax, *args, **kwargs)\r\nTypeError: step() got multiple values for argument 'x'\r\n```\r\n\r\n**Expected outcome**\r\n\r\nA plot.\r\n\r\n**Matplotlib version**\r\n * Matplotlib version: 3.0.0\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): any of them\r\n * Python version: 3.6.5 (Installed with miniconda)\r\n\r\n","author":{"url":"https://github.com/jgillis","@type":"Person","name":"jgillis"},"datePublished":"2018-10-13T10:25:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/12515/matplotlib/issues/12515"}
| 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:76d71baf-c6df-4126-f825-4d55eaeea51d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A304:161D02:2D733:3B328:6A52B69B |
| html-safe-nonce | e76c06a4835a6282ea48cdc693576bae8cc8d8c8e93179fd6d7d21097926d8b2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzA0OjE2MUQwMjoyRDczMzozQjMyODo2QTUyQjY5QiIsInZpc2l0b3JfaWQiOiIxMzY0MTA5MjcwMjg3ODI0NTM5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f25221e62e65917e0acc38a79f589e7ed9e9e511621f11e4fcba37595b59f79e |
| hovercard-subject-tag | issue:369789024 |
| 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/12515/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a5d91087a90da14c67cfcf9daa137fb07b668131261202f3c41a2ccf6e3d759e/matplotlib/matplotlib/issues/12515 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a5d91087a90da14c67cfcf9daa137fb07b668131261202f3c41a2ccf6e3d759e/matplotlib/matplotlib/issues/12515 |
| og:image:alt | Bug report Bug summary There appears to be a mix-up of arguments for pyplot.step. x and y arguments get promoted to keyword arguments, but Axes.step wants them as positional arguments. Code for rep... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jgillis |
| 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 | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width