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

plt.plot does not plot anything with named arguments #12106

Closed
@taxus13

Description

@taxus13

Bug report

Bug summary

When using named arguments for x and y, the plots created with plt.plot respectively ax.plot are keeping empty. plt.errorbar (or ax.errorbar) are producing the desired output (see code below).
Thedocumentation shows that x and y are valid named arguments.

Code for reproduction

importmatplotlib.pyplotaspltimportnumpyasnpx=np.arange(0,12,.5)y=np.random.rand(*x.shape)plt.plot(x,y)#  works as expectedplt.plot(x=x,y=y)# shows empty plotplt.errorbar(x=x,y=y)# works as expected

Actual outcome
empty-diagram

Expected outcome
desired-diagram
or
desired-diagram2

Matplotlib version

  • Operating system: Windows 10x64
  • Matplotlib version: 2.2.3 (had the same issue with 2.2.2)
  • Matplotlib backend (print(matplotlib.get_backend())): 'module://ipykernel.pylab.backend_inline'
  • Python version: 3.6.2
  • Jupyter version (if applicable): 1.0.0 (Jupyter notebook 5.1.0rrc1)
  • Other libraries: numpy 1.14.5+mkl

Python was installed using WinPython, packages installed with pip.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp