Remove part of contour graph colorbar?

Is it possible to remove the ‘half bars’ from the top and the bottom of the colorbar on a contour plot? image