.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "gallery/other/plot_bundles.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_gallery_other_plot_bundles.py: Edge strings ============ This example shows how to plot edge strings around a circle. .. GENERATED FROM PYTHON SOURCE LINES 7-28 .. image-sg:: /gallery/other/images/sphx_glr_plot_bundles_001.png :alt: plot bundles :srcset: /gallery/other/images/sphx_glr_plot_bundles_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none [] | .. code-block:: Python import networkx as nx import iplotx as ipx g = nx.scale_free_graph(30) # Remove multi-edges and self-loops for clarity edges = [e[:2] for e in g.edges if (e[0] != e[1]) and (e[2] == 0)] g = nx.from_edgelist(edges) layout = nx.circular_layout(g) ipx.network( g, layout, figsize=(7, 7), aspect=1.0, node_size=10, edge_curved=True, edge_tension=-1, ) .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.075 seconds) .. _sphx_glr_download_gallery_other_plot_bundles.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_bundles.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_bundles.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_bundles.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_