Closed
Description
I have to open pull request, but couldn't decide what is preferred to fix . Logically vertical
is right for default value, but altering API isn't good for code that relies on it.
From lib/matplotlib/axes/_axes.py
:
def barh(self, bottom, width, height=0.8, left=None, **kwargs):
"""
Make a horizontal bar plot.
...
orientation : 'vertical' | 'horizontal', optional, default: 'vertical'
The orientation of the bars.
...
"""
patches = self.bar(left=left, height=height, width=width,
bottom=bottom, orientation='horizontal', **kwargs)
return patches
Metadata
Metadata
Assignees
Labels
No labels