some more work on figure caption

This commit is contained in:
2026-01-30 18:39:51 +01:00
parent 2a3e7ebd43
commit 30742850d8
2 changed files with 6 additions and 6 deletions

View File

@@ -501,7 +501,7 @@ When stimulating with both foreign signals simultaneously, additional peaks appe
\begin{figure*}[p]
\includegraphics[width=\columnwidth]{regimes}
\caption{\label{fig:regimes} Linear and nonlinear responses of a model P-unit in a three-fish setting in dependence on stimulus amplitudes. The model P-unit (identifier ``2018-05-08-ad'') was stimulated with two sine waves of equal amplitude (contrast) at difference frequencies $\Delta f_1=40$\,Hz and $\Delta f_2=228$\,Hz relative the receiver's EOD frequency $f_{EOD}=656$\,Hz. $\Delta f_2$ was set to match the baseline firing rate $r$ of the P-unit. \figitem{A--D} Top row: the stimulus, an amplitude modulation of the receiver's EOD resulting from the stimulation with the two sine waves. The contrasts of both beats increase from \panel{A} to \panel{D} as indicated. Second row: Spike raster of the model P-unit response. Third row: average firing rate and, bottom row: power spectrum estimated from 1000 trials of spike trains in response to a 26.2\,s long stimulus. \figitem{A} At low stimulus contrasts the response is linear. The main peaks in the response spectrum are at the two stimulating beat frequencies (green and purple circles), the latter enhancing the peak at baseline firig rate (blue). The largest peak, however, is always the one at the EOD frequency of the receiver (black), reflecting the locking of P-unit spikes to the receiver's own EOD. The peak at $f_{EOD}$ is also flanked by harmonics of $\Delta f_1$ (gray triangles), where $f_{EOD} + \Delta f_1 = f_1$, the EOD frequency of the first fish. \figitem{B} At moderately higher stimulus contrast, the peaks in the response spectrum at the two beat frequencies become larger. In addition, two peaks at $f_{EOD} - \Delta f_2$ and $f_{EOD} + \Delta f_2$ appear (blue diamonds), the latter is the EOD frequency of the second fish, $f_2$. \figitem{C} At intermediate stimulus contrasts, nonlinear responses start to appear at the sum and the difference of the stimulus frequencies (orange and red). Additional peaks appear at harmonics of $\Delta f_1$ (small green circles) and at $f_{EOD} \pm \Delta f_2 \pm \Delta f_1$ (purple squares). \figitem{D} At higher stimulus contrasts many more peaks appear in the power spectrum. Most of them are interactions of $f_{EOD}$ and $\Delta f_2$ with harmonics of $\Delta f_1$ ($k=1, 2, ...$), since the cell responds strongest to $\Delta f_1$. \figitem{E} Amplitude of the linear (at $\Delta f_1$ and $\Delta f_2$) and nonlinear (at $\Delta f_2 - \Delta f_1$ and $\Delta f_1 + \Delta f_2$) responses of the model P-unit as a function of beat contrast (thick lines). Thin lines indicate the initial linear and quadratic dependence on stimulus amplitude for the linear and nonlinear responses, respectively. In the linear regime, below a stimulus contrast of about 1.2\,\% (left vertical line), the only peaks in the response spectrum are at the stimulus frequencies. In the weakly nonlinear regime up to a contrast of about 3.5\,\% peaks arise at the sum and the difference of the two stimulus frequencies. At stronger stimulation the amplitudes of these nonlinear responses deviate from the quadratic dependency on stimulus contrast.}
\caption{\label{fig:regimes} Linear and nonlinear responses of a model P-unit in a three-fish setting in dependence on stimulus amplitudes. The model P-unit (identifier ``2018-05-08-ad'') was stimulated with two sine waves of equal amplitude (contrast) at difference frequencies $\Delta f_1=40$\,Hz and $\Delta f_2=228$\,Hz relative the receiver's EOD frequency $f_{EOD}=656$\,Hz. $\Delta f_2$ was set to match the baseline firing rate $r$ of the P-unit. \figitem{A--D} Top row: the stimulus, an amplitude modulation of the receiver's EOD resulting from the stimulation with the two sine waves. The contrasts of both beats increase from \panel{A} to \panel{D} as indicated. Second row: Spike raster of the model P-unit response. Third row: average firing rate and, bottom row: power spectrum estimated from 1000 trials of spike trains in response to a 26.2\,s long stimulus. \figitem{A} At low stimulus contrasts the response to the two beat frequencies is linear. These frequencies are present in the response spectrum (green and purple circles), the peak at $\Delta f_2$ (purple) enhances the peak at baseline firig rate (blue). The largest peak, however, is always the one at the EOD frequency of the receiver (black), reflecting the locking of P-unit spikes to the receiver's own EOD. The peak at $f_{EOD}$ is also flanked by harmonics of $\Delta f_1$ (gray triangles), where $f_{EOD} + \Delta f_1 = f_1$ is the EOD frequency of the first fish. \figitem{B} At moderately higher stimulus contrast, the peaks in the response spectrum at the two beat frequencies become larger. In addition, two peaks at $f_{EOD} - \Delta f_2$ and $f_{EOD} + \Delta f_2$ appear (blue diamonds), the latter is the EOD frequency of the second fish, $f_2$. These peaks indicate nonlinear processes acting on the three EOD frequencies from which the beat frequencies are generated. \figitem{C} At intermediate stimulus contrasts, nonlinear responses start to appear at the sum and the difference of the beat frequencies (orange and red circles). Similarly, side peaks appear at $\pm \Delta f_1$ around $f_{EOD} \pm \Delta f_2$ (purple squares) as well as harmonics of $\Delta f_1$ (small green circles). \figitem{D} At higher stimulus contrasts many more peaks appear in the power spectrum. Most of them are interactions of $f_{EOD}$ and $\Delta f_2$ with harmonics of $\Delta f_1$ ($k=1, 2, ...$), since the cell responds strongest to $\Delta f_1$. \figitem{E} Amplitude of the linear (at $\Delta f_1$ and $\Delta f_2$) and nonlinear (at $\Delta f_2 - \Delta f_1$ and $\Delta f_1 + \Delta f_2$) responses of the model P-unit as a function of beat contrast (thick lines). Thin lines indicate the initial linear and quadratic dependence on stimulus amplitude for the linear and nonlinear responses, respectively. In the linear regime, below a stimulus contrast of about 1.2\,\% (left vertical line), the only peaks in the response spectrum are at the stimulus frequencies. In the weakly nonlinear regime up to a contrast of about 3.5\,\% peaks arise at the sum and the difference of the two stimulus frequencies. At stronger stimulation the amplitudes of these nonlinear responses deviate from the quadratic dependency on stimulus contrast.}
\end{figure*}
The stimuli used in \figref{fig:twobeats} had the same not-small amplitude resulting in AM contrasts of 10\,\% that evoke strong modulations in a P-unit's firing rate response. Whether this stimulus condition falls into the weakly nonlinear regime as in \citet{Voronenko2017} is not clear. In order to illustrate how the responses to two beat frequencies develop over a range of amplitudes we use a stochastic leaky-integrate-and-fire (LIF) based P-unit model fitted to a specific electrophysiologically measured cell \citep{Barayeu2023}.

View File

@@ -243,7 +243,7 @@ def plot_psd(ax, s, path, contrast, spikes, nfft, dt, beatf1, beatf2, eodf):
label=r'$f_{EOD}$', clip_on=False, zorder=50, **s.psFEOD)
if contrast < alphas[1]:
ax.text(eodf + 40, -2, '$f_{EOD}$', va='center', color=s.psFEOD['color'])
ax.text(eodf + beatf1 + 30, -36, '$f_1$', color=s.psFEOD['color'])
ax.text(eodf + beatf1 + 5, -33, '$f_1$', color=s.psFEOD['color'])
#ax.text(beatf1 + 10, -30, r'$\Delta f_1$', ha='center', color=s.psF01['color'])
ax.text(beatf2 + 10, -24, '$r$', ha='center', color=s.psF0['color'])
#ax.text(beatf2 + 10, -16, r'$\Delta f_2$', ha='center', color=s.psF02['color'])
@@ -253,10 +253,6 @@ def plot_psd(ax, s, path, contrast, spikes, nfft, dt, beatf1, beatf2, eodf):
label=r'$\Delta f_1$', clip_on=False, zorder=50, **s.psF01)
ax.plot(beatf2, decibel(peak_ampl(freqs, psd, beatf2)) + 2*offs + 2,
label=r'$\Delta f_2$', clip_on=False, zorder=50, **s.psF02)
ax.plot(beatf2 - beatf1, decibel(peak_ampl(freqs, psd, beatf2 - beatf1)) + offs,
label=r'$\Delta f_2 - \Delta f_1$', clip_on=False, zorder=50, **s.psF01_2)
ax.plot(beatf1 + beatf2, decibel(peak_ampl(freqs, psd, beatf1 + beatf2)) + offs,
label=r'$\Delta f_1 + \Delta f_2$', clip_on=False, zorder=50, **s.psF012)
ax.plot(eodf + beatf1, decibel(peak_ampl(freqs, psd, eodf + beatf1)) + offsm,
label=r'$f_{EOD} \pm k \Delta f_1$', zorder=40, **s.psFEODm)
ax.plot(eodf - beatf1, decibel(peak_ampl(freqs, psd, eodf - beatf1)) + offsm, **s.psFEODm)
@@ -268,6 +264,10 @@ def plot_psd(ax, s, path, contrast, spikes, nfft, dt, beatf1, beatf2, eodf):
if contrast < alphas[2]:
ax.text(eodf + beatf2 + 10, -25, '$f_2$', ha='center', color=s.psF0['color'])
if contrast >= alphas[2]:
ax.plot(beatf2 - beatf1, decibel(peak_ampl(freqs, psd, beatf2 - beatf1)) + offs,
label=r'$\Delta f_2 - \Delta f_1$', clip_on=False, zorder=50, **s.psF01_2)
ax.plot(beatf1 + beatf2, decibel(peak_ampl(freqs, psd, beatf1 + beatf2)) + offs,
label=r'$\Delta f_1 + \Delta f_2$', clip_on=False, zorder=50, **s.psF012)
ax.plot(2*beatf1, decibel(peak_ampl(freqs, psd, 2*beatf1)) + offsm,
label=r'$k\Delta f_1$', zorder=40, **s.psF01m)
ax.plot(eodf + 2*beatf1, decibel(peak_ampl(freqs, psd, eodf + 2*beatf1)) + offsm, zorder=40, **s.psFEODm)