Commit aa6422a8 authored by Melanie Bruns's avatar Melanie Bruns
Browse files

Merge branch 'feature-evaluations-for-slides' into 'master'

Adapt evaluations for slides

See merge request !163
parents 516a51cf 6f230c1b
Pipeline #17138 passed with stages
in 4 minutes and 29 seconds
......@@ -64,7 +64,7 @@ def main(analysisFileName, messageType, messagePrio, graphicFileName):
# Plot bar chart
plt.subplot(2,1,1)
plt.title('Delay distribution of delivered {} messages\nPriority {}'.format(messageType, messagePrio))
plt.bar(bins, vals)
plt.bar(bins, vals, color='#003a80')
plt.ylabel('Percentage of messages')
plt.grid(True)
axes = plt.gca()
......@@ -72,7 +72,7 @@ def main(analysisFileName, messageType, messagePrio, graphicFileName):
# Directly below, plot cumulative chart
plt.subplot(2,1,2)
plt.plot(bins, [cumulative[bin] for bin in bins])
plt.plot(bins, [cumulative[bin] for bin in bins], color='#003a80')
plt.xlabel('Delay in minutes')
plt.ylabel('Cumulative percentage')
plt.grid(True)
......
......@@ -42,7 +42,9 @@ def main(analysisFileName, graphicFileName):
# Create pie chart.
fig1, ax1 = plt.subplots()
ax1.pie(values, labels=labels, shadow=True, explode=(0.1, 0), labeldistance=0.3)
_, texts = ax1.pie(values, labels=labels, shadow=True, explode=(0.1, 0), labeldistance=0.3)
for text in texts:
text.set_fontsize(12)
ax1.axis('equal') # Equal aspect ratio ensures that pie is drawn as a circle.
#Add total sum
......
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