.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "sample_data/network.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_network.py: HyDAMO Network ============== This is small dataset containing elevation points, cross-section profiles and center lines for a small stream network. It is simplified HyDAMO data, the standardized data model for surface water in the Netherlands. .. GENERATED FROM PYTHON SOURCE LINES 11-32 .. image-sg:: /sample_data/images/sphx_glr_network_001.png :alt: network :srcset: /sample_data/images/sphx_glr_network_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none (393140.0, 393240.0) | .. code-block:: Python import matplotlib.patches as patches import matplotlib.pyplot as plt import xugrid lines, profiles, points = xugrid.data.hydamo_network() xy = (140_270.0, 393_140.0) dx = dy = 100.0 fig, (ax0, ax1) = plt.subplots(ncols=2, figsize=(10, 5)) lines.plot(ax=ax0) profiles.plot(ax=ax0, color="red") ax0.add_patch(patches.Rectangle(xy, dx, dy, fill=False)) lines.plot(ax=ax1, column="type") profiles.plot(ax=ax1, color="red") points.plot(ax=ax1, color="black") ax1.set_xlim(xy[0], xy[0] + dx) ax1.set_ylim(xy[1], xy[1] + dy) .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.261 seconds) .. _sphx_glr_download_sample_data_network.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: network.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: network.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: network.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_