Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

pyplot.step broken in 3.0.0? #12515

Closed
Closed
Milestone
@jgillis

Description

@jgillis

Bug report

Bug summary

There appears to be a mix-up of arguments forpyplot.step.
x andy arguments get promoted to keyword arguments, butAxes.step wants them as positional arguments.

Code for reproduction

frompylabimport*;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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp