draw the plot