The ```bar``` variable is unused, so simply replace line as ```plt.colorbar(im)```