arviz_plots.PlotCollection.get_aes_kwargs#
- PlotCollection.get_aes_kwargs(aes, var_name, selection)[source]#
Get the aesthetic mappings for the given variable and selection as a dictionary.
- Parameters:
- aes
list
List of aesthetic keywords whose values should be retrieved. Values are taken from the
aes
attribute: groups as the elements inaes
argument, variable var_name argument if present, otherwise “mapping” or “neutral_element” and selection coordinate/dimension subset.PlotCollection
considers aesthetics starting with “overlay” a special aesthetic keyword to indicate visual elements with potentially identical properties should be overlaid. Thus, if “overlay” or “overlay_xyz” are an element of theaes
argument, it is skipped, no value is attempted to be retrieved and it isn’t present as key in the returned output either.- var_name
str
- selection
dict
- aes
- Returns:
dict
Mapping of aesthetic keywords to the values corresponding to the provided var_name and selection.
See also