ColorRules

ColorRules

is an option that specifies how colors of cells should be determined from values.

Details

Examples

open allclose all

Basic Examples  (4)

Use color rules for ArrayPlot:

Use color rules for MatrixPlot:

Use color rules for GeoRegionValuePlot:

Use color rules for Colorize:

Scope  (4)

ColorRules can involve patterns:

If no explicit color rules apply, the default ArrayPlot coloring is used:

Color rules are applied before color function:

Cases specified as None are rendered in the background color:

Applications  (3)

Modular operations tables:

Highlight cells where the GCD is 1:

Color a cellular automaton pattern:

Wolfram Research (2004), ColorRules, Wolfram Language function, https://reference.wolfram.com/language/ref/ColorRules.html.

Text

Wolfram Research (2004), ColorRules, Wolfram Language function, https://reference.wolfram.com/language/ref/ColorRules.html.

CMS

Wolfram Language. 2004. "ColorRules." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ColorRules.html.

APA

Wolfram Language. (2004). ColorRules. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ColorRules.html

BibTeX

@misc{reference.wolfram_2024_colorrules, author="Wolfram Research", title="{ColorRules}", year="2004", howpublished="\url{https://reference.wolfram.com/language/ref/ColorRules.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_colorrules, organization={Wolfram Research}, title={ColorRules}, year={2004}, url={https://reference.wolfram.com/language/ref/ColorRules.html}, note=[Accessed: 22-November-2024 ]}