Skip to content

gplotmatrix

plot · scripts/plot/draw/gplotmatrix.m

: gplotmatrix (x, [], group)
: gplotmatrix (x, y, group)
: gplotmatrix (x, y, group, clr, sym, siz)
: gplotmatrix (x, y, group, clr, sym, siz, doleg)
: gplotmatrix (x, [], group, clr, sym, siz, doleg, dispopt)
: gplotmatrix (x, [], group, clr, sym, siz, doleg, dispopt, xnam)
: gplotmatrix (x, y, group, clr, sym, siz, doleg, [], xnam, ynam)
: gplotmatrix (parent, …)
: [h, ax, bigax] = gplotmatrix (…)

Matrix of scatter plots by group (MATLAB Statistics Toolbox compat).

With Y = [], draws a p-by-p matrix of pairwise plots of the columns of x, with grouped diagonal displays controlled by dispopt ("stairs" default when there is more than one group). With both x and y, draws a q-by-p matrix of grouped scatters. Outputs match MATLAB R2026a sizes: h is q-by-p-by-k (or p-by-p-by-k), ax gains an extra row of invisible axes for histogram-style diagonals, and bigax is the invisible spanning axes.