I would like to pass a colormap to a matplotlib.imshow
to plot a NxN array where each cell can only take the values -1,0 and 1.
I would like my colormap to map exactly one color (in hex code) to each value.
I just have no idea how to define a custom colormap which is not a gradation between two colors.