lgca.plots.PropertyColourMapper¶
- class lgca.plots.PropertyColourMapper(prop_list, cmap, norm)¶
Bases:
objectMaps from the family ID to a matplotlib colour that encodes the value of a family property, e.g. the birth rate
- get_colour(fam_ID)¶
Return the colour that encodes the property value of a family. :type fam_ID: :param fam_ID: int, family identifier that indexes the property list passed to the constructor :returns: 3-tuple of RGB-values
- get_colour_scale()¶
Return how the instance translates between property values and colours.