.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "gallery/style/plot_filled_edges.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_style_plot_filled_edges.py: Filled edges ============ Most of the time edges have no "filling", but what if they did? Then you would get this crazy example. .. tip:: Edges are not supposed to be filled, use at your own risk! .. GENERATED FROM PYTHON SOURCE LINES 11-37 .. image-sg:: /gallery/style/images/sphx_glr_plot_filled_edges_001.png :alt: plot filled edges :srcset: /gallery/style/images/sphx_glr_plot_filled_edges_001.png :class: sphx-glr-single-img .. code-block:: Python import networkx as nx import matplotlib.pyplot as plt import iplotx as ipx g = nx.Graph() g.add_edges_from([(0, 1), (1, 2), (0, 2)]) layout = [(0, 0), (1, 0), (2, 0)] artist = ipx.network( g, layout, edge_arc=True, edge_tension=-1, vertex_facecolor="#005F73", vertex_edgecolor="#001219", vertex_linewidth=2, )[0] edge_artist = artist.get_edges() edge_artist.set_facecolors([ "#94D2BD66", "#EE9B0066", "#AE201266", ]) .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.032 seconds) .. _sphx_glr_download_gallery_style_plot_filled_edges.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_filled_edges.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_filled_edges.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_filled_edges.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_