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 color keyword argument. If faceting on the hue dimension, it must also take a label keyword argument.

argsstrings

Column names in self.data that identify variables with data to plot. The data for each variable is passed to func in the order the variables are specified in the call.

kwargskeyword arguments

All keyword arguments are passed to the plotting function.

Returns:
selfobject

Returns self.