Skip to content

Commit

Permalink
Align comment
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbelgium authored Nov 2, 2024
1 parent d8a0101 commit f5e5fb7
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 @@ -126,7 +126,7 @@ 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(), wrap_width(ticklabel.get_text()))) for ticklabel in plot.get_yticklabels()]

# Next two lines avoid a UserWarning on set_ticklabels() requesting a fixed number of ticks
# 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)
Expand Down

0 comments on commit f5e5fb7

Please sign in to comment.