Skip to content

Commit

Permalink
Upgrade line count plot
Browse files Browse the repository at this point in the history
  • Loading branch information
blaisb committed Aug 9, 2024
1 parent aac4183 commit 8377b50
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions contrib/utilities/plot_lines.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
colors=['#1b9e77','#d95f02','#7570b3','#e7298a','#66a61e','#e6ab02']
#Plot font and colors
font = {'weight' : 'normal',
'size' : 12}
'size' : 14}

plt.rc('font', **font)

Expand All @@ -24,13 +24,13 @@

fig = plt.figure()
ax = fig.add_subplot(111)
plt.plot_date(date_list,df["Code"],ms=4,color=colors[0],label="Code")
plt.plot_date(date_list,df["Test"],ms=4,color=colors[1],label="Tests")
plt.plot_date(date_list,df["Code"]/1000,ms=4,color=colors[0],label="Code")
plt.plot_date(date_list,df["Test"]/1000,ms=4,color=colors[1],label="Tests")
plt.xlabel("Date")
plt.ylabel("Number of lines")
plt.ylabel("Number of lines $\\cdot 10^3$")

plt.legend()
ax.xaxis.set_major_formatter(mdates.DateFormatter('%y-%m-%d'))
ax.xaxis.set_major_formatter(mdates.DateFormatter('%y-%m'))
plt.tight_layout()

plt.savefig("lines.png",dpi=300)
plt.show()

0 comments on commit 8377b50

Please sign in to comment.