Patchwork Color Palette - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Graphics : Packages : ColorTools : Color Collections : ColorTools/Collection/Patchwork

Patchwork Color Palette

 

Description

Examples

Description

• 

The Patchwork plot palette is a collection of bright colors, originally designed to yield attractive maps. See for example the WorldMap object. It is designed for coloring collections of filled areas. There are ten colors in the palette.

ColorTools:-DisplayPalette("Patchwork",noextend);

1. Blue

2. RedOrange

3. BluePurple

4. Red

5. DarkBlue

6. Yellow

7. DarkGreen

8. DarkRed

9. Green

10. PaleBlue





















 

Examples

You can reference colors in the palette by name or number in most commands that understand color names.

plotx,x3,x=1..1,color=Patchwork 2,Patchwork Blue

CColorTools:-ColorPatchwork 10

ColorTools:-ColorRGB,0.41960784,0.72549020,0.94117647

(1)

You can make Patchwork the default palette in plots using setcolors

plots:-setcolorsPatchwork:

You can programatically access the colors using ColorTools commands

PColorTools:-GetPalettePatchwork

ColorTools:-Palettemodule...end module,module...end module,module...end module,module...end module,module...end module,module...end module,module...end module,module...end module,module...end module,module...end module,Blue,RedOrange,BluePurple,Red,DarkBlue,Yellow,DarkGreen,DarkRed,Green,PaleBlue,,palettename=Patchwork,palettetype=fill

(2)

P1

ColorTools:-ColorRGB,0.26666667,0.42352941,0.70196078,caption=Blue

(3)

nnumcolorsP

n10

(4)

plotseqsinx+iπn,i=1..n,x=0..2π,axes=boxed,color=:-GetColorsP1..n,legend=:-GetColorNamesP1..n,numpoints=25,style=point

ColorTools algorithms will automatically generate new colors beyond the main 10 colors:

P20

ColorTools:-ColorRGB,0.06486839830,0.1001566799,0.07510076000

(5)

The Patchwork palette is designed for filled areas, but the Lookup command can provide slightly altered shades of its colors for use in coloring points or lines.

LookupP,1,shade=line

ColorTools:-ColorRGB,0.070353607,0.35787069,0.67240164

(6)

LookupP,1,shade=point

ColorTools:-ColorRGB,0.058982486,0.34293945,0.64756084

(7)

See Also

ColorTools

ColorTools[DisplayPalette]

ColorTools[Palette]

ColorTools[Palettes][Lookup]

plots[setcolors]