Add plotdata and plot commands