Generate figures directory first, then all figures.