seaborn.FacetGrid.map_dataframe
- FacetGrid.map_dataframe(func, *args, **kwargs)
Like
.mapbut passes args as strings and inserts data in kwargs.This method is suitable for plotting with functions that accept a long-form DataFrame as a
datakeyword argument and access the data in that DataFrame using string variable names.- Parameters:
- func : callable
A plotting function that takes data and keyword arguments. Unlike the
method, a function used here must “understand” Pandas objects. It also must plot to the currently active matplotlib Axes and take a keyword argument. If faceting on the dimension, it must also take a keyword argument.