plotprep function

plotprep sets up a window and the par values for plotting