from sklearn import tree import matplotlib.pyplot as plt
fig, ax = plt.subplots(figsize=(15,10)) tree.plot_tree(clf_arvore, ax=ax, fontsize=10, rounded=True, filled=True, feature_names=x_treino.columns, class_names=['Não Ativado','Ativado'], rotate=True)