Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix recipe for histograms plots #50

Merged
merged 4 commits into from
Jan 2, 2024
Merged

Fix recipe for histograms plots #50

merged 4 commits into from
Jan 2, 2024

Conversation

bbejanov
Copy link
Member

@bbejanov bbejanov commented Dec 11, 2023

This PR corrects the tseries plot recipe for different seriestypes.

The current implementation always plots TSeries with seriestype=:path, even if the TSeries were passed to histogram() or scatter(), for example.

In this PR we preserve the original seriestype. We also handle correctly the case of seriestype=:histogram, which uses only the values, not the range.

@jasonjensen
Copy link
Contributor

I have encountered no errors with this on the plots we use.

e.g. `float(2021Q1:2022Q4)` returns `2021.0:0.25:2022.75`
@codecov-commenter
Copy link

codecov-commenter commented Dec 12, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (d6b0f77) 92.52% compared to head (e718a62) 92.90%.
Report is 5 commits behind head on master.

Files Patch % Lines
src/momentintime.jl 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #50      +/-   ##
==========================================
+ Coverage   92.52%   92.90%   +0.37%     
==========================================
  Files          20       20              
  Lines        2904     2918      +14     
==========================================
+ Hits         2687     2711      +24     
+ Misses        217      207      -10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bbejanov bbejanov merged commit 248a82d into master Jan 2, 2024
6 checks passed
@bbejanov bbejanov deleted the hist_recipe branch January 2, 2024 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants