code for generating figures for job talk