New Plotting template code