I'm not entirely comfortable with this being on the figure.
Does it make more sense if this were a method on a colorbar, rather than the figure?