explicit close plt

This commit is contained in:
aliabd 2020-09-23 17:47:55 +04:00
parent f62f256ce5
commit d22f48b923
2 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,7 @@ def plot_forecast(final_year, companies, noise, show_legend, point_style):
ax.plot(x, series, plt_format)
if show_legend:
plt.legend(companies)
plt.close()
return fig

View File

@ -19,6 +19,7 @@ def stock_forecast(final_year, companies, noise, show_legend, point_style):
ax.plot(x, series, plt_format)
if show_legend:
plt.legend(companies)
plt.close()
return fig