Skip to content

Unable to use 'ds' keyword in plt.errorbar #20137

Closed
@jeffburggraf

Description

@jeffburggraf

Bug report

Bug summary

In version 3.4.1, passing the 'ds' kwarg to plt.errorbar results in an attribute error.
Code for reproduction

from matplotlib import pyplot as plt
plt.errorbar(x=[1, 2], y=[1, 2], yerr=[1, 2], ds='steps-mid')

Actual outcome

AttributeError: 'LineCollection' object has no property 'drawstyle'

Matplotlib version

  • Operating system: Catalina (10.15.7)
  • Matplotlib version: 3.4.1
  • Matplotlib backend: MacOSX
  • Python version: 3.8.8
  • Other libraries: Fresh conda environment

Installed matplotlib via conda using the default channel.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions