Skip to content

Commit

Permalink
For #463, avoid platform-specific %-m strftime
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon-rhodes committed Oct 23, 2020
1 parent 21f10b5 commit d43b64d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/comet_neowise_chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@

ax.plot(comet_x, comet_y, '+', c=comet_color, zorder=3)

for xi, yi, tstr in zip(comet_x, comet_y, t_comet.utc_strftime('%-m/%d')):
for xi, yi, tstr in zip(comet_x, comet_y, t_comet.utc_strftime('%m/%d')):
tstr = tstr.lstrip('0')
text = ax.text(xi + offset, yi - offset, tstr, color=comet_color,
ha='left', va='top', fontsize=9, weight='bold', zorder=-1)
text.set_alpha(0.5)
Expand Down

0 comments on commit d43b64d

Please sign in to comment.