manpagez: man pages & more
info mathgl
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.1.8 Pallete and colors

Method on mglGraph: void SetPalette (const char *colors)

Sets the palette as selected colors. Default value is "Hbgrcmyhlnqeup" that corresponds to colors: dark gray ‘H’, blue ‘b’, green ‘g’, red ‘r’, cyan ‘c’, magenta ‘m’, yellow ‘y’, gray ‘h’, blue-green ‘l’, sky-blue ‘n’, orange ‘q’, yellow-green ‘e’, blue-violet ‘u’, purple ‘p’. The palette is used mostly in 1D plots (see section 1D plotting) for curves which styles are not specified.

General option of mglGraph: mglColor Pal[101]

Color palette for 1D plotting. This variable is obsolete – use SetPalette() function instead.

General option of mglGraph: int NumPal

Number of actual colors in palette. The value must be less then 100. This variable is obsolete – use SetPalette() function instead.

Method on mglGraph: void SetScheme (const char *sch)

Set the color scheme for following plots. Usually this function is used internally. See section Color scheme.

Method on mglGraph: void SelectPen (const char *sch)

Set the line and mark styles for following plots. Usually this function is used internally. See section Line styles.


© manpagez.com 2000-2026
Individual documents may contain additional copyright information.