.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "gallery/style/plot_elements.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_elements.py: Network element showroom ======================== This example showcases various plot elements that can be styled in ``iplotx``. .. GENERATED FROM PYTHON SOURCE LINES 7-44 .. image-sg:: /gallery/style/images/sphx_glr_plot_elements_001.png :alt: plot elements :srcset: /gallery/style/images/sphx_glr_plot_elements_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none [] | .. code-block:: Python import matplotlib.pyplot as plt import iplotx as ipx network = { "edges": [(0, 1), (1, 2), (2, 3), (3, 0), (2, 2)], "directed": True, } layout = [(0, 0), (1, 0), (1, 1), (0, 1)] fig, ax = plt.subplots(figsize=(4.3, 4.3)) ipx.network( network, layout, ax=ax, vertex_labels=["Vertex\nlabel"] + [""] * 3, edge_labels=["", "", "Edge\nlabel", "", ""], vertex_label_bbox_edgecolor="k", vertex_label_bbox_linewidth=1.5, vertex_label_bbox_facecolor="steelblue", vertex_label_bbox_alpha=0.5, edge_label_bbox_edgecolor="k", edge_label_bbox_linewidth=1.5, edge_label_bbox_facecolor="tomato", edge_color=["k", "tomato", "k", "k", "k"], edge_arrow_color=["k", "darkred", "k", "k", "k"], edge_linewidth=[2, 4, 2, 2, 2], vertex_facecolor=["w"] * 3 + ["steelblue"], vertex_edgecolor="k", vertex_linewidth=2, vertex_size=[50, 25, 25, 50], vertex_marker="o", vertex_label_color="k", edge_curved=True, edge_tension=[0, 1.25, 0, 3.5], margins=(0, 0.08), ) .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.040 seconds) .. _sphx_glr_download_gallery_style_plot_elements.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_elements.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_elements.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_elements.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_