fix OILP plot

This commit is contained in:
ken
2025-09-09 22:17:35 -07:00
parent 6f351ed034
commit 78111cd586
+5 -3
View File
@@ -309,10 +309,12 @@ def plot_OIL(df):
df.plot(y='OILP', xlim=(sv+50,len(df)), ax=axs[1])
plt.ylabel("PSI")
ax=plt.gca()
tick_labels=ax.xaxis.major.formatter.seq
ax.xaxis.major.formatter.seq = [label.split()[-1] if label else "" for label in tick_labels]
ax.xaxis.set_major_formatter(x_format(df))
plt.xticks(rotation=30)
plt.xlabel("Time (MM:SS)")
if df.index[-1] > pd.Timedelta("01:00:00"):
plt.xlabel("Elapsed Time (HH:MM:SS)")
else:
plt.xlabel("Elapsed Time (MM:SS)")
axs[0].set_title(FLIGHTDATE)
if SAVEPLOTS: savefig(SAVEPATH+FLIGHTDATE+"/"+FLIGHTDATE+"_OIL.png")