You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By executing the actual code the graph plot is cut at the top and at the bottom.
Solution.
Set heatmap limits manually by adding the following code at the end of "pretty_plot_confusion_matrix" function: bottom, top = ax.get_ylim() ax.set_ylim(bottom + 0.5, top - 0.5)
By executing the actual code the graph plot is cut at the top and at the bottom.
Solution.
Set heatmap limits manually by adding the following code at the end of "pretty_plot_confusion_matrix" function:
bottom, top = ax.get_ylim()
ax.set_ylim(bottom + 0.5, top - 0.5)
Reference:
https://stackoverflow.com/questions/56942670/matplotlib-seaborn-first-and-last-row-cut-in-half-of-heatmap-plot
The text was updated successfully, but these errors were encountered: