horizontal histogramm doesn't work in 1.2 branch #1985

merged 1 commit into from May 8, 2013


None yet

3 participants

mdboom commented May 8, 2013
x = np.random.rand(100)
plt.hist(x, orientation='horizontal')

gives the following error on the 1.2 branch

plt.hist(x, orientation='horizontal')
File "/space/python_packages/lib/python2.7/site-packages/matplotlib/pyplot.py", line 2672, in hist
stacked=stacked, **kwargs)
File "/space/python_packages/lib/python2.7/site-packages/matplotlib/axes.py", line 8180, in hist
color=c, bottom=bottom)
TypeError: barh() got multiple values for keyword argument 'bottom'


I can also confirm this on the current master.

@mdboom mdboom was assigned May 8, 2013
mdboom commented May 8, 2013

I have a patch I'll post here shortly.


Good to know, I'll stop trying to fix this as well.

mdboom commented May 8, 2013

I've added a fix and a unit test. @cweninger: can you confirm this fixes your issue?

weninc commented May 8, 2013

yes everything works now. Thanks for the quick fix

@mdboom mdboom merged commit b776730 into matplotlib:v1.2.x May 8, 2013

1 check passed

default The Travis CI build passed
@mwaskom mwaskom referenced this pull request in mwaskom/seaborn Jan 23, 2014

Error using Python 2.7 and Matplotlib #90

@mdboom mdboom deleted the mdboom:horizontal-histogram branch Aug 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment