updated plot_SFR_flows.py