RGB::plotColorPalette

Display predefined colors

Use only in the MuPAD Notebook Interface.

This functionality does not run in MATLAB.

Syntax

RGB::plotColorPalette(subname)

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 returns all predefined color names containing "Olive":

RGB::ColorNames("Olive")

The RGB values of these colors are:

RGB::Olive, RGB::OliveDrab, RGB::OliveGreen, 
RGB::OliveGreenDark

Example 2

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::ColorNames returns a list of predefined color names. RGB::plotColorPalette returns the empty object, null().

See Also

MuPAD Functions

Was this topic helpful?