SpatterPlot3d - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


ColorTools

  

SpatterPlot3d

  

create a 3-D scatter plot of colors

 

Calling Sequence

Parameters

Options

Description

Examples

Compatibility

Calling Sequence

SpatterPlot3d(colors, opts)

Parameters

colors

-

list of colors in formats recognized by ColorTools or a Palette object

opts

-

(optional) equation(s) of the form option=value where option is one of space, symbol, or displayable

Options

• 

space=string designating a known color space

  

Use the specified color space instead of "Lab".  All color spaces work well.

• 

symbol="box", "circle", or "diamond"

  

Specify a symbol in order to use only that respective shape for points, instead of the random shapes.

• 

displayable

  

If specified ColorTools:-ToDisplayable will not be called for the colors sent to plot.  This should improve performance but will also cause non-displayable color points to be displayed as white.

Description

• 

The SpatterPlot3d command renders a scatter plot of colors by their chromatic dimensions. The point for each color is a randomly chosen shape.

Examples

withColorTools:withImageTools:

SpatterPlot3dGetPaletteNiagara

colorsseqRandomTools:-Generatelistfloatrange=0..1,digits=4,method=uniform,3,i=1..200:

SpatterPlot3dcolors,symbol=box

The following commands read an image and extract its pixels as RGB colors.

imagefilecatkerneloptsdatadir,/images/fjords.jpg:

imgReadimagefile:

Scaling is important here to reduce the total number of colors in the plot.

imgScaleimg,35.maxHeightimg,Widthimg:

colorsmapop,convertimg,listlist:

SpatterPlot3dcolors

Compatibility

• 

The ColorTools[SpatterPlot3d] command was introduced in Maple 18.

• 

For more information on Maple 18 changes, see Updates in Maple 18.

See Also

ColorTools

ColorTools/ColorSpaces

ColorTools[Color]

ColorTools[SpatterPlot]