add plot-weights script