Source code for creating figures in STM paper