mplStrater.StratigraphicMap¶
- class mplStrater.StratigraphicMap(strataframe, basemap_path=None, fig_kwd=None, label_hardcoding=None)¶
Bases:
object
This is the stratigraphic map.
- Parameters
strataframe (
mplStrater.data.StrataFrame
) – a StrataFrame object containing data to be plotted.path_to_data (str) – path to stratigraphic information stored in csv file
basemap_path (str) – path to georeferenced raster to use as basemap.
- strataframe¶
the linked StrataFrame object
- Type
mplStrater.data.StrataFrame
- df¶
dataframe with stratigrafic information grouped by point.
- Type
pandas.DataFrame
- f¶
matplotlib figure with stratigraphic map
- Type
matplotlib.Figure
- ax¶
matplotlib axes with stratigraphic map
- Type
matplotlib.Axes
- fig_kwd¶
keywords to pass to matplotlib.pyplot.subplots()
- Type
dict
- img_rgb¶
3D array formed by R,G,B numpy 2D arrays
- Type
numpy.array
- img_alpha¶
2D array of alpha channel
- Type
numpy.array
- __init__(strataframe, basemap_path=None, fig_kwd=None, label_hardcoding=None)¶
Methods
__init__
(strataframe[, basemap_path, ...])Normalize content of georeferenced RGBA raster to to 0.0-1.0 format.
plot
(legend)creates figure and plots the data.
plot_basemap
(ax[, color_correction])sets basemap if this has been correctly specified.
plot_points
(ax)plot points
plot_strata_columns
(legend, ax)plot all stratigraphic columns in strataframe.
savefig
(path)save figure
- normalize_raster()¶
Normalize content of georeferenced RGBA raster to to 0.0-1.0 format.
- plot(legend)¶
creates figure and plots the data.
- plot_basemap(ax, color_correction=True)¶
sets basemap if this has been correctly specified.
- Parameters
ax (
matplotlib.axes
) –color_correction (bool) – execute color correction with rio-color package.
- plot_points(ax)¶
plot points
- Parameters
ax (
matplotlib.axes
) –
- plot_strata_columns(legend, ax)¶
plot all stratigraphic columns in strataframe. :param ax: :type ax:
matplotlib.axes
- savefig(path)¶
save figure
- Parameters
path (str) – string path to save location.