.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "glr_examples/view/plot_rhoa.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_rhoa.py: ================================================= Plot apparent resistivity curves ================================================= Plot station/site apparent resistivity curves .. GENERATED FROM PYTHON SOURCE LINES 8-11 .. code-block:: default # Author: L.Kouadio # Licence: BSD-3-clause .. GENERATED FROM PYTHON SOURCE LINES 12-16 An example of plot apparent resistivity curves with error bar of EDI data collected in Huayaun province. ``seed`` is used to reproduce the data at the same station. * Simple Plot .. GENERATED FROM PYTHON SOURCE LINES 16-22 .. code-block:: default import watex test_data = watex.fetch_data ('huayuan', return_data =True , clear_cache=True ) tplot = watex.TPlot(fig_size =(6, 4), marker ='o').fit(test_data) tplot.plt_style='classic' tplot.plot_rhoa (seed =52, mode ='*', survey='AMT', show_site =True, ) .. image-sg:: /glr_examples/view/images/sphx_glr_plot_rhoa_001.png :alt: plot rhoa :srcset: /glr_examples/view/images/sphx_glr_plot_rhoa_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none <'TPlot':survey_area=None, distance=50.0, prefix='S', window_size=5, component='xy', mode='same', method='slinear', out='srho', how='py', c=2> .. GENERATED FROM PYTHON SOURCE LINES 23-27 * Plot a specific EM data type To plot a station data with no errorbar and a single component, we can set, ``errobar=False`` and specify the :term:`EM` mode. For instance, we use the transverse electric mode `TE` for this example at station ``s44``. .. GENERATED FROM PYTHON SOURCE LINES 27-31 .. code-block:: default tplot.show_grid=True tplot.plot_rhoa (site= 'E44', mode ='TM',survey='AMT', show_site =True , seed = 52 ) .. image-sg:: /glr_examples/view/images/sphx_glr_plot_rhoa_002.png :alt: plot rhoa :srcset: /glr_examples/view/images/sphx_glr_plot_rhoa_002.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none <'TPlot':survey_area=None, distance=50.0, prefix='S', window_size=5, component='xy', mode='same', method='slinear', out='srho', how='py', c=2> .. GENERATED FROM PYTHON SOURCE LINES 32-36 * Plot multiple sites It is also possible to plot multiple stations. For instance, we can plot three sites using the :meth:`watex.view.TPlot.plot_rhophi` by setting the parameters `n_sites` to ``3`` as: .. GENERATED FROM PYTHON SOURCE LINES 36-40 .. code-block:: default tplot.gls =':' ; tplot.galpha=.8; tplot.gc ='k' tplot.plot_rhophi ( n_sites = 3 , mode = '*', show_site =True, seed =52 ) .. image-sg:: /glr_examples/view/images/sphx_glr_plot_rhoa_003.png :alt: plot rhoa :srcset: /glr_examples/view/images/sphx_glr_plot_rhoa_003.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none <'TPlot':survey_area=None, distance=50.0, prefix='S', window_size=5, component='xy', mode='same', method='slinear', out='srho', how='py', c=2> .. GENERATED FROM PYTHON SOURCE LINES 41-46 * plot corrections It is possible to plot correction data using the EMAP filters such as ``['tma'| 'ama'|'flma']`` or using the static shift (``ss``) or distorsion (``dist``) filters. Note that when `dist` is passed the distorsion must be be provided as 2x2 matrix. .. GENERATED FROM PYTHON SOURCE LINES 46-49 .. code-block:: default tplot.plot_corrections ( sites = ['s7', 's21', 's49'], fltr ='tma', seed = 52 , markers = ['o', 'd'])# ama is used by default .. image-sg:: /glr_examples/view/images/sphx_glr_plot_rhoa_004.png :alt: plot rhoa :srcset: /glr_examples/view/images/sphx_glr_plot_rhoa_004.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none <'TPlot':survey_area=None, distance=50.0, prefix='S', window_size=5, component='xy', mode='same', method='slinear', out='srho', how='py', c=2> .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 9.021 seconds) .. _sphx_glr_download_glr_examples_view_plot_rhoa.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.2.X?urlpath=lab/tree/notebooks/glr_examples/view/plot_rhoa.ipynb :alt: Launch binder :width: 150 px .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_rhoa.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_rhoa.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_