made figures for a plot