question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] TimeSeries.plot() not showing plot

See original GitHub issue

Describe the bug When creating a TimeSeries “ts” object and trying to plot it with ts.plot() no plot is showing up. I am running the code snippet below in a Jupyter Notebook.

To Reproduce

df = pd.DataFrame(data={'First': [0,1,2,3,4,4.5,4,3,2,1]}))
inds = [f'2021-01-{day}' for day in range(1, 11)]
df.index = pd.to_datetime(inds)
ts = TimeSeries.from_dataframe(df)
ts.plot()

Expected behavior A plot showing the values of my component “First”

System:

  • Python version: [e.g. 3.7.5]
  • darts version [e.g. 0.9.1]

Additional context I fixed the issue with a overwriting of the TimeSeries.plot() function and adding a plt.show() There is a big chance that I just use the functions wrong, since I am a very new user to the library.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
RychenerLorenzcommented, Jul 26, 2021

Just a quick update:

Reinstalling the ipykernel fixed the issue.

I will now walk away in embarrassment.

0reactions
mokandilcommented, Sep 2, 2021

I faced a similar issue with the plotting function. I found that adding %matplotlib inline would solve the problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

BUG: strange timeseries plot behavior · Issue #6608 - GitHub
@rosnfeld so this occurs when you have multiple series overlaid on the same plot and 1 is converted to PeriodIndex for display while...
Read more >
Time series plot not showing as desired in R - Stack Overflow
I have two columns that I want to make a time series plot from. ... The output plot is not what I expected,...
Read more >
Fixing common date annoyances - Matplotlib
Now when you hover your mouse over the plotted data, you'll see date format strings like 2004-12-01 in the toolbar. plt.show() Copy to...
Read more >
Bokeh not displaying graph - Problems and bugs
from bokeh.plotting import figure, output_notebook, show # prepare some data x = [1, 2, 3, 4, 5] y = [6, 7, 2, 4,...
Read more >
Work With Datetime Format in Python - Time Series Data
Bar plot showing daily precipitation with the x-axis dates as datetimes. Note: you do not need to use .values when using an index...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found