.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "glr_examples/methods/plot_raw_2d_tensor.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_raw_2d_tensor.py: ====================== Plot tensor 2D ====================== shows the raw tensors in a two-dimensional layout. .. GENERATED FROM PYTHON SOURCE LINES 8-11 .. code-block:: Python # Author: L.Kouadio # Licence: BSD-3-clause .. GENERATED FROM PYTHON SOURCE LINES 12-28 .. code-block:: Python from watex.view.plot import TPlot from watex.datasets import load_edis e= load_edis (samples =21 , key='*') edi_data = e.frame.edi.values # get some 3 samples of EDI for demo # customize plot by adding plot_kws plot_kws = dict( ylabel = '$Log_{10}Frequency [Hz]$', xlabel = '$Distance(m)$', cb_label = '$Log_{10}Rhoa[\Omega.m$]', fig_size =(6, 3), font_size =7., plt_style ='imshow' ) t= TPlot(component='yx', **plot_kws ).fit(edi_data) # plot recovery2d using the log10 resistivity t.plot_tensor2d (to_log10=True) # plot for raw tensor .. image-sg:: /glr_examples/methods/images/sphx_glr_plot_raw_2d_tensor_001.png :alt: plot raw 2d tensor :srcset: /glr_examples/methods/images/sphx_glr_plot_raw_2d_tensor_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.626 seconds) .. _sphx_glr_download_glr_examples_methods_plot_raw_2d_tensor.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_raw_2d_tensor.ipynb :alt: Launch binder :width: 150 px .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_raw_2d_tensor.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_raw_2d_tensor.py ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_