Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Error in documentation of pyplot.errorbar() #11156

Closed
@ghost

Description

Bug report

Bug summary

The documentation of pyplot.errorbar() specifies, that if one gives asymmetrical errors xerr/yerr, the positive one should be given first. In realization, the errors to the lower end have to be given first

Code for reproduction

# Paste your code here
import matplotlib.pyplot as plt
fig, ax = plt.subplots()
ax.errorbar([0, 1], [1, 2], xerr=[[1, 2], [5, 10]], yerr=[[1, 2], [5, 10]])
plt.show()
#

Actual outcome

the smaller errorbars appear to the left of the plot points

# If applicable, paste the console output here
#
#

Expected outcome

The documentation way suggests the smaller errorbars should appear to the right

Matplotlib version

  • Operating system: RHEL6
  • Matplotlib version: 2.1.0
  • Matplotlib backend (print(matplotlib.get_backend())):
  • Python version: 2.7.10
  • Jupyter version (if applicable):
  • Other libraries:

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationGood first issueOpen a pull request against these issues if there are no active ones!

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions