Search Locate Previous Next Contents

chCloud – 3D scatter plots

This is the workhorse function of Rain’s 3D plotting capabilities. It can generate simple 3D scatter diagrams, straw and ball charts, multiple cross sections with optional risers and filled surfaces.

chCloud mat

Examples

 MAT„´+\+™?5 3½36
 chSet('Style' 'risers,nolines,grid')('Marker' 14)
© Note that the XYZ needs a 3-column matrix
 chCloud(3/¼5),(15½¼3),[1.5],MAT

The data to be passed is a simple 3-column matrix giving X, Y and Z values. Multiple sets of data may be plotted by repeated calls to chCloud, having set the axis ranges in advance. The usual settings for markers and lines apply, and ‘risers’ may be set to produce ‘straw and ball’ plots with verticals rising from the XY plane to each point.

If more than 3 columns are given, columns after the first two are treated as independent sets of z-values, and drawn using the current colour and marker cycles.. This allows statements like:

chCloud yield vs variety farm by year

to make a multiple scatter of the barley data.

See also ...
chResp – response surface plots
Cloudchart Style


Continue to: chDial – dial and gauge charts
© Copyright Causeway Graphical Systems Ltd 2003