.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples/datasets/plot_bedrock_isostasy.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_bedrock_isostasy.py: Bedrock isostasy ================ Plot a composite map including bedrock altitude, surface altitude contours, bedroc isostatic adjustment relative to a reference topography in a separate model input file, and geographic elements. .. GENERATED FROM PYTHON SOURCE LINES 13-43 .. image-sg:: /examples/datasets/images/sphx_glr_plot_bedrock_isostasy_001.png :alt: Bedrock isostatic adjustment (m) :srcset: /examples/datasets/images/sphx_glr_plot_bedrock_isostasy_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none downloading https://raw.githubusercontent.com/juseg/hyoga-data/main/pism/pism.alps.in.boot.nc... | .. code-block:: default import matplotlib.pyplot as plt import hyoga # initialize figure ax = plt.subplot() cax = plt.axes([0.15, 0.55, 0.025, 0.25]) # open demo data with hyoga.open.example('pism.alps.out.2d.nc') as ds: # compute isostasy using separate boot file ds = ds.hyoga.assign_isostasy(hyoga.open.example('pism.alps.in.boot.nc')) # plot model output ds.hyoga.plot.bedrock_altitude(ax=ax, center=False) ds.hyoga.plot.surface_altitude_contours(ax=ax) ds.hyoga.plot.bedrock_isostasy( ax=ax, cbar_ax=cax, levels=[-150, -100, -50, 0, 0.5, 1, 1.5]) ds.hyoga.plot.ice_margin(ax=ax) # add coastline and rivers ds.hyoga.plot.natural_earth(ax=ax) # set axes properties cax.set_ylabel('') ax.set_title('Bedrock isostatic adjustment (m)') # show plt.show() .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 5.226 seconds) .. _sphx_glr_download_examples_datasets_plot_bedrock_isostasy.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_bedrock_isostasy.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_bedrock_isostasy.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_