Improved legend
This commit is contained in:
parent
90be24d021
commit
ae653f30ab
25
graph.py
25
graph.py
@ -65,19 +65,36 @@ ax.xaxis.set_major_formatter(xfmt)
|
||||
ax.set_ylabel('Temperature [°C]')
|
||||
|
||||
# Data
|
||||
plt.plot(datenums, data_frame.tempWarmSide1C, label='Warm 1', color='orange', marker='x')
|
||||
plt.plot(
|
||||
datenums,
|
||||
data_frame.tempWarmSide1C,
|
||||
label='Sunshield UPS\nAverage Temperature (a)',
|
||||
color='orange',
|
||||
marker='x'
|
||||
)
|
||||
for i, j in zip(datenums, data_frame.tempWarmSide1C):
|
||||
ax.annotate(str(round(j, 2)), xy=(i, j), rotation=45)
|
||||
|
||||
plt.plot(datenums, data_frame.tempWarmSide2C, label='Warm 2', color='orangered', marker='x')
|
||||
plt.plot(
|
||||
datenums,
|
||||
data_frame.tempWarmSide2C,
|
||||
label='Spacecraft Equipment Panel\nAverage Temperature (b)',
|
||||
color='orangered',
|
||||
marker='x'
|
||||
)
|
||||
for i, j in zip(datenums, data_frame.tempWarmSide2C):
|
||||
ax.annotate(str(round(j, 2)), xy=(i, j-30), rotation=300)
|
||||
|
||||
plt.plot(datenums, data_frame.tempCoolSide1C, label='Cool 1', color='blue', marker='x')
|
||||
plt.plot(
|
||||
datenums,
|
||||
data_frame.tempCoolSide1C,
|
||||
label='Primary Mirror\nAverage Temperature (c)',
|
||||
color='blue',
|
||||
marker='x')
|
||||
for i, j in zip(datenums, data_frame.tempCoolSide1C):
|
||||
ax.annotate(str(round(j, 2)), xy=(i, j), rotation=45)
|
||||
|
||||
plt.plot(datenums, data_frame.tempCoolSide2C, label='Cool 2', color='navy', marker='x')
|
||||
plt.plot(datenums, data_frame.tempCoolSide2C, label='Instrument Radiator\nTemperature', color='navy', marker='x')
|
||||
for i, j in zip(datenums, data_frame.tempCoolSide2C):
|
||||
ax.annotate(str(round(j, 2)), xy=(i, j-30), rotation=300)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user