Updated plot_data to have individual plotting commands suitable for calling from an external script.