facebook/prophet

Plot doesn't work on WIN & Spyder IDE

torsten156 opened this issue · 0 comments

Hi,

I'm using Spyder as IDE and try this quick example. The code works fine, but I can't plot the forecast or parameters. I don't get an error after the plot command. Here my example code:

import pandas as pd
from neuralprophet import NeuralProphet, set_log_level
import matplotlib.pyplot as plt

df = pd.read_csv("https://github.com/ourownstory/neuralprophet-data/raw/main/kaggle-energy/datasets/tutorial01.csv")
set_log_level("ERROR")

m = NeuralProphet()

metrics = m.fit(df)

df_future = m.make_future_dataframe(df, n_historic_predictions=True, periods=365)

forecast = m.predict(df_future)

plt = m.plot(forecast)
plt.show()
plt = m.plot_components(forecast)
plt.show()

I'm using matplotlib.pyplot because it was the fix in an other post. But it doesn't work :-(

What can I do here???

Thanks
Torsten