Note
Go to the end to download the full example code.
Basic network plotting#
This example shows how to plot a simple graph with iplotx.

[<iplotx.network.NetworkArtist object at 0x7dd1fa0070e0>]
import igraph as ig
import matplotlib.pyplot as plt
import iplotx as ipx
g = ig.Graph.Ring(5)
layout = g.layout("circle").coords
fig, ax = plt.subplots(figsize=(3, 3))
ipx.plot(g, ax=ax, layout=layout)
Total running time of the script: (0 minutes 0.209 seconds)