Scattermatrix#
Download this notebook from GitHub (right-click to download).
import numpy as np
import pandas as pd
from hvplot.plotting import scatter_matrix
scatter_matrix
shows all the pairwise relationships between the columns of your data. Each non-diagonal entry plots the corresponding columns against another, while the diagonal plot shows the distribution of the data within each individual column.
This function is closely modelled on pandas.plotting.scatter_matrix.
df = pd.DataFrame(np.random.randn(1000, 4), columns=['A','B','C','D'])
scatter_matrix(df, alpha=0.2)