.. 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.py: =========================== Linear Frequency Modulation =========================== This example shows how PyTFTB is used to generate a signal with linear frequency modulation. Such a signal is also called a `chirp `_. Figure 1.1 from the tutorial. .. image:: /auto_examples/images/sphx_glr_plot_1_3_1_chirp_001.png :class: sphx-glr-single-img .. code-block:: default from tftb.generators import fmlin import matplotlib.pyplot as plt import numpy as np # Generate a chirp signal n_points = 128 fmin, fmax = 0.0, 0.5 signal, _ = fmlin(n_points, fmin, fmax) plt.plot(np.real(signal)) plt.xlim(0, n_points) plt.title('Linear Frequency Modulation') plt.ylabel('Real Part') plt.xlabel('Time') plt.grid() plt.show() .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.242 seconds) .. _sphx_glr_download_auto_examples_plot_1_3_1_chirp.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.py ` .. container:: sphx-glr-download :download:`Download Jupyter notebook: plot_1_3_1_chirp.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_