I working on a draw decision tree with python,
plt.suptitle("Decision surface of a decision tree using paired features")
but when I run this code, the tree shows up like this
Is there any possible way to make the tree normal?
export_graphviz might be a good alternative for you.
Here is a Kaggle notebook that explains how to make the best use of this functionality provided by sklearn.
For the plot_tree function you are using you can try changing the font size using the
fontsize argument. Or you can also try changing the size of the figure if you haven’t already done that by doing something like this –
fig = matplotlib.pyplot.gcf()
fig.set_size_inches(x, y) #dimensions you want