escodrinyar.Plot.add#

Plot.add(mark, *transforms, orient=None, legend=True, label=None, data=None, **variables)#

Specify a layer of the visualization in terms of mark and data transform(s).

This is the main method for specifying how the data should be visualized. It can be called multiple times with different arguments to define a plot with multiple layers.

Parameters:
markMark

The visual representation of the data to use in this layer.

transformsStat or Move

Objects representing transforms to be applied before plotting the data. Currently, at most one Stat can be used, and it must be passed first. This constraint will be relaxed in the future.

orient“x”, “y”, “v”, or “h”

The orientation of the mark, which also affects how transforms are computed. Typically corresponds to the axis that defines groups for aggregation. The “v” (vertical) and “h” (horizontal) options are synonyms for “x” / “y”, but may be more intuitive with some marks. When not provided, an orientation will be inferred from characteristics of the data and scales.

legendbool

Option to suppress the mark/mappings for this layer from the legend.

labelstr

A label to use for the layer in the legend, independent of any mappings.

dataDataFrame or dict

Data source to override the global source provided in the constructor.

variablesdata vectors or identifiers

Additional layer-specific variables, including variables that will be passed directly to the transforms without scaling.

Notes

The docstring of this function is autogenerated from seaborn.objects.Plot.add().