Usage¶
Plots¶
All nxviz plot objects take in a Networkx graph object and output a plot object. The following examples will use a randomly generated Networkx graph. The following code uses Networkx’s built-in drawing function.
import networkx as nx
import matplotlib.pyplot as plt
er = nx.erdos_renyi_graph(30, 0.3)
nx.draw(er)
plt.show()
Circos Plots¶
from nxviz.plots import CircosPlot
c = CircosPlot(er)
c.draw()
plt.show()
For a full list of parameters, see the nxviz.plots.CircosPlot
API documentation.
The above is a basic overview of the available plots. For more detailed examples of these plots in action, please see the examples here.