hvplot.plotting.scatter_matrix#

hvplot.plotting.scatter_matrix(data, c=None, chart='scatter', diagonal='hist', alpha=0.5, nonselection_alpha=0.1, tools=None, cmap=None, colormap=None, diagonal_kwds=None, hist_kwds=None, density_kwds=None, datashade=False, rasterize=False, dynspread=False, spread=False, **kwds)[source]#

Scatter matrix of numeric columns.

A scatter_matrix shows all the pairwise relationships between the columns. Each non-diagonal plots the corresponding columns against each other, while the diagonal plot shows the distribution of each individual column.

This function is closely modelled on pandas.plotting.scatter_matrix().

Parameters:
dataDataFrame

The data to plot. Every column is compared to every other column.

cstr, optional

Column to color by

chartstr, optional

Chart type for the off-diagonal plots (one of ‘scatter’, ‘bivariate’, ‘hexbin’)

diagonalstr, optional

Chart type for the diagonal plots (one of ‘hist’, ‘kde’)

alphafloat, optional

Transparency level for the off-diagonal plots

nonselection_alphafloat, optional

Transparency level for nonselected object in the off-diagonal plots

toolslist of str, optional

Interaction tools to include Defaults are ‘box_select’ and ‘lasso_select’

cmap/colormapstr or colormap object, optional

Colormap to use when c is set. Default is Category10 <https://github.com/d3/d3-3.x-api-reference/blob/master/Ordinal-Scales.md#category10>.

diagonal_kwds/hist_kwds/density_kwdsdict, optional

Keyword options for the diagonal plots

datashadebool, default=False

Whether to apply rasterization and shading (colormapping) using the Datashader library, returning an RGB object instead of individual points

rasterizebool, default=False

Whether to apply rasterization using the Datashader library, returning an aggregated Image (to be colormapped by the plotting backend) instead of individual points

dynspreadbool, default=False

For plots generated with datashade=True or rasterize=True, automatically increase the point size when the data is sparse so that individual points become more visible. kwds supported include max_px, threshold, shape, how and mask.

spreadbool, default=False

Make plots generated with datashade=True or rasterize=True increase the point size to make points more visible, by applying a fixed spreading of a certain number of cells/pixels. kwds supported include: px, shape, how and mask.

**kwdsoptional

Keyword options for the off-diagonal plots and datashader’s spreading , optional

Returns:
objHoloViews object

The HoloViews representation of the plot.

See also

pandas.plotting.scatter_matrix()

Equivalent pandas function.

Examples#

TBD

This web page was generated from a Jupyter notebook and not all interactivity will work on this website.