seaborn.rugplot

优质
小牛编辑
134浏览
2023-12-01
seaborn.rugplot(a, height=0.05, axis='x', ax=None, **kwargs)

Plot datapoints in an array as sticks on an axis.

参数:a:vector

1D array of observations.

height:scalar, optional

Height of ticks as proportion of the axis.

axis:{‘x’ | ‘y’}, optional

Axis to draw rugplot on.

ax:matplotlib axes, optional

Axes to draw plot into; otherwise grabs current axes.

kwargs:key, value pairings

Other keyword arguments are passed to LineCollection.

返回值:ax:matplotlib axes

The Axes object with the plot on it.