This way, you can generate all Figure 1's and output them to a directory corresponding to the sample, then generate all Figure 2's and output them to that same directory; likewise for Figure 3's