FacetGrid.map(func, *args, **kwargs)[source]#

Apply a plotting function to each facet’s subset of the data.

  • func (callable()) – 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.

  • *args (Hashable) – 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.

  • **kwargs (keyword arguments) – All keyword arguments are passed to the plotting function.


self (FacetGrid object)