Skip to content

errorbar doesn't follow plot order #17139

Closed
@cosama

Description

@cosama

Bug report

matplotlib.pyplot.errorbar does follow the plot order, in particular the markers seem to be plot always last. Calls to other plot functions will thus be covered by the errobar markers.

Code for reproduction

import matplotlib.pyplot as plt
plt.errorbar(range(10), range(10), fmt='o')
plt.plot(range(10), range(10), 'x')
plt.show()

Expected outcome

the 'x's should be on top but they are covered by the 'o' of errorbar.

Matplotlib version

  • Operating system: Fedora 31
  • Matplotlib version: 3.2.1
  • Matplotlib backend: Qt5Agg
  • Python version: 3.7.6

Installation from pip3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions