Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plot doesn't work on WIN & Spyder IDE #2620

Open
torsten156 opened this issue Sep 9, 2024 · 0 comments
Open

Plot doesn't work on WIN & Spyder IDE #2620

torsten156 opened this issue Sep 9, 2024 · 0 comments

Comments

@torsten156
Copy link

torsten156 commented Sep 9, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant