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

removed shading when less than 3 forecasts #247

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

wsavran
Copy link
Collaborator

@wsavran wsavran commented Nov 20, 2023

fixes issue #214

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (8fbdd95) 54.95% compared to head (d2f40af) 54.95%.

❗ Current head d2f40af differs from pull request most recent head ee37e91. Consider uploading reports for the commit ee37e91 to get more accurate results

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #247   +/-   ##
=======================================
  Coverage   54.95%   54.95%           
=======================================
  Files          23       23           
  Lines        3963     3963           
  Branches      578      578           
=======================================
  Hits         2178     2178           
  Misses       1648     1648           
  Partials      137      137           

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

@@ -1769,8 +1769,9 @@ def plot_comparison_test(results_t, results_w=None, axes=None, plot_args=None):
ax.yaxis.set_major_locator(matplotlib.ticker.MaxNLocator(integer=True))
ax.set_ylim([ylim[0], ylim[1]])
ax.set_xlim([-0.5, len(results_t) - 0.5])
ax.bar(xTickPos, numpy.array([9999] * len(xTickPos)), bottom=-2000,
width=(xTickPos[1] - xTickPos[0]), color=['gray', 'w'], alpha=0.2)
if len(results_t) > 2:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only add shading when we have more than 2 forecasts.

@fabiolsilva fabiolsilva merged commit fa43396 into SCECcode:main Nov 29, 2023
9 checks passed
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.

3 participants