NatLabRockies / NatLabRockies/rdtools

degradation_timeseries_plot should have different label= options

Open
#455 0 comments 0 reactions 1 assignee View on GitHub

@cdeline is already working on this.

Since May 28, 2025.

enhancement
Dominant language
Python
Stars
189
Forks
82
PR merge metrics
No merged PRs in 30d

Description

At the moment, the degradation_timeseries_plot shows the timeseries shifted pretty far to the right, relative to the raw data timeseries. This is because the yoy_results output from the TA object is right-labeled (annual YoY slopes are 1 year in length and labeled on the right side), and the pd.rolling function to get the rolling median for the timeseries is also right labeled. So if you have the default 365 day rolling median, your timeseries starts 2 years delayed from the raw data.

Being able to select options for 'right', 'center' and 'left' labeling would allow an output closer to what I would expect, which would have the rates line up more closely with the raw data timeseries.

Contributor guide

Open the contributing guide

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.