mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-21 02:19:59 +08:00
explicit close plt
This commit is contained in:
parent
f62f256ce5
commit
d22f48b923
@ -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
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user