.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples/datasets/plot_ice_margin.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_examples_datasets_plot_ice_margin.py: Ice margin ========== Plot a composite map including bedrock altitude, an ice margin contour, a half-transparent filled interior, and geographic elements. .. GENERATED FROM PYTHON SOURCE LINES 12-35 .. image-sg:: /examples/datasets/images/sphx_glr_plot_ice_margin_001.png :alt: Ice margin :srcset: /examples/datasets/images/sphx_glr_plot_ice_margin_001.png :class: sphx-glr-single-img .. code-block:: default import matplotlib.pyplot as plt import hyoga # open demo data with hyoga.open.example('pism.alps.out.2d.nc') as ds: # plot model output ds.hyoga.plot.bedrock_altitude(cmap='Greys', center=False) ds.hyoga.plot.ice_margin(edgecolor='tab:blue', linewidths=1) ds.hyoga.plot.ice_margin(facecolor='tab:blue') # add coastline and rivers ax = ds.hyoga.plot.natural_earth() # add scale bar ds.hyoga.plot.scale_bar() # set title ax.set_title('Ice margin') # show plt.show() .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 4.485 seconds) .. _sphx_glr_download_examples_datasets_plot_ice_margin.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_ice_margin.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_ice_margin.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_