.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/visualize/plot_phases_plots.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_visualize_plot_phases_plots.py: Phase distribution plots ======================== :func:`~hypersynchronization.plot_phases` shows the phase distribution on a unit circle. :func:`~hypersynchronization.plot_phases_line` shows phase values ordered by node index, making the state structure easier to read. .. GENERATED FROM PYTHON SOURCE LINES 9-26 .. image-sg:: /auto_examples/visualize/images/sphx_glr_plot_phases_plots_001.png :alt: plot_phases, plot_phases_line :srcset: /auto_examples/visualize/images/sphx_glr_plot_phases_plots_001.png :class: sphx-glr-single-img .. code-block:: Python import matplotlib.pyplot as plt import hypersynchronization as hs N = 20 theta = hs.generate_q_twisted_state(N, q=1, noise=1e-2, seed=0) fig, axes = plt.subplots(1, 2, figsize=(6, 3)) hs.plot_phases(theta, ax=axes[0]) axes[0].set_title("plot_phases") hs.plot_phases_line(theta, ax=axes[1]) axes[1].set_title("plot_phases_line") plt.tight_layout() plt.show() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.078 seconds) .. _sphx_glr_download_auto_examples_visualize_plot_phases_plots.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_phases_plots.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_phases_plots.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_phases_plots.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_