.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "gallery/2D/04-plot2d_well_pos.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_2D_04-plot2d_well_pos.py: Shows 2D horizontal slices and log positions ================================================ .. image:: ../../_static/cigvis/2D/04.png :alt: image :align: center .. GENERATED FROM PYTHON SOURCE LINES 14-46 .. code-block:: default # sphinx_gallery_thumbnail_path = '_static/cigvis/2D/04.png' import cigvis import numpy as np root = '../../' sxp = 'data/rgt/sx.dat' ni, nx, nt = 128, 128, 128 sx = np.memmap(root + sxp, np.float32, 'r', shape=(ni, nx, nt)) sx2 = sx[:, :, 40] fg = {} well_pos = np.random.rand(10, 2) * 100 + 10 well_name = ['well-' + str(i + 10001) for i in range(10)] fg['marker'] = cigvis.marker_args(well_pos[:, 0], well_pos[:, 1], marker='^', c='red') fg['annotate'] = cigvis.annotate_args(well_pos[:, 0], well_pos[:, 1], well_name) cigvis.plot2d(sx2, fg, figsize=(6, 6), xlabel='inline', ylabel='crossline', title='Example', save='example.png', dpi=200) .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.000 seconds) .. _sphx_glr_download_gallery_2D_04-plot2d_well_pos.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: 04-plot2d_well_pos.py <04-plot2d_well_pos.py>` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: 04-plot2d_well_pos.ipynb <04-plot2d_well_pos.ipynb>` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_