create a 3-D scatter plot of colors
list of colors in formats recognized by ColorTools
Use the specified color space instead of "Lab". All color spaces work well.
Define "box", "circle", or "diamond" in order to use only that respective shape for points, instead of the random shapes.
The SpatterPlot3d command renders a scatter plot of colors by their chromatic dimensions. The point for each color is a randomly chosen shape.
colors ≔ seq⁡RandomTools:-Generate⁡list⁡float⁡range=0..1,digits=4,method=uniform,3,i=1..200:
The following commands read an image and extract its pixels as RGB colors.
imagefile ≔ cat⁡kernelopts⁡datadir,/images/fjords.jpg:
img ≔ Read⁡imagefile:
Scaling is important here to reduce the total number of colors in the plot.
img ≔ Scale⁡img,35.max⁡Height⁡img,Width⁡img:
colors ≔ map⁡op,convert⁡img,listlist:
The ColorTools[SpatterPlot3d] command was introduced in Maple 18.
For more information on Maple 18 changes, see Updates in Maple 18.
Download Help Document
What kind of issue would you like to report? (Optional)
Thank you for submitting feedback on this help document. Your feedback will be used
to improve Maple's help in the future.