.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "gallery/style/plot_waypoints.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_waypoints.py: Edge waypoints ============== This example demonstrates the use of edge waypoints. .. GENERATED FROM PYTHON SOURCE LINES 7-37 .. image-sg:: /gallery/style/images/sphx_glr_plot_waypoints_001.png :alt: plot waypoints :srcset: /gallery/style/images/sphx_glr_plot_waypoints_001.png :class: sphx-glr-single-img .. code-block:: Python import matplotlib.pyplot as plt import numpy as np import iplotx as ipx g = { "edges": [ ("A", "B"), ("B", "C"), ("B", "D"), ("A", "E"), ], } layout = { "A": (0, 0), "B": (0, 1), "C": (1, 2), "D": (0, 2), "E": (-1, 1), } fig, ax = plt.subplots() ipx.network( g, layout=layout, ax=ax, vertex_labels=True, edge_waypoints=["none", [(1, 1), (0.5, 1.5), (1, 1.5)], "none", "none"], ) plt.ion(); plt.show() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.036 seconds) .. _sphx_glr_download_gallery_style_plot_waypoints.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_waypoints.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_waypoints.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_waypoints.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_