.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "glr_examples/utils/plot_sfi.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 or to run this example in your browser via Binder .. rst-class:: sphx-glr-example-title .. _sphx_glr_glr_examples_utils_plot_sfi.py: ====================================================== Plot pseudo-fracturing index (sfi) ====================================================== visualizes the pseudo-fracturing index (sfi) used to speculate about the apparent resistivity dispersion ratio around the cumulated sum of the resistivity values of the selected conductive zone. .. GENERATED FROM PYTHON SOURCE LINES 10-13 .. code-block:: Python # Author: L.Kouadio # Licence: BSD-3-clause .. GENERATED FROM PYTHON SOURCE LINES 14-15 Import required modules .. GENERATED FROM PYTHON SOURCE LINES 15-21 .. code-block:: Python import numpy as np from watex.utils.exmath import sfi, plot_sfi from watex.property import P .. GENERATED FROM PYTHON SOURCE LINES 22-24 Compute the *sfi* values from generate resistivity values of of selected conductive zone. .. GENERATED FROM PYTHON SOURCE LINES 24-30 .. code-block:: Python rang = np.random.RandomState (42) condzone = np.abs(rang.randn (7)) *1e2 sfi_value = sfi (condzone) print(sfi_value) .. rst-class:: sphx-glr-script-out .. code-block:: none 0.9606216039984983 .. GENERATED FROM PYTHON SOURCE LINES 31-35 * Visualizes naive `sfi` with selected conductive zone. .. note:: `sfi` has a view parameter to simply visualize the conductive zone. The following code shows the naive visualization of the *sfi* to have quick depiction of the conductive zone. .. GENERATED FROM PYTHON SOURCE LINES 35-44 .. code-block:: Python plotkws = dict (rlabel = 'Conductive zone (cz)', label = 'fitting model', leg =['selected conductive zone'], # color=f'{P().frcolortags.get("fr3")}', dtype='sfi', ) _= sfi (condzone, view= True , s= 5, fig_size = (10, 4), style ='classic', **plotkws ) .. image-sg:: /glr_examples/utils/images/sphx_glr_plot_sfi_001.png :alt: Pseudo-fracturing index :srcset: /glr_examples/utils/images/sphx_glr_plot_sfi_001.png :class: sphx-glr-single-img .. GENERATED FROM PYTHON SOURCE LINES 45-46 * Plot deep visualization with sfi components using :func:`~watex.utils.exmath.plot_sfi` .. GENERATED FROM PYTHON SOURCE LINES 46-55 .. code-block:: Python plotkws = dict (rlabel = 'Selected conductive zone (cz)', #label = 'sfi fit-model', color=f'{P().frcolortags.get("fr3")}', ) plot_sfi (condzone, fig_size = (10, 4), style ='classic', **plotkws) .. rst-class:: sphx-glr-horizontal * .. image-sg:: /glr_examples/utils/images/sphx_glr_plot_sfi_002.png :alt: plot sfi :srcset: /glr_examples/utils/images/sphx_glr_plot_sfi_002.png :class: sphx-glr-multi-img * .. image-sg:: /glr_examples/utils/images/sphx_glr_plot_sfi_003.png :alt: Pseudo-fracturing index :srcset: /glr_examples/utils/images/sphx_glr_plot_sfi_003.png :class: sphx-glr-multi-img .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.419 seconds) .. _sphx_glr_download_glr_examples_utils_plot_sfi.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: binder-badge .. image:: images/binder_badge_logo.svg :target: https://mybinder.org/v2/gh/watex/watex/0.3.X?urlpath=lab/tree/notebooks/glr_examples/utils/plot_sfi.ipynb :alt: Launch binder :width: 150 px .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_sfi.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_sfi.py ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_