Documentation

RGB::plotColorPalette

Display predefined colors

Use only in the MuPAD Notebook Interface.

This functionality does not run in MATLAB.

Syntax

RGB::plotColorPalette(str)

Description

RGB::plotColorPalette(str) displays the colors in the RGB name space whose names contain str.

RGB::plotColorPalette uses RGB::ColorNames and plots samples of the colors found by this routine, in tabular fashion.

Environment Interactions

RGB::plotColorPalette plots a list of color samples with names.

Examples

Example 1

The following call plots all predefined colors containing "Olive":

RGB::plotColorPalette("Olive")

When the list of colors found gets larger, they are distributed over more lines:

RGB::plotColorPalette("Blue")

Parameters

subname

A part of a color name: a string or an identifier

Return Values

RGB::plotColorPalette returns the empty object, null().

See Also

MuPAD Functions

Was this topic helpful?