Categories &

Functions List

Class Definition: stats.chart.ScatterHistogramChart

statistics: stats.chart.ScatterHistogramChart

A scatter plot with a histogram of each variable along its sides, as scatterhistogram draws it.

A stats.chart.ScatterHistogramChart holds two samples, optionally split into groups, and the choices they are drawn with, and redraws itself whenever one of them is set. It is what scatterhistogram returns, and the documented way to reach it.

The samples come either from vectors or from a table, never from both. The histograms are normalized as probability densities, one for each group, with the bins histcounts chooses for each group unless NumBins or BinWidths say otherwise. The groups take the colours of the colour order and the line styles '-', ':', '-.' and '--' in turn, in the order in which each first appears in GroupData.

A chart takes the place of the current axes of its parent, keeping their outer position, and refuses axes on which hold is on; a later plot into the figure takes the place of the chart in turn. MATLAB’s chart is a graphics object of its own; this one is a handle class drawing into three axes of its own, the scatter plot’s being made current, and it lets go of them when a later plot clears them. LegendVisible, MarkerFilled and Visible hold 'on' or 'off', and LineStyle and MarkerStyle a character vector or a cell array of them, where MATLAB holds an on-off state and a string array.

See also: scatterhistogram, scatterhist, histcounts, ksdensity

Source Code: stats.chart.ScatterHistogramChart

The stats.chart.ScatterHistogramChart class contains the following properties:

The stats.chart.ScatterHistogramChart class offers the following public methods:

stats.chart.ScatterHistogramChart: obj = stats.chart.ScatterHistogramChart (parent, spec, args)

parent is the figure or panel to place the chart in, or empty for the current figure, which is resolved only once every value has been accepted. spec is a structure carrying the data as scatterhistogram resolved it, with the fields XData, YData, GroupData, SourceTable, XVariable, YVariable and GroupVariable, and args the name-value pairs left to set. The documented way to reach this constructor is scatterhistogram.

See also: scatterhistogram

stats.chart.ScatterHistogramChart: limits = xlim (h)

stats.chart.ScatterHistogramChart: xlim (h, limits)

stats.chart.ScatterHistogramChart: limits = ylim (h)

stats.chart.ScatterHistogramChart: ylim (h, limits)

stats.chart.ScatterHistogramChart: delete (h)