1
파이썬을 사용하여 최대/최소 온도를 플롯하려고합니다. 지금까지 나는 주어진 시간 동안 기록 된 모든 온도만을 표시 할 수있었습니다. 아래는 내가 사용하고있는 코드입니다. 최대 및 최소 범위 만 T_ch
(챔버의 온도)을 캡처하는 제안?온도가 최대/최소 인 플롯
fig905, f905ax = plt.subplots(nrows=4, ncols=4, figsize=(16, 12))
for i in range(1, 5):
for j, sn in enumerate(['DJF', 'MAM', 'JJA', 'SON']):
f905ax[i - 1, j].plot(hr_local_int[(ch_no.values == i) & (season == sn)],
df_flux.loc[(ch_no.values == i) & (season == sn), 'T_ch' +str(i)],
'.', color=color_list[i - 1])
f905ax[i - 1, j].set_xlim((-0.5, 24.))
f905ax[i - 1, j].xaxis.set_major_locator(MultipleLocator(3))
f905ax[i - 1, j].xaxis.set_minor_locator(MultipleLocator(1))
if i == 1:
f905ax[0, j].set_title(sn)
f905ax[i - 1, 0].set_ylabel('ch' + str(i) + ' Temperature (C)')
for j in range(4):
f905ax[3, j - 1].set_xlabel('Hour (PDT, UTC-7)')
fig905.tight_layout()
fig905.savefig(plot_dir + '/ch_plots/Tch_diurnal.png', dpi=300)