Skip to content

Commit

Permalink
set color
Browse files Browse the repository at this point in the history
  • Loading branch information
avinal committed Dec 8, 2020
1 parent fbde56f commit 81b6495
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ def make_graph(data: list):
bars = ax.barh(y_pos, data[2])
ax.set_yticks(y_pos)
ax.get_xaxis().set_ticks([])
ax.set_yticklabels(data[0])
ax.set_title(this_week(data))
ax.set_yticklabels(data[0], color="#586069")
ax.set_title(this_week(data), color="#586069")
ax.invert_yaxis()
plt.box(False)
for i, bar in enumerate(bars):
Expand All @@ -55,6 +55,7 @@ def make_graph(data: list):
textcoords="offset points",
va="center",
ha="left",
color="#586069"
)
plt.savefig("stat.svg", bbox_inches="tight", transparent=True)
print("new image generated")
Expand Down

0 comments on commit 81b6495

Please sign in to comment.