title: Plot a Single XGBoost Decision Tree
body: <p>I am using method on <a href="https://machinelearningmastery.com/visualize-gradient-boosting-decision-trees-xgboost-python/" rel="noreferrer">https://machinelearningmastery.com/visualize-gradient-boosting-decision-trees-xgboost-python/</a> to plot a XGBoost Decision Tree</p>
  
  <pre><code>from numpy import loadtxt
  from xgboost import XGBClassifier
  from xgboost import plot_tree
  import matplotlib.pyplot as plt
  # load data
  dataset = loadtxt('pima-indians-diabetes.csv', delimiter=",")
  # split data into X and y
  X = dataset[:,0:8]
  y = dataset[:,8]
  # fit model no training data
  model = XGBClassifier()
  model.fit(X, y)
  # plot single tree
  plot_tree(model)
  plt.show()
  </code></pre>
  
  <p>As I got 150 features,the plot looks quite small for all split points,how to draw a clear one or save in local place or any other ways/ideas could clearly show this ‘tree’ is quite appreciated
  <a href="https://i.stack.imgur.com/wSMjT.png" rel="noreferrer"><img src="https://i.stack.imgur.com/wSMjT.png" alt="enter image description here"></a></p>