This way I created my heatmap
:
fig = plt.figure(figsize = (8.27, 13.69), dpi = 100)
fig, ax = plt.subplots(1,1,figsize = (8.27, 13.69))
fig = plt.gcf()
heatplot = ax.imshow(c, cmap='rainbow', aspect='auto',\
norm=MidpointNormalize(midpoint=0.90))
c
is the array with the heatmap
values, normalised to one.
With ax.set_xticklabels()
, ax.set_xticks()
, ax.set_yticklabels()
and ax.set_yticks()
, I've added the axis to its heatmap
. Now I would like to add a second y
-axis. The orientation of the colorbar
is horizontal.
EDIT:
With the Help of Bazingaa i´ve got a second y-axis, but there is an offset:
ax1.set_yticks(np.arange(len(TITLES)), minor=False)
centers the ticks.