Big curves#

This example showcases the ability of iplotx to curve edges at a certain tension setting.

plot big curves
[<iplotx.network.NetworkArtist object at 0x7af3e8d851d0>]

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


g = ig.Graph(edges=[(0, 1), (0, 0)])
layout = [[0, 0], [1, 0]]

fig, ax = plt.subplots()
ipx.plot(
    g,
    layout=layout,
    ax=ax,
    edge_curved=True,
    edge_tension=10,
    edge_looptension=10,
)

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

Gallery generated by Sphinx-Gallery