Prophet: Plot not appearing when using Python

Created on 20 Mar 2017  路  3Comments  路  Source: facebook/prophet

Using the Python code from the website, I can't get it to display the plot. It shows the values, and the convergence message, just like R, but where R shows the plot, the Python one does not. 2.7.5, CentOS 7.

Most helpful comment

Have you tried adding plt.show()?

...
import matplotlib.pyplot as plt
...
...
m.plot(forecast)
plt.show()

I assume that you are not running the code in the IPython notebook.

All 3 comments

Have you tried adding plt.show()?

...
import matplotlib.pyplot as plt
...
...
m.plot(forecast)
plt.show()

I assume that you are not running the code in the IPython notebook.

Great answer. Thank you. I missed importing the library at the top.

Welcome!

I think the issue can be closed now.

Was this page helpful?
0 / 5 - 0 ratings