.. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_gallery_plot_defaults.py: Using another style =================== In this example, we show how to use another default Matplotlib style. .. image:: /gallery/images/sphx_glr_plot_defaults_001.png :class: sphx-glr-single-img .. code-block:: python import networkx as nx import matplotlib.pyplot as plt from grave import plot_network network = nx.binomial_graph(50, .05) fig, ax_mat = plt.subplots(ncols=2) plot_network(network, ax=ax_mat[0]) ax_mat[0].set_axis_on() with plt.style.context(('ggplot')): plot_network(network, ax=ax_mat[1]) ax_mat[1].set_axis_on() for ax in ax_mat: ax.set_axis_on() ax.tick_params(which='both', bottom=False, top=False, left=False, right=False, labelbottom=False, labelleft=False) plt.show() **Total running time of the script:** ( 0 minutes 0.099 seconds) .. _sphx_glr_download_gallery_plot_defaults.py: .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: sphx-glr-download :download:`Download Python source code: plot_defaults.py ` .. container:: sphx-glr-download :download:`Download Jupyter notebook: plot_defaults.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_