I use an heatmap to visualize a confusion matrix. I like the standard colors, but I would like to have 0s in light orange and highest values in dark purple.
I managed to
The default cmap is sns.cm.rocket. To reverse it set cmap to sns.cm.rocket_r
sns.cm.rocket
sns.cm.rocket_r
Using your code:
cmap = sns.cm.rocket_r ax = sns.heatmap(cm_prob, annot=False, fmt=".3f", xticklabels=print_categories, yticklabels=print_categories, vmin=-0.05, cmap = cmap)