.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "gallery/3Dvispy/07-well_logs_tube.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_gallery_3Dvispy_07-well_logs_tube.py: Display log trail as a tube ======================================= .. image:: ../../_static/cigvis/3Dvispy/07.png :alt: image :align: center .. GENERATED FROM PYTHON SOURCE LINES 14-36 .. code-block:: default # sphinx_gallery_thumbnail_path = '_static/cigvis/3Dvispy/07.png' import numpy as np import cigvis from pathlib import Path root = Path(__file__).resolve().parent.parent.parent sxp = root / 'data/co2/sx.dat' ni, nx, nt = 192, 192, 240 sx = np.fromfile(sxp, np.float32).reshape(ni, nx, nt) x = np.linspace(50, 100, 5000) y = np.linspace(50, 150, 5000) z = np.sin((y - 50) / 200 * np.pi) * 200 points = np.c_[x, y, z] nodes = cigvis.create_slices(sx) nodes += cigvis.create_well_logs(points, cmap='red') cigvis.plot3D(nodes, size=(800, 800), savename='example.png') .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.000 seconds) .. _sphx_glr_download_gallery_3Dvispy_07-well_logs_tube.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: 07-well_logs_tube.py <07-well_logs_tube.py>` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: 07-well_logs_tube.ipynb <07-well_logs_tube.ipynb>` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_