Commit 132ec3b6 authored by Ludwig Fueracker's avatar Ludwig Fueracker
Browse files

added boxplot for parse/hash/compile times

parent a9b61a3a
Pipeline #2712 passed with stage
in 0 seconds
......@@ -273,7 +273,7 @@ def plotTimeHistogram(times, filename):
plt.xlabel('time [ms]')
plt.ylabel('#files')
ax.bar(center, hist, align='center', width=width)
fig.savefig(filename)#, bbox_extra_artists=(lgd,), bbox_inches='tight')
fig.savefig(filename)
def plotTimeMultiHistogram(parseTimes, hashTimes, compileTimes, filename):
......@@ -284,6 +284,12 @@ def plotTimeMultiHistogram(parseTimes, hashTimes, compileTimes, filename):
plt.legend(loc='upper right')
fig.savefig(filename)
fig, ax = plt.subplots()
data = [parseTimes, hashTimes, compileTimes]
plt.boxplot(data, 0, 'rs', 0)#, [5, 95])
fig.savefig(filename[:-4] + '_boxplots.png')
def plot_time_histograms1(data):
plotTimeHistograms(data[0], data[1], data[2])
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment