.. _sphx_glr_gallery_plot_basics.py: A dead simple network --------------------- The simplest way to plot a graphe ever. And yet it looks cool! .. image:: /gallery/images/sphx_glr_plot_basics_001.png :align: center .. code-block:: python import networkx as nx import matplotlib.pyplot as plt from grave import plot_network # Generating a networkx graph graph = nx.barbell_graph(10, 14) fig, ax = plt.subplots() plot_network(graph, ax=ax) plt.show() **Total running time of the script:** ( 0 minutes 0.063 seconds) .. only :: html .. container:: sphx-glr-footer .. container:: sphx-glr-download :download:`Download Python source code: plot_basics.py ` .. container:: sphx-glr-download :download:`Download Jupyter notebook: plot_basics.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_