Skip to content

[BUG] Non-deterministic order of segments during plotting #1074

Open
1 task done
Mr-Geekman opened this issue Jan 19, 2023 · 0 comments
Open
1 task done

[BUG] Non-deterministic order of segments during plotting #1074

Mr-Geekman opened this issue Jan 19, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Mr-Geekman
Copy link
Contributor

Mr-Geekman commented Jan 19, 2023

🐛 Bug Report

If you run ts.plot on the same dataset in different jupyter sessions, the sequence of segments will be different. May be it will be better if order will be the same each time.

Expected behavior

Order of segments during plotting is the same for all plotting methods that use different plots for each segment.

Probable solution is to make look at plotting functions and sort the segments inside them.

Places to fix:

  • analysis.decomposition.plot_trend: sort ts.segments
  • analysis.forecast.plot_forecast: sort segments
  • analysis.forecast.plot_forecast_decomposition: sort segments
  • datasets.tsdataset.TSDataset.plot: sort segments

How To Reproduce

  1. Run get_started notebook.
  2. Restart kernel and rerun get_started notebook and check that order of segments in plot_forecast changed.

Environment

No response

Additional context

No response

Checklist

  • Bug appears at the latest library version
@Mr-Geekman Mr-Geekman added the bug Something isn't working label Jan 19, 2023
@github-project-automation github-project-automation bot moved this to Specification in etna board Jan 19, 2023
@Mr-Geekman Mr-Geekman moved this from Specification to Todo in etna board Jan 19, 2023
@Mr-Geekman Mr-Geekman moved this from Todo to Specification in etna board Apr 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
Status: Specification
Development

No branches or pull requests

1 participant