Patchwork - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


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

CRGB : 0.42 0.725 0.941

(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

PPalette Patchwork:BlueRedOrangeBluePurpleRedDarkBlueYellowDarkGreenDarkRedGreenPaleBlue

(2)

P1

RGB : 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,symbol=solidcircle

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

P20

RGB : 0.987 0.565 0.344

(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

RGB : 0.148 0.312 0.596

(6)

LookupP,1,shade=point

RGB : 0.0754 0.25 0.54

(7)

See Also

ColorTools

ColorTools[DisplayPalette]

ColorTools[Palette]

ColorTools[Palettes][Lookup]

plots[setcolors]