watex.utils.geotools.set_default_hatch_color_values#
- watex.utils.geotools.set_default_hatch_color_values(hatch, color, dhatch='.--', dcolor=(0.5019607843137255, 0.0, 1.0), force=False)[source]#
Set the none hatch or color to their default values.
- Parameters:
hatch – str or list of layer patterns
color – str or list of layers colors
dhatch – default hatch
dcolor – default color
force –
Return only single tuple values otherwise put the RGB tuple values in the list. For instance:
-if ``False`` color =[(0.5019607843137255, 0.0, 1.0)] - if ``True`` color = (0.5019607843137255, 0.0, 1.0)
- Example:
>>> from watex.utils.geotools as GU. >>> hatch =['//.', 'none', '+++.', None] >>> color =[(0.5019607843137255, 0.0, 1.0), None, (0.8, 0.6, 1.),'lime'] >>> GU.set_default_hatch_color_values(hatch, color))