I've been going off of this answer which said to use orientation=u'horizontal', so I made this simple code:
import matplotlib.pyplot as plt
plt.bar(x=[1,2,3],
height=[1,2,3],
orientation=u'horizontal')
plt.show()
But I get the error:
TypeError: the dtypes of parameters y (object) and height (int64) are incompatible
.
Why is that? Is it because I am specifically rotating a barplot?
P.S. I tried specifying y, even though I'm not sure it is appropriate in a barplot. That also gave an error.