.. 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_4_1_1_wv_atoms.py: =========================================== Wigner-Ville Distribution of Gaussian Atoms =========================================== This example shows the WV distribution of four Gaussian atoms, each localized at the corner of a rectangle in the time-frequency plane. The distribution does show the four signal terms, as well as six interference terms. Figure 4.4 from the tutorial. .. image:: /auto_examples/images/sphx_glr_plot_4_1_1_wv_atoms_001.png :class: sphx-glr-single-img .. code-block:: default import numpy as np from tftb.generators import atoms from tftb.processing import WignerVilleDistribution x = np.array([[32, .15, 20, 1], [96, .15, 20, 1], [32, .35, 20, 1], [96, .35, 20, 1]]) g = atoms(128, x) spec = WignerVilleDistribution(g) spec.run() spec.plot(kind="contour", show_tf=True, scale="log") .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.845 seconds) .. _sphx_glr_download_auto_examples_plot_4_1_1_wv_atoms.py: .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: sphx-glr-download :download:`Download Python source code: plot_4_1_1_wv_atoms.py ` .. container:: sphx-glr-download :download:`Download Jupyter notebook: plot_4_1_1_wv_atoms.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_