title: Use the same base matplotlib plot several times (Duplicate an ax)
body: <p>I have a simple base plot generated by the following code:</p>
  <pre><code>import matplotlib.pyplot as plt
  plt.plot([1, 2, 3], [1, 2, 3], label=&quot;basic plot&quot;)
  </code></pre>
  <p>Moreover, I have several additional plots that I would like each one of them to be plotted over the basic plot above, but separately. For example, if I call the above plot &quot;basic plot&quot;, and I also have plots &quot;additional_1&quot; and &quot;additional_2&quot;, then I would like to get two final plots:</p>
  <ol>
  <li>basic plot + additional_1</li>
  <li>basic plot + additional_2</li>
  </ol>
  <p>I could of course finish with the first plot (1.), and then re-generate &quot;basic plot&quot;, and plot &quot;additional_2&quot; over it, but since the creation of &quot;basic plot&quot; is more complex than the example described, I would like to avoid it, that is, I don't want to create the base plot multiple times.</p>
  <p>Is there a way to plot the basic plot, and then &quot;copy&quot; it to multiple figs, and plot the additional figs separately on each fig? Is there any other way to achieve the same? If not, is it possible to &quot;undo&quot; the last (additional_1) plot, and to plot another (additional_2) instead (after saving or showing the fig)?</p>
  <p>Here is some toy code for the additional plots:
  (I don't want them to be plotted together)</p>
  <pre><code>plt.plot([1.5, 2, 2.5], [0, 5, 2], label=&quot;additional_1&quot;)
  plt.plot([2, 2.5, 3], [6, 0, 3], label=&quot;additional_2&quot;)
  </code></pre>
  <p>Thanks</p>