.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "glr_examples/view/plot_phase_tensor_2d.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_view_plot_phase_tensor_2d.py: ================================================ Plot two dimensional phase tensors ================================================ gives a quick visualization of phase tensors at the component 'yx' .. GENERATED FROM PYTHON SOURCE LINES 9-12 .. code-block:: Python # Author: L.Kouadio # Licence: BSD-3-clause .. GENERATED FROM PYTHON SOURCE LINES 13-26 .. code-block:: Python from watex.view.plot import TPlot from watex.datasets import load_edis # get some 12 samples of EDI for demo edi_data = load_edis (return_data =True, samples =12) # customize plot by adding plot_kws plot_kws = dict( ylabel = '$Log_{10}Frequency [Hz]$', xlabel = '$Distance(m)$', cb_label= '$Phase [\degree]$' , fig_size =(6, 3), font_size =7., ) t= TPlot(component='yx', **plot_kws).fit(edi_data) # plot recovery2d using the log10 resistivity t.plot_tensor2d( tensor ='phase', to_log10=True) .. image-sg:: /glr_examples/view/images/sphx_glr_plot_phase_tensor_2d_001.png :alt: plot phase tensor 2d :srcset: /glr_examples/view/images/sphx_glr_plot_phase_tensor_2d_001.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 0.668 seconds) .. _sphx_glr_download_glr_examples_view_plot_phase_tensor_2d.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/view/plot_phase_tensor_2d.ipynb :alt: Launch binder :width: 150 px .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_phase_tensor_2d.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_phase_tensor_2d.py ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_