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 )
Station 7
Found no Z components for 7
/home/docs/checkouts/readthedocs.org/user_builds/watex/checkouts/v0.3.3/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 0x7ff2b0f93790>
  • 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 )
Station 7
Found no Z components for 7

<watex.externals.z.Z object at 0x7ff2b0f93790>

Total running time of the script: (0 minutes 4.731 seconds)

Gallery generated by Sphinx-Gallery