-
Notifications
You must be signed in to change notification settings - Fork 230
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
patch values stacked plot #1181
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1181 +/- ##
=======================================
Coverage 95.59% 95.59%
=======================================
Files 39 39
Lines 4059 4064 +5
=======================================
+ Hits 3880 3885 +5
Misses 179 179 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not blocker. Lets get fix through
@@ -1126,7 +1127,17 @@ def plot_grouped_contribution_breakdown_over_time( | |||
area_params = dict(stacked=True, ax=ax) | |||
if area_kwargs is not None: | |||
area_params.update(area_kwargs) | |||
all_contributions_over_time.plot.area(**area_params) | |||
try: | |||
all_contributions_over_time.plot.area(**area_params) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thoughts of check on frame values instead of try except?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The cheks are done in the plot.area function itself and can have many edge cases. For now lets direct the responsibility to matplotlib 🙏
Closes #1148
Simply clip the contributions and add a warning.
📚 Documentation preview 📚: https://pymc-marketing--1181.org.readthedocs.build/en/1181/