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 axvline or axhline.


ax : matplotlib axes

The Axes object with the plot on it.