.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "sample_data/xoxo.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_sample_data_xoxo.py: Xoxo ==== This is a small unstructured grid consisting of two unconnected parts. This is downloaded via `xugrid.data.xoxo()`. The topology data is downloaded to a local directory if it's not there already. .. GENERATED FROM PYTHON SOURCE LINES 9-21 .. image-sg:: /sample_data/images/sphx_glr_xoxo_001.png :alt: xoxo :srcset: /sample_data/images/sphx_glr_xoxo_001.png :class: sphx-glr-single-img .. code-block:: Python import matplotlib.pyplot as plt import xugrid grid = xugrid.data.xoxo() fig, ax = plt.subplots() xugrid.plot.line(grid, ax=ax, color="#bd0d1f") ax.set_xlim([0.0, 100.0]) ax.set_ylim([0.0, 85.0]) ax.set_aspect(1) .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.046 seconds) .. _sphx_glr_download_sample_data_xoxo.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: xoxo.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: xoxo.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: xoxo.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_