| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
9.1.8 Pallete and colors (Python)
- Method on mglGraph (Python):
voidSetPalette (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 (Python):
voidSetPalColor (intn,floatr,floatg,floatb) Sets color for individual palette entry. Look at
mgl_set_palette()function for simplified palette setting.
- Method on mglGraph (Python):
voidSetPalNum (intnum) Sets the number of actual colors in palette. The value must be less then 100.
- Method on mglGraph (Python):
voidSetScheme (const char *sch) Set the color scheme for following plots. Usually this function is used internally. See section Color scheme.
