Note
Go to the end to download the full example code. or to run this example in your browser via Binder
Plot tensors#
plot the resistivity/phase and Impendance # real and imaginary parts.
# Author: L.Kouadio
# Licence: BSD-3-clause
plot_tensors() plots resistivity and phase tensors
We start by importing the required modules as:
from watex.datasets import fetch_data
from watex.utils.plotutils import plot_tensors
from watex.methods import MT
Before we’ll fetch 17 samples of EDI objets
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')
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|Data collected = 17 |EDI success. read= 17 |Rate = 100.0 %|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Plot the resistivity/phase
plot_tensors(amt.ediObjs_, station =7 )

Found no Z components for 7
/home/docs/checkouts/readthedocs.org/user_builds/watex/checkouts/master/watex/utils/plotutils.py:5077: UserWarning:
Legend does not support None instances.
A proxy artist may be used instead.
See: https://matplotlib.org/users/legend_guide.html#creating-artists-specifically-for-adding-to-the-legend-aka-proxy-artists
<watex.externals.z.Z object at 0x7fcfe46c3820>
Plot the impedances Z real/imaginary parts.
# Setting the parameter `zplot` to ``True`` plots only the
# impedance tensor.
plot_tensors(amt.ediObjs_, station =7 , zplot =True )

Found no Z components for 7
<watex.externals.z.Z object at 0x7fcfe46c3820>
Total running time of the script: (0 minutes 2.920 seconds)