title: How can I adjust the size of the plot_tree graph in sklearn to make it readable?
body: <p>I am trying to plot a <code>plot_tree</code> object from <code>sklearn</code> with <code>matplotlib</code>, but my tree plot doesn't look good. My tree plot looks squished: </p>
  
  <p><a href="https://i.stack.imgur.com/KBOog.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KBOog.png" alt="enter image description here"></a></p>
  
  <p>Below are my code:</p>
  
  <pre><code>from sklearn import tree
  from sklearn.model_selection import cross_val_score
  from sklearn.metrics import accuracy_score
  import matplotlib.pyplot as plt
  
  # create tree object 
  model_gini_class = tree.DecisionTreeClassifier(criterion='gini')
  
  # train the model using the training sets and check score
  model_gini_class.fit(X_train, y_train)
  model_gini_class.score(X_train, y_train)
  
  # predict output
  predicted_gini_class = model_gini_class.predict(X_test)
  
  plt.figure()
  tree.plot_tree(model_gini_class, filled=True)
  plt.title("Decision trees on the Shakespear dataset (Gini)")
  plt.show() # the tree looks squished?
  </code></pre>
  
  <p>So my questions is: </p>
  
  <ul>
  <li>Could someone tell me how to adjust the size of the <code>sklearn</code> plot_tree object so it doesn't look squished? </li>
  </ul>
  
  <p>Thank you,</p>