Skip to content

Commit

Permalink
Update scripts/daily_plot.py
Browse files Browse the repository at this point in the history
Co-authored-by: Nachtzuster <[email protected]>
  • Loading branch information
Emmo213 and Nachtzuster authored Aug 5, 2024
1 parent b59c646 commit a7a6a72
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/daily_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ def show_values_on_bars(ax, label):
value = '{:n}'.format(p.get_width())
bbox = {'facecolor': 'lightgrey', 'edgecolor': 'none', 'pad': 1.0}
if conf['COLOR_SCHEME'] == "dark":
ax.text(x, y, value, bbox=bbox, ha='center', va='center', size=9, color='black')
color='black'
else:
ax.text(x, y, value, bbox=bbox, ha='center', va='center', size=9, color='darkgreen')
color='darkgreen'
ax.text(x, y, value, bbox=bbox, ha='center', va='center', size=9, color=color)


def wrap_width(txt):
Expand Down

0 comments on commit a7a6a72

Please sign in to comment.