Spector-psd-color

Dear all,

I am trying to plot a 48-hours spectrogram and have 2 subplots for the same spectro but different color scales to highlight different patterns. I also don’t know how I can control the min/max of my color scale.

Cheers

st2=read(‘2023075JSP2EHZ’)
st2+=read(‘2023076**JSP2*EHZ’)
st2.merge(method=1)
tr=st2[0]
tr1 = np.arange(tr.stats.npts) / tr.stats.sampling_rate
fig, (ax1, ax2,ax3) = plt.subplots(3, 1,figsize=(16, 12))ax1.plot(tr1, tr.data, ‘k’)
ax1.set_xlim(0,160000)
st2[0].spectrogram(log=False,show=True, cmap=‘plasma’, dbscale=True,clip=[0.0, 1], axes=ax2)
ax2.set_ylim((1,80))
st2[0].spectrogram(log=False,show=True, cmap=‘plasma’, dbscale=True,clip=[0.0, 1], axes=ax3)
ax3.set_ylim((1,15))