seaborn.FacetGrid.map#
- FacetGrid.map(func, *args, **kwargs)#
Apply a plotting function to each facet’s subset of the data.
- Parameters:
- funccallable
A plotting function that takes data and keyword arguments. It must plot to the currently active matplotlib Axes and take a
colorkeyword argument. If faceting on thehuedimension, it must also take alabelkeyword argument.- argsstrings
Column names in self.data that identify variables with data to plot. The data for each variable is passed to
funcin the order the variables are specified in the call.- kwargskeyword arguments
All keyword arguments are passed to the plotting function.
- Returns:
- selfobject
Returns self.