.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "_auto_examples/plot_unit_circle.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr__auto_examples_plot_unit_circle.py: Plot Unit Circle ===================================== :func:`sysplot.plot_unit_circle` draws a circle of radius 1 centered at a given origin. Line color, style, and width default to the grid style from Matplotlib's rcParams. Combined with :func:`sysplot.plot_poles_zeros`, it provides the standard stability boundary for discrete-time pole-zero maps. .. GENERATED FROM PYTHON SOURCE LINES 9-28 .. image-sg:: /_auto_examples/images/sphx_glr_plot_unit_circle_001.png :alt: Unit Circle at (2, 2), Unit Circle with distortex axes :srcset: /_auto_examples/images/sphx_glr_plot_unit_circle_001.png :class: sphx-glr-single-img .. code-block:: Python import matplotlib.pyplot as plt import sysplot as ssp ssp.apply_config() fig, ax = plt.subplots(1, 2) ssp.plot_unit_circle( ax=ax[0], origin=(2, 2), ) ax[0].set(title="Unit Circle at (2, 2)") ax[1].set_ylim(-2, 20) ssp.plot_unit_circle(ax=ax[1], equal_axes=False) ax[1].set(title="Unit Circle with distortex axes") plt.show() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.305 seconds) .. _sphx_glr_download__auto_examples_plot_unit_circle.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_unit_circle.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_unit_circle.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_unit_circle.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_