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


.. GENERATED FROM PYTHON SOURCE LINES 20-21 It is possible to add many parameters to modify the display. .. GENERATED FROM PYTHON SOURCE LINES 21-23 .. code-block:: Python fig = plot_topo_3D(z, x, y, light_source=[180, 15], add_walls=False, add_floor=False) fig .. raw:: html


.. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.092 seconds) .. _sphx_glr_download_auto_gallery_plot_example_3d_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_topo.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_example_3d_topo.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_example_3d_topo.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_