From b249da8b774540fbcd34eee20a7a2f8f16d2af36 Mon Sep 17 00:00:00 2001 From: Max Nuding Date: Thu, 13 Jan 2022 13:23:33 +0000 Subject: [PATCH] improved label formatting --- graph.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/graph.py b/graph.py index 76fefa3..144d5d8 100755 --- a/graph.py +++ b/graph.py @@ -36,7 +36,7 @@ for i, j in zip(datenums, data_frame.tempWarmSide1C): plt.plot(datenums, data_frame.tempWarmSide2C, label='Warm 2', color='orangered', marker='x') for i, j in zip(datenums, data_frame.tempWarmSide2C): - ax.annotate(str(round(j, 2)), xy=(i, j), rotation=45) + 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') for i, j in zip(datenums, data_frame.tempCoolSide1C): @@ -44,9 +44,10 @@ for i, j in zip(datenums, data_frame.tempCoolSide1C): plt.plot(datenums, data_frame.tempCoolSide2C, label='Cool 2', color='navy', marker='x') for i, j in zip(datenums, data_frame.tempCoolSide2C): - ax.annotate(str(round(j, 2)), xy=(i, j), rotation=45) + ax.annotate(str(round(j, 2)), xy=(i, j-30), rotation=300) plt.axhline(y=-223, color='darkblue', linestyle=':', label='Operating temperature') +plt.ylim(ymin=-273.15) launch_date = datetime.datetime.fromisoformat('2021-12-25T12:20+00:00') deployment_names = [