Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

horizontal histogramm doesn't work in 1.2 branch #1985

Merged
merged 1 commit into from

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
Owner

I can also confirm this on the current master.

@mdboom mdboom was assigned
@mdboom
Owner

I have a patch I'll post here shortly.

@tacaswell
Owner

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

@mdboom
Owner

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 from
@mwaskom mwaskom referenced this pull request in mwaskom/seaborn
Closed

Error using Python 2.7 and Matplotlib #90

@mdboom mdboom deleted the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.