I try to create a custom heatmap but have an issue on the y scale.
The code I built is the following one :
cmap = colors.ListedColormap(['red','green'])
bounds=[-1,1]
norm = colors.BoundaryNorm(bounds, cmap.N)
heatmap = plt.pcolor(np.array(result), cmap=cmap, norm=norm)
plt.colorbar(heatmap, ticks=[-1,0,1])
Where result
is an array of 3 Column 6 Row Which contains -1 or 1 values
How can I edit it in order to get
0 1 2 3