title: Overlapping/crowded labels on y-axis python
body: <p>I'am kind of in a rush to finish this for tomorrows presentation towards the project owner. We are a small group of economic students in germany trying to figure out machine learning with python. We set up a Random Forest Classifier and are desperate to show the estimators important features in a neat plot. By applying google search we came up with the following solution that kind of does the trick, but leaves us unsatisfied due to the overlapping of the labels on the y-axis. The code we used looks like this:</p>
  
  <pre><code>feature_importances = clf.best_estimator_.feature_importances_
  feature_importances = 100 * (feature_importances / feature_importances.max())
  sorted_idx = np.argsort(feature_importances)
  
  pos = np.arange(sorted_idx.shape[0])
  plt.barh(pos, feature_importances[sorted_idx], align='center', height=0.8)
  plt.yticks(pos, df_year_four.columns[sorted_idx])
  plt.show()
  </code></pre>
  
  <p>Due to privacy let me say this: The feature names on the y-axis are overlapping (there are about 30 of them). I was looking into the documentation of matplotlib in order to get an understanding of how to do this by myself, unfortunately I couldn't find anything helpful. Seems like training and testing models is easier than understanding matplotlib and creating plots :D</p>
  
  <p>Thank you so much for helping out and taking the time, I appreciate it.</p>