Note: This page has been translated by MathWorks. Click here to see

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Scatter plot of bins for tall arrays

`binScatterPlot(X,Y)`

`binScatterPlot(X,Y,nbins)`

`binScatterPlot(X,Y,Xedges,Yedges)`

`binScatterPlot(X,Y,Name,Value)`

`h = binScatterPlot(___)`

`binScatterPlot(`

creates
a binned scatter plot of the data in `X,Y`

)`X`

and `Y`

.
The `binScatterPlot`

function uses an automatic
binning algorithm that returns bins with a uniform area, chosen to
cover the range of elements in `X`

and `Y`

and
reveal the underlying shape of the distribution.

`binScatterPlot(`

specifies
additional options with one or more name-value pair arguments using
any of the previous syntaxes. For example, you can specify `X,Y`

,`Name,Value`

)`'Color'`

and
a valid color option to change the color theme of the plot, or `'Gamma'`

with
a positive scalar to adjust the level of detail.

returns
a `h`

= binScatterPlot(___)`Histogram2`

object. Use this object to inspect
properties of the plot.