Skip to content

Commit

Permalink
Merge pull request #13 from avinal/dark-mode
Browse files Browse the repository at this point in the history
Dark mode support
  • Loading branch information
avinal committed Dec 8, 2020
2 parents 60621e9 + 81b6495 commit f0032b5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 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,8 +55,9 @@ def make_graph(data: list):
textcoords="offset points",
va="center",
ha="left",
color="#586069"
)
plt.savefig("stat.svg", bbox_inches="tight")
plt.savefig("stat.svg", bbox_inches="tight", transparent=True)
print("new image generated")


Expand Down

0 comments on commit f0032b5

Please sign in to comment.