Add docstring for plot_centroid_resids_by_flag