horizontal histogramm doesn't work in 1.2 branch #1985

Merged
merged 1 commit into from May 8, 2013

3 participants

@cweninger
x = np.random.rand(100)
plt.hist(x, orientation='horizontal')
plt.show()

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'

@tacaswell
Matplotlib Developers member

I can also confirm this on the current master.

@mdboom mdboom was assigned May 8, 2013
@mdboom
Matplotlib Developers member

I have a patch I'll post here shortly.

@tacaswell
Matplotlib Developers member

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

@mdboom
Matplotlib Developers member

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

@cweninger

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

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

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