Refine draw-figures.sh.