I'm new to python so I hope my question is good enough, I'm trying to create two subplots based on two different data frames. My problem is that when I try to define titles and xlim it works only on one plot.
This is my script:
fig, axes = plt.subplots(1,2,figsize=(18,6))
#Original data
df_codes.loc[:,float_cols_gb].T.plot(ax=axes[0])
plt.title('Original Data', size=(20))
plt.ylabel('Reflectence', size=(14))
plt.xlabel('Wavelength', size=(14))
plt.xlim(410,1004)
#filter data
df_bl_codes.loc[:,float_cols_bl].T.plot(ax=axes[1])
plt.title( 'Filter', size=(20))
plt.ylabel('Reflectence', size=(14))
plt.xlabel('Wavelength', size=(14))
plt.xlim(410,1004)
I cannot attach image as i'm new user here, but the result is two plots, one gets the titles and the xlim (the one in column 1) and one stays without the ttiles and xlim (the one in column 0).
My end goal: to applly the xlimand also the titles to each plot in the subplots.