seaborn.FacetGrid.map

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.



书籍推荐

此网站出售,联系QQ:779236454