.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/states/plot_sync.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_states_plot_sync.py: Sync state ========== In a synchronized state all oscillators share the same phase. The order parameter R1 = 1. .. GENERATED FROM PYTHON SOURCE LINES 8-20 .. image-sg:: /auto_examples/states/images/sphx_glr_plot_sync_001.png :alt: plot sync :srcset: /auto_examples/states/images/sphx_glr_plot_sync_001.png :class: sphx-glr-single-img .. code-block:: Python import matplotlib.pyplot as plt import hypersynchronization as hs N = 20 theta = hs.generate_state(N, kind="sync", noise=0, seed=0) fig, axes = plt.subplots(1, 2, figsize=(6, 3)) hs.plot_phases(theta, ax=axes[0]) hs.plot_phases_line(theta, ax=axes[1]) plt.tight_layout() plt.show() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.061 seconds) .. _sphx_glr_download_auto_examples_states_plot_sync.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_sync.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_sync.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_sync.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_