diff --git a/toolkit/reportSummary/delayDistributionAnalysis.py b/toolkit/reportSummary/delayDistributionAnalysis.py index 035ea834006c9f8001814516fa906c9942ff51c4..c5e403da78714e13faeb74dfdd61101c03dd706b 100644 --- a/toolkit/reportSummary/delayDistributionAnalysis.py +++ b/toolkit/reportSummary/delayDistributionAnalysis.py @@ -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) diff --git a/toolkit/reportSummary/privateMessageAnalysis.py b/toolkit/reportSummary/privateMessageAnalysis.py index e327f50248cf1f8a909a67154fb055819c5f39ee..b46c0e79380a5c5a193dc6be32566a5fcdf1a33c 100644 --- a/toolkit/reportSummary/privateMessageAnalysis.py +++ b/toolkit/reportSummary/privateMessageAnalysis.py @@ -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