plt.imshow(v, cmap=cmap, norm=norm)
cbar = plt.colorbar()
cbar.set_ticks(ticks, labels=labels)