matplotlib newbie here, I'm making temperature plots for 4 different locations, I managed to plot them individually with the following code:
import matplotlib.pyplot as plt
fig, ax1 = plt.subplots(1, 1, sharex=True)
ax1.fill_between([i for i in range(1,367)], min_temp, max_temp, color='orange',alpha=0.3)
plt.plot(mean_temp, 'r',)
plt.ylabel('Temperature ($^\circ$C)')
plt.xlabel('Julian day')
plt.title('Location A')
plt.xlim(1, 366)
I would like to plot a grid with dimensions 2x2, which I usually know how to do, with plt.subplot()
, however, due to the fact that I already used plt.subplots()
on the line above this is making me very confused on how to proceed