Multiarc#

This example shows how to plot a bunch of arcs.

plot multiarc
[<iplotx.network.NetworkArtist object at 0x7dd1a4fb9310>]

import igraph as ig
import matplotlib.pyplot as plt
import iplotx as ipx

g = ig.Graph.Ring(4, directed=True)
layout = [[1, 0], [0, 1], [-1, 0], [0, -1]]

ipx.network(
    g,
    layout,
    vertex_labels=True,
    aspect=1,
    edge_tension=1,
    edge_arc=True,
    edge_arrow={"marker": ">","width": 6},
    edge_linewidth=3,
)

Total running time of the script: (0 minutes 0.040 seconds)

Gallery generated by Sphinx-Gallery