def plt_closeall(n=10):
    for i in range(n): plt.close()
close a number of open matplotlib windows
dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/sandbox/regression/kernridgeregress_class.py/plt_closeall