.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_gallery/plot_example_3d_data_on_topo.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_auto_gallery_plot_example_3d_data_on_topo.py: 3D plot data on topography =========================== Here is an example to display data on 3D topography using plot_data_on_topo_3D from the plot_3d module. .. GENERATED FROM PYTHON SOURCE LINES 7-20 .. code-block:: Python from pytopomap.tools import read_tiff from pytopomap.plot_3d import plot_data_on_topo_3D url_topo = r"https://raw.githubusercontent.com/marcperuz/pytopomap/main/data/z.tif" url_data = r"https://raw.githubusercontent.com/marcperuz/pytopomap/main/data/h_deposits.tif" x, y, z = read_tiff(url_topo) x, y, data = read_tiff(url_data) fig = plot_data_on_topo_3D(x, y, z, data) fig .. raw:: html


.. GENERATED FROM PYTHON SOURCE LINES 21-22 It is possible to add many parameters to modify the display. .. GENERATED FROM PYTHON SOURCE LINES 22-24 .. code-block:: Python fig = plot_data_on_topo_3D(x, y, z, data, light_source=[90, 60], minval=15, maxval=100) fig .. raw:: html


.. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.783 seconds) .. _sphx_glr_download_auto_gallery_plot_example_3d_data_on_topo.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_example_3d_data_on_topo.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_example_3d_data_on_topo.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_example_3d_data_on_topo.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_