How to make plotly work?

Open
#2,682 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
20/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
matplotlib, pandas, plotly, python

Research direction

Reproduce the reported behavior using the Python imports, CSV input, and plotting snippet shown in the issue. Compare the Prophet plotting path with the matplotlib code and determine which Plotly behavior is expected; done requires a clearly reproducible working Plotly example or a confirmed bug report with a specific failing case.

Written by the indexing model from the issue text.

Description

I do not understand how to make plotly work with prophet

import logging
logging.getLogger("prophet.plot").disabled = True
import prophet
import matplotlib.pyplot as plt
import pandas as pd

data = pd.read_csv("example_wp_log_peyton_manning.csv")
data["ds"] = pd.to_datetime(data["ds"])

fig = plt.figure(facecolor='w', figsize=(10, 6))
plt.plot(data.ds, data.y)

I do not get the warning anymore, but plotly does not work

Dominant language
Python
Stars
20.5k
Forks
4.6k
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from facebook/prophet

All issues in facebook/prophet

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.