landlab.plot.layers¶
- plot_layers(elevation_at_layer, x=None, sea_level=0.0, color_water=(0.8, 1.0, 1.0), color_bedrock=(0.8, 0.8, 0.8), color_layer=None, layer_line_width=0.5, layer_line_color='k', title=None, x_label='Distance', y_label='Elevation', legend_location='lower left')[source]¶
Plot a stack of sediment layers as a cross section.
Create a plot of the elevation sediment layers, including surfaces for sea level and bedrock.
- Parameters:
elevation_at_layer (array-like of shape (n_layers, n_stacks)) – Elevation to each layer along the profile. Layers are provided row-by-row, with the bottom-most layer being the first row.
x (array-like, optional) – Distance to each stack along the cross-section. If not provided, stack number will be used.
sea_level (float, optional) – Elevation of sea level.
color_water (tuple of float, optional) – Tuple of (red, green, blue) values for water.
color_bedrock (tuple of float, optional) – Tuple of (red, green, blue) values for bedrock.
color_layer (string, optional) – Colormap to use to color in the layers.
layer_line_width (float, optional) – Width of line used to plot layer surfaces.
layer_line_color (string, optional) – Color of the line used to plot layer surfaces.
title (string, optional) – Text to be used for the graph’s title. The default is to not include a title.
x_label (string, optional) – Text to be used for the x (horizontal) axis label.
y_label (string, optional) – Text to be used for the y (vertical) axis label.
legend_location (string, optional) – Where to put the legend.