.. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_plot_3_4_1_distant_components_short_gaussian.py: ==================================================== Distant Chirps with a Short Gaussian Analysis Window ==================================================== Figure 3.17 from the tutorial. .. image:: /auto_examples/images/sphx_glr_plot_3_4_1_distant_components_short_gaussian_001.png :class: sphx-glr-single-img .. code-block:: default from tftb.generators import fmlin from tftb.processing.cohen import Spectrogram import numpy as np import matplotlib.pyplot as plt sig = fmlin(128, 0, 0.3)[0] + fmlin(128, 0.2, 0.5)[0] window = np.exp(np.log(0.005) * np.linspace(-1, 1, 23) ** 2) spec = Spectrogram(sig, fwindow=window, n_fbins=128) spec.run() spec.plot(show_tf=True, cmap=plt.cm.gray) .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.423 seconds) .. _sphx_glr_download_auto_examples_plot_3_4_1_distant_components_short_gaussian.py: .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: sphx-glr-download :download:`Download Python source code: plot_3_4_1_distant_components_short_gaussian.py ` .. container:: sphx-glr-download :download:`Download Jupyter notebook: plot_3_4_1_distant_components_short_gaussian.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_