@@ -45,6 +45,20 @@ def workingAnimation():
45
45
animationThread = Thread (target = workingAnimation )
46
46
animationThread .start ()
47
47
48
+ fig = plt .figure ()
49
+ fig .set_facecolor ("black" )
50
+ ax = plt .axes ()
51
+ ax .set_facecolor ("black" )
52
+ ax .spines ["bottom" ].set_color ("white" )
53
+ ax .spines ["top" ].set_color ("white" )
54
+ ax .spines ["left" ].set_color ("white" )
55
+ ax .spines ["right" ].set_color ("white" )
56
+ ax .tick_params (axis = "x" , colors = "white" )
57
+ ax .tick_params (axis = "y" , colors = "white" )
58
+ ax .xaxis .label .set_color ("white" )
59
+ ax .yaxis .label .set_color ("white" )
60
+ ax .title .set_color ("white" )
61
+
48
62
# Plot average forces
49
63
if not os .path .exists ("../output/csv/averageForces.csv" ):
50
64
print ("Error: couldn't find averageForces.csv" )
@@ -54,14 +68,28 @@ def workingAnimation():
54
68
averageForces = list (reader )
55
69
averageForces = list (zip (* averageForces ))
56
70
57
- plt .plot (averageForces [0 ], averageForces [1 ])
71
+ plt .plot (averageForces [0 ], averageForces [1 ], color = "#A90092" )
58
72
plt .xlabel ("Timestep" )
59
73
plt .ylabel ("Average Force (N)" )
60
74
plt .title ("Average Force Applied to Actor" )
61
75
plt .savefig ("../output/images/averageForcesGraph.png" )
62
76
63
77
plt .clf ()
64
78
79
+ fig = plt .figure ()
80
+ fig .set_facecolor ("black" )
81
+ ax = plt .axes ()
82
+ ax .set_facecolor ("black" )
83
+ ax .spines ["bottom" ].set_color ("white" )
84
+ ax .spines ["top" ].set_color ("white" )
85
+ ax .spines ["left" ].set_color ("white" )
86
+ ax .spines ["right" ].set_color ("white" )
87
+ ax .tick_params (axis = "x" , colors = "white" )
88
+ ax .tick_params (axis = "y" , colors = "white" )
89
+ ax .xaxis .label .set_color ("white" )
90
+ ax .yaxis .label .set_color ("white" )
91
+ ax .title .set_color ("white" )
92
+
65
93
# Plot kernel execution times
66
94
if not os .path .exists ("../output/csv/kernelDurations.csv" ):
67
95
print ("Error: couldn't find kernelDurations.csv" )
@@ -71,14 +99,28 @@ def workingAnimation():
71
99
kernelDurations = list (reader )
72
100
kernelDurations = list (zip (* kernelDurations ))
73
101
74
- plt .plot (kernelDurations [0 ], kernelDurations [1 ], linewidth = 0.5 )
102
+ plt .plot (kernelDurations [0 ], kernelDurations [1 ], linewidth = 0.5 , color = "#FBFF00" )
75
103
plt .xlabel ("Kernel Number" )
76
104
plt .ylabel ("Execution Time (μs)" )
77
105
plt .title ("Kernel Execution Times" )
78
106
plt .savefig ("../output/images/kernelDurationsGraph.png" )
79
107
80
108
plt .clf ()
81
109
110
+ fig = plt .figure ()
111
+ fig .set_facecolor ("black" )
112
+ ax = plt .axes ()
113
+ ax .set_facecolor ("black" )
114
+ ax .spines ["bottom" ].set_color ("white" )
115
+ ax .spines ["top" ].set_color ("white" )
116
+ ax .spines ["left" ].set_color ("white" )
117
+ ax .spines ["right" ].set_color ("white" )
118
+ ax .tick_params (axis = "x" , colors = "white" )
119
+ ax .tick_params (axis = "y" , colors = "white" )
120
+ ax .xaxis .label .set_color ("white" )
121
+ ax .yaxis .label .set_color ("white" )
122
+ ax .title .set_color ("white" )
123
+
82
124
# Plot actor arrival times
83
125
if not os .path .exists ("../output/csv/destinationTimes.csv" ):
84
126
print ("Error: couldn't find distinationTimes.csv" )
@@ -104,7 +146,9 @@ def workingAnimation():
104
146
alteredDestinationTimes [1 ][x ] += 1
105
147
106
148
if len (destinationTimes ) > 0 :
107
- plt .plot (alteredDestinationTimes [0 ], alteredDestinationTimes [1 ])
149
+ plt .plot (
150
+ alteredDestinationTimes [0 ], alteredDestinationTimes [1 ], color = "#22AEE7"
151
+ )
108
152
plt .xlabel ("No. of Actors at Destination" )
109
153
plt .ylabel ("Time (ms)" )
110
154
plt .title ("Actor Arrival Times at Destination" )
0 commit comments