Plotting scripts for TSG.