title: Matplotlib histogram label text crowded
body: <p>I'm making a histogram in matplotlib and the text label for each bin are overlapping on each other like this:
  <a href="https://i.stack.imgur.com/ej6di.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ej6di.png" alt="enter image description here"></a></p>
  
  <p>I tried to rotate the labels on the x-axis by following <a href="https://stackoverflow.com/questions/15938532/matplotlib-histogram-and-bin-labels">another solution</a> </p>
  
  <pre><code>cuisine_hist = plt.hist(train.cuisine, bins=100)
  cuisine_hist.set_xticklabels(rotation=45)
  plt.show()
  </code></pre>
  
  <p>But I get error message <code>'tuple' object has no attribute 'set_xticklabels'</code>. Why? How do I solve this problem? Alternatively, how can I "transpose" the plot so the labels are on the vertical axis?</p>