.. 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_1_3_1_chirp_wv.py: ==================================== Wigner-Ville Distribution of a Chirp ==================================== Construct a chirp signal and visualize its `Wigner-Ville distribution `_. Figure 1.3 from the tutorial. .. image:: /auto_examples/images/sphx_glr_plot_1_3_1_chirp_wv_001.png :class: sphx-glr-single-img .. code-block:: default from tftb.generators import fmlin from tftb.processing.cohen import WignerVilleDistribution n_points = 128 fmin, fmax = 0.0, 0.5 signal, _ = fmlin(n_points, fmin, fmax) # Wigner-Ville distribution of the chirp. wvd = WignerVilleDistribution(signal) wvd.run() wvd.plot(kind='contour', extent=[0, n_points, fmin, fmax]) .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.201 seconds) .. _sphx_glr_download_auto_examples_plot_1_3_1_chirp_wv.py: .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: sphx-glr-download :download:`Download Python source code: plot_1_3_1_chirp_wv.py ` .. container:: sphx-glr-download :download:`Download Jupyter notebook: plot_1_3_1_chirp_wv.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_