mplStrater.strata.Legend

class mplStrater.strata.Legend(fill_dict, hatch_dict)

Bases: object

This sets the color-hatches profiles of the mplStrater.strata.Column object. Must be feed with fill_dict and hatch_dict dictionary, consisting of (key,value) pair. Defines two separate mplStrater.strata.Symbology objects accessible from the fill or hatch attribute.

Used for plotting mplStrater.strata.Columns both independently and in the mplStrater.StratigraphicMap context.

Hatch and fill values must be string-encoded matplotlib colors and hatches.

Parameters
  • fill_dict (dict) – dictionary of fill (key,value) pair.

  • hatch_dict (dict) – dictionary of hatch (key,value) pair.

__init__(fill_dict, hatch_dict)

Methods

__init__(fill_dict, hatch_dict)

set_fill(dict)

Set layer fill symbology.

set_hatches(dict)

Set layer hatch symbology.

set_fill(dict)

Set layer fill symbology.

set_hatches(dict)

Set layer hatch symbology.