ColorTools - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Graphics : Packages : ColorTools : ColorTools/SpatterPlot

ColorTools

  

SpatterPlot

  

create a scatter plot of colors

 

Calling Sequence

Parameters

Options

Description

Examples

Compatibility

Calling Sequence

SpatterPlot(colors)

Parameters

colors

-

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

Options

• 

space=string designating a known color space

  

Use the specified color space instead of "Lab". "Luv" and "xyY" 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 SpatterPlot command renders a scatter plot of colors by their chromatic dimensions. The point for each color is a randomly chosen shape, with its size given by the lightness of the color. For colors given by Color objects or strings, a plot annotation will be created for its point.

Examples

withColorTools:withImageTools:

SpatterPlotGetPaletteNiagara

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

SpatterPlotcolors,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,25.maxHeightimg,Widthimg:

colorsmapop,convertimg,listlist:

SpatterPlotcolors

Compatibility

• 

The ColorTools[SpatterPlot] 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[SpatterPlot3d]