finished 1D-pdf plotting