gemgis.visualization.plot_orientations
gemgis.visualization.plot_orientations#
- gemgis.visualization.plot_orientations(gdf: Union[geopandas.geodataframe.GeoDataFrame, pandas.core.frame.DataFrame], show_planes: bool = True, show_density_contours: bool = True, show_density_contourf: bool = False, formation: str = None, method: str = 'exponential_kamb', sigma: Union[float, int] = 1, cmap: str = 'Blues_r')#
Plotting orientation values of a GeoDataFrame with mplstereonet
- Parameters
gdf (Union[gpd.geodataframe.GeoDataFrame, pd.DataFrame]) – (Geo-)DataFrame containing columns with orientations values
show_planes (bool) – Variable to show planes of orientation values. Options include:
True
orFalse
, default set toTrue
show_density_contours (bool) – Variable to display density contours. Options include:
True
orFalse
, default set toTrue
show_density_contourf (bool) – Variable to display density contourf. Options include:
True
orFalse
, default set toFalse
formation (str) – Name of the formation for which the contourf plot is shown, e.g.
formation='Layer1'
, default isNone
method (str) – Method to estimate the orientation density distribution,
method='exponential_kamb'
, default is'exponential_kamb'
sigma (Union[float, int]) – Expected count in standard deviations, e.g.
sigma=1
, default is1
cmap (str) – Name of the colormap for plotting the orientation densities, e.g.
cmap='Blues_r'
, default is'Blues_r'
New in version 1.0.x.
Example
>>> # Loading Libraries and File >>> import gemgis as gg >>> import geopandas as gpd >>> gdf = gpd.read_file(filename='file.shp') >>> gdf id formation dip azimuth geometry 0 None Sand 25.00 310 POINT (49.249 1033.893) 1 None Sand 30.00 315 POINT (355.212 947.557) 2 None Sand 15.00 330 POINT (720.248 880.912) 3 None Clay 10.00 135 POINT (526.370 611.300) 4 None Clay 25.00 140 POINT (497.591 876.368) 5 None Clay 35.00 50 POINT (394.593 481.039)
>>> # Creating plot >>> gg.visualization.plot_orientations(gdf=gdf, show_planes=True, show_density_contours=False, show_density_contourf=False)