I\'m using matplotlib to generate a (vertical) barchart. The problem is my labels are rather long. Is there any way to display them vertically, either in the bar or above it or
In Jupyter Notebook you might use something like this
%matplotlib inline import matplotlib.pyplot as plt import numpy as np plt.xticks(rotation='vertical') plt.plot(np.random.randn(100).cumsum())
or you can use:
plt.xticks(rotation=90)