I have created a plot with 4 subplots and each subplot will show a different type of analyses on some infrasound data. This the code I have used to create the subplots:
gs = gridspec.GridSpec(2, 2, width_ratios=[1,1], height_ratios=[1,1])
ax1 = plt.subplot(gs[0])
ax2 = plt.subplot(gs[1])
ax3 = plt.subplot(gs[2])
ax4 = plt.subplot(gs[3])
So far I have been able to input what I have wanted into the subplots, but I want to be able to input a pandas DataFrame plot into ax3 and I can't seem to do it. I have already written the pandas program and was just going to insert it into the larger script so it was shown in the subplot.
This is the line of code that is used to plot the pandas DataFrame plot:
df.plot(subplots=True, sharey=True, ylim=(0,(y_max*1.5)))