Put all_values in the plotting function