seaborn.FacetGrid.map
优质
小牛编辑
134浏览
2023-12-01
FacetGrid.map(func, *args, **kwargs)
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 <cite>color</cite> keyword argument. If faceting on the <cite>hue</cite> dimension, it must also take a <cite>label</cite> keyword argument.
args
:strings
Column names in self.data that identify variables with data to plot. The data for each variable is passed to <cite>func</cite> in the order the variables are specified in the call.
kwargs
:keyword arguments
All keyword arguments are passed to the plotting function.
返回值:self
:object
Returns self.