Template
fix OILP plot
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user