3 import matplotlib.pyplot
as plt
6 filename1 =
"rmsTempProfile" 7 filename2 =
"rlTempProfile" 10 with open(filename1)
as f:
14 entry = line.split(
":")
15 time1.append(float(entry[0]))
16 temp1.append(float(entry[1]))
17 with open(filename2)
as f:
21 entry = line.split(
":")
22 time2.append(float(entry[0]))
23 temp2.append(float(entry[1]))
25 matplotlib.rcParams.update({
'font.size': 22})
26 plt.plot(time1, temp1,
'r', linewidth=3, linestyle='dashed', label="rate-monotonic scheduling")
27 plt.plot(time2, temp2,
'b', linewidth=2, label=
"reinforcement learning")
28 plt.legend(loc=
'lower right')
30 plt.ylabel(
"temperature (Celsius)")