Self.ax would be the axes of the colorbar itself.  This function needs the axes of the plot containing the colored data, which is different.