watex.utils.plot_stratalog#

watex.utils.plot_stratalog(thick, layers, station, *, zoom=None, hatch=None, color=None, fig_size=(10, 4), **annot_kws)[source]#

Make the stratalog log with annotate figure.

Parameters:
  • thick (list,) – list of the layers thicknesses , names, patterns and colors.

  • layer (list,) – list of the layers thicknesses , names, patterns and colors.

  • hatch (list,) – list of the layers thicknesses , names, patterns and colors.

  • colors (list,) – list of the layers thicknesses , names, patterns and colors.

  • zoom (float, list) –

    If float value is given, it considered as a

    zoom ratio and it should be ranged between 0 and 1. For isntance:

    • 0.25 –> 25% plot start from 0. to max depth * 0.25 m.

    Otherwise if values given are in the list, they should be composed of two items which are the top and bottom of the plot. For instance:

    • [10, 120] –> top =10m and bottom = 120 m.

    Note that if the length of zoom list is greater than 2, the function will return all the plot and no errors should raised.

    fig_size: tuple, default=(10, 4)

    Figure size

Examples

>>> import watex.utils.geotools as GU
>>> layers= ['$(i)$', 'granite', '$(i)$', 'granite']
>>> thicknesses= [59.0, 150.0, 590.0, 200.0]
>>> hatch =['//.', '.--', '+++.', 'oo+.']
>>> color =[(0.5019607843137255, 0.0, 1.0), 'b', (0.8, 0.6, 1.), 'lime']
>>> GU.plot_stratalog (thicknesses, layers, hatch =hatch ,
                   color =color, station='S00')
>>> GU.plot_stratalog ( thicknesses,layers,hatch =hatch,
                        zoom =0.25, color =color, station='S00')