How to change the position and size of the labels of the ticks of the vertical color bar of a seaborn's heatmap?
I tried with the following code
ax.figure.axes[-1].yaxis.label.set_size(36)
ax.figure.axes[-1].yaxis.label.set_position((4, 1.0))
However, this does not work, i.e. the font size of the labels of the ticks of the colorbar remain in the same position with the same font size. I am also doing
colorbar = ax.collections[0].colorbar
colorbar.set_ticks([-0.667, 0, 0.667])
# I want these labels to be bigger and more to the right!!
colorbar.set_ticklabels(['-1', '0', '1'])
With colorbar.set_ticks([-0.667, 0, 0.667])
, I can change the vertical position of the ticks, but I also want the associated labels to be farther away from the tick themselves.