- kmapper.draw_matplotlib(g, ax=None, fig=None, layout='kk')¶
Draw the graph using NetworkX drawing functionality.
g (graph object returned by
map) – The Mapper graph as constructed by
ax (matplotlib Axes object) – A matplotlib axes object to plot graph on. If none, then use
fig (matplotlib Figure object) – A matplotlib Figure object to plot graph on. If none, then use
layout (string) –
Key for which of NetworkX’s layout functions. Key options implemented are:
>>> "kk": nx.kamada_kawai_layout, >>> "spring": nx.spring_layout, >>> "bi": nx.bipartite_layout, >>> "circ": nx.circular_layout, >>> "spect": nx.spectral_layout
nodes (nx node set object list) – List of nodes constructed with Networkx
draw_networkx_nodes. This can be used to further customize node attributes.