.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "glr_examples/methods/plot_base_process_tensors.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_methods_plot_base_process_tensors.py: ================ Plot tensors ================ plot the resistivity/phase and Impendance # real and imaginary parts. .. GENERATED FROM PYTHON SOURCE LINES 9-12 .. code-block:: Python # Author: L.Kouadio # Licence: BSD-3-clause .. GENERATED FROM PYTHON SOURCE LINES 13-14 :func:`~watex.utils.plot_tensors` plots resistivity and phase tensors .. GENERATED FROM PYTHON SOURCE LINES 16-17 We start by importing the required modules as: .. GENERATED FROM PYTHON SOURCE LINES 17-21 .. code-block:: Python from watex.datasets import fetch_data from watex.utils.plotutils import plot_tensors from watex.methods import MT .. GENERATED FROM PYTHON SOURCE LINES 22-23 Before we'll fetch 17 samples of EDI objets .. GENERATED FROM PYTHON SOURCE LINES 23-28 .. code-block:: Python edi_data = fetch_data ("edis", samples =17, return_data =True ) # then we will do remove the noises using the # adaptative -moving-average spatial filter as amt = MT (verbose =True).fit( edi_data).remove_noises (method ='ama') .. rst-class:: sphx-glr-script-out .. code-block:: none ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |Data collected = 17 |EDI success. read= 17 |Rate = 100.0 %| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. GENERATED FROM PYTHON SOURCE LINES 29-30 * Plot the resistivity/phase .. GENERATED FROM PYTHON SOURCE LINES 30-32 .. code-block:: Python plot_tensors(amt.ediObjs_, station =7 ) .. image-sg:: /glr_examples/methods/images/sphx_glr_plot_base_process_tensors_001.png :alt: Station 7 :srcset: /glr_examples/methods/images/sphx_glr_plot_base_process_tensors_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none .. GENERATED FROM PYTHON SOURCE LINES 33-34 * Plot the impedances Z real/imaginary parts. .. GENERATED FROM PYTHON SOURCE LINES 34-38 .. code-block:: Python # Setting the parameter `zplot` to ``True`` plots only the # impedance tensor. plot_tensors(amt.ediObjs_, station =7 , zplot =True ) .. image-sg:: /glr_examples/methods/images/sphx_glr_plot_base_process_tensors_002.png :alt: Station 7 :srcset: /glr_examples/methods/images/sphx_glr_plot_base_process_tensors_002.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 4.428 seconds) .. _sphx_glr_download_glr_examples_methods_plot_base_process_tensors.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/methods/plot_base_process_tensors.ipynb :alt: Launch binder :width: 150 px .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_base_process_tensors.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_base_process_tensors.py ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_