How to save a figure in matplotlib by its variable name?
You can save individual figures by: 

figX.savefig('figX_file.png')

.
In matplotlib, matplotlib.pyplot.savefig saves the current figure. If I have multiple figures as variables in my workspace, e.g. fig1, fig2, and fig3, is it possible to save any of these figures based on their variable name, without first bringing them up as the current figure? E.g., I'd like to do something like:
save('fig2', 'fig2_file.png')