Skip to content

Commit

Permalink
Update daily_plot.py
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbelgium authored May 2, 2024
1 parent 0d2028a commit 0647951
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/daily_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ def create_plot(df_plt_today, now, is_top=None):

# Try plot grid lines between bars - problem at the moment plots grid lines on bars - want between bars
yticklabels = ['\n'.join(textwrap.wrap(ticklabel.get_text(), 16)) for ticklabel in plot.get_yticklabels()]
yticks = plot.get_yticks()
# Next two lines avoid a UserWarning on set_ticklabels() requesting a fixed number of ticks
yticks = plot.get_yticks()
plot.set_yticks(yticks)
plot.set_yticklabels(yticklabels, fontsize=10)
plot.set(ylabel=None)
Expand Down

0 comments on commit 0647951

Please sign in to comment.