I use this code with python2 to save a plot after show():
show()
from Tkinter import * import numpy as np import matplotlib.pyplot as plt import tkMes