Rewrite the tex code to make more modular the list of plots