assigning name to matplotlib subplot figure that can be used to make figure current
<p>My question is very similar to the one asked <a href="https://stackoverflow.com/questions/25387365/matplotlib-pyplot-subplots-how-to-set-the-name-of-the-figure">here</a>, but I'd like to be able to make the named figure current again, which the solution to the other question didn't address. Here's an attempt:</p>

<pre><code>import matplotlib.pyplot as plt
plt.ion()
f, ax = plt.subplots()
f.canvas.set_window_title('My Window Title') 

# make another figure, which will become current
plt.figure()

# attempts to make previous figure current, but instead creates third figure
plt.figure('My Window Title')
</code></pre>

<p>Is there a way to assign a name to a figure that's created using subplots() that can be referred to later?</p>