fixes #96, also clears mpl warning due to use of plt.close() instead of plt.clf()