seaborn.JointGrid.plot_marginals#

JointGrid.plot_marginals(func, **kwargs)#

Draw univariate plots on each marginal axes.

Parameters:
funcplotting callable

If a seaborn function, it should accept x and y and plot when only one of them is defined. Otherwise, it must accept a vector of data as the first positional argument and determine its orientation using the vertical parameter, and it must plot on the “current” axes. If hue was defined in the class constructor, it must accept hue as a parameter.

kwargs

Keyword argument are passed to the plotting function.

Returns:
JointGrid instance

Returns self for easy method chaining.