Added plot function to draw t-p samples