Skip to content

Commit

Permalink
Merge pull request #594 from akrherz/windrose_time
Browse files Browse the repository at this point in the history
tweak windrose text label for clarity
  • Loading branch information
akrherz authored Apr 27, 2022
2 parents 60c06cf + e10679b commit ec98f40
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyiem/windrose_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def _make_timelimit_string(kwargs):
d2 = ets.strftime("%b %-d")
if sts.strftime("%m%d") > ets.strftime("%m%d"):
d1, d2 = d2, d1
tlimit += f"{d1} - {d2}"
tlimit += f"{d1} - {d2}, "
elif months is not None and len(months) < 12:
for h in months:
tlimit += f"{month_abbr[h]},"
Expand Down
Binary file modified tests/baseline/test_windrose_month_limiter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions tests/test_windrose_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ def test_windrose_month_limiter():
drct=drct,
valid=valid,
months=[4, 5, 6],
limit_by_doy=True,
hours=list(range(5, 12)),
nogenerated=True,
)
return fig
Expand Down

0 comments on commit ec98f40

Please sign in to comment.