Skip to content

pyplot.step broken in 3.0.0? #12515

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jgillis opened this issue Oct 13, 2018 · 1 comment
Closed

pyplot.step broken in 3.0.0? #12515

jgillis opened this issue Oct 13, 2018 · 1 comment
Milestone

Comments

@jgillis
Copy link

jgillis commented Oct 13, 2018

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],[3,4],'g')

Actual outcome

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/jgillis/miniconda3/envs/temp_env/lib/python3.6/site-packages/matplotlib/pyplot.py", line 2850, in step
    return gca().step(x=x, y=y, *args, where=where, data=data, **kwargs)
  File "..../lib/python3.6/site-packages/matplotlib/__init__.py", line 1786, in inner
    return func(ax, *args, **kwargs)
TypeError: step() got multiple values for argument 'x'

Expected outcome

A plot.

Matplotlib version

  • Matplotlib version: 3.0.0
  • Matplotlib backend (print(matplotlib.get_backend())): any of them
  • Python version: 3.6.5 (Installed with miniconda)
@anntzer
Copy link
Contributor

anntzer commented Oct 13, 2018

That's already fixed by #12293, which will be in the next bugfix release.
Thanks for the report!

@anntzer anntzer closed this as completed Oct 13, 2018
@anntzer anntzer added this to the v3.0.x milestone Oct 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants