Coding for plots and plot files