generate figures.