watex.utils.plotAnomaly#
- watex.utils.plotAnomaly(erp, cz=None, station=None, fig_size=(10, 4), fig_dpi=300, savefig=None, show_fig_title=True, style='seaborn', fig_title_kws=Ellipsis, czkws=Ellipsis, legkws=Ellipsis, how='py', **kws)[source]#
Plot the whole Electrical Resistivity Profiling line and selected conductive zone.
Conductive zone can be supplied nannualy as a subset of the erp or by specifying the station expected for drilling location. For instance
S07for the seventh station. Futhermore, for automatic detection, one should set the station argument s toauto. However, it ‘s recommended to provide the cz or the s to have full control. The conductive zone overlained the whole Electrical Resistivity Profiling survey. user can customize the cz plot by filling with Matplotlib pyplot additional keywords araguments thought the keyword arguments czkws.- Parameters:
- erp: array_like 1d
the Electrical Resistivity Profiling survey line. The line is an array of resistivity values. Note that if a dataframe is passed, be sure that the frame matches the DC resistivity data (ERP), otherwise an error occurs. At least, the frame columns includes the resistivity and stations.
- cz: array_like 1d
the selected conductive zone. If
None, only the erp should be displayed. Note that cz is an subset of erp array.- station: str, optional
The station location given as string (e.g.
s= "S10") or as a station number (indexing; e.gs =10). If value is set to"auto", s should be find automatically and fetching cz as well.- figsize: tuple, default =(10, 4)
Tuple value of figure size. Refer to the web resources Matplotlib figure.
- fig_dpi: int , default=300,
figure resolution “dot per inch”. Refer to Matplotlib figure.
- savefig: str, optional,
save the figure. Refer to Matplotlib figure.
- show_fig_title: bool, default =True
display the title of the figure.
- fig_title_kws: dict,
Keywords arguments of figure suptile. Refer to Matplotlib figsuptitle.
- style: str - the style for customizing visualization. For instance to
get the first seven available styles in pyplot, one can run the script below:
plt.style.available[:7]
Futher details can be foud in Webresources below or click on GeekforGeeks.
- how: str, default=’py’
By default (
how='py'), the station is naming following the Python indexing. Station is counting from station 00(S00). Any other values will start the station naming from 1.- czkws: dict,
keywords Matplotlib pyplot additional arguments to customize the cz plot.
- legkws: dict,
Additional keywords Matplotlib legend arguments.
- kws: dict,
additional keywords argument for Matplotlib pyplot to customize the erp plot.
See also
watex.erpSmartDetectorDetection conductive zone applying the constraint. Set the
view=Truefor constraints visualization.
. _Cote d’Ivoire: https://en.wikipedia.org/wiki/Ivory_Coast
Examples
>>> import numpy as np >>> from watex.utils import plotAnomaly, defineConductiveZone >>> test_array = np.abs (np.random.randn (10)) *1e2 >>> selected_cz ,*_ = defineConductiveZone(test_array, 7) >>> plotAnomaly(test_array, selected_cz ) >>> plotAnomaly(test_array, selected_cz , s= 5) >>> plotAnomaly(test_array, s= 's02') >>> plotAnomaly(test_array)