makes a plot