Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

horizontal histogramm doesn't work in 1.2 branch #1985

Merged
merged 1 commit into from May 8, 2013

Conversation

mdboom
Copy link
Member

@mdboom mdboom commented May 8, 2013

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
Copy link
Member

I can also confirm this on the current master.

@ghost ghost assigned mdboom May 8, 2013
@mdboom
Copy link
Member

mdboom commented May 8, 2013

I have a patch I'll post here shortly.

@tacaswell
Copy link
Member

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

@mdboom
Copy link
Member

mdboom commented May 8, 2013

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

@weninc
Copy link
Author

weninc commented May 8, 2013

yes everything works now. Thanks for the quick fix

mdboom added a commit that referenced this pull request May 8, 2013
horizontal histogramm doesn't work in 1.2 branch
@mdboom mdboom merged commit b776730 into matplotlib:v1.2.x May 8, 2013
@mdboom mdboom deleted the horizontal-histogram branch August 7, 2014 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants