Skip to content

Axes.bar_label(...) Not Working: axes has no attribute #19840

@DavidD003

Description

@DavidD003

Bug report

Bug summary

The code presented in the documentation at : https://matplotlib.org/stable/gallery/lines_bars_and_markers/horizontal_barchart_distribution.html
does not work, it gives an AttributeError. I experience this on collab as well as my PC

See the above doc for code to reproduce

AttributeError: 'AxesSubplot' object has no attribute 'bar_label'

Expected outcome
See the linked docs

Matplotlib version
MatPlotlib 3.3.2

  • Operating system: Windows 10
  • Matplotlib version (import matplotlib; print(matplotlib.__version__)):
  • Matplotlib backend : Qt5Agg
  • Python version: 3.8.5
  • Jupyter version: whatever Colab is using

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions