plotcurves function

Plot the curves