[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
3.1.8 Pallete and colors
- Method on
mglGraph
(C++, Python):void
SetPalette (const char *
colors) - C function:
void
mgl_set_palette (HMGL
gr,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.
- Method on
mglGraph
(C++, Python):void
SetPalColor (int
n,float
r,float
g,float
b) - C function:
void
mgl_set_pal_color (HMGL
gr,int
n,float
r,float
g,float
b) Sets color for individual palette entry. Look at
SetPalette()
function for simplified palette setting.
- Method on
mglGraph
(C++, Python):void
SetPalNum (int
num) - C function:
void
mgl_set_pal_num (HMGL
gr,int
num) Sets the number of actual colors in palette. The value must be less then 100.
- Method on
mglGraph
(C++, Python):void
SetScheme (const char *
sch) - C function:
void
mgl_set_scheme (HMGL
gr,const char *
sch) Set the color scheme for following plots. Usually this function is used internally. See section Color scheme.
- Method on
mglGraph
(C++):void
SelectPen (const char *
sch) Set the line and mark styles for following plots. Usually this function is used internally. See section Line styles.
- Obsolete option of mglGraph:
mglColor
Pal[101]
Color palette for 1D plotting. See
SetPalette()
.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |