dabl.plot.discrete_scatter

dabl.plot.discrete_scatter(x, y, c, unique_c=None, legend='first', clip_outliers=True, alpha='auto', s='auto', ax=None, **kwargs)[source]

Scatter plot for categories.

Creates a scatter plot for x and y grouped by c.

Parameters
xarray-like

x coordinates to scatter

yarray-like

y coordinates to scatter

carray-like

Grouping of samples (similar to hue in seaborn)

legendbool, or “first”, default=”first”

Whether to create a legend. “first” mean only the first one in a given gridspec.

scatter_alphafloat, default=’auto’

Alpha values for scatter plots. ‘auto’ is dirty hacks.

scatter_sizefloat, default=’auto’.

Marker size for scatter plots. ‘auto’ is dirty hacks.

axmatplotlib axes, default=None

Axes to plot into

kwargs :

Passed through to plt.scatter