next up previous contents index
Next: 9.4 comment() Up: 9 Commands Previous: 9.2 chi_noise()

9.3 color()

Description
Manipulate the plotting color table. The color table is used to set the default colors for the traces (x-y pairs) in a plot as well as the background, foreground and grid colors. Note that colors on screen will not be affected until plot() is re-executed.
Input Program Variables
None.
Keywords/Values

Keyword Variable Default Description

show
    display color table
fg   black foreground color
bg   white background color
grid   #CCBEE0 color of grid displayed on window
1   blue first x-y trace
2   red second x-y trace
3   green third x-y trace
4   black fourth x-y trace
5   magenta fifth x-y trace
&vellip#vdots;     &vellip#vdots;

     

Output Program Variables
None.
Notes
The foreground color will be used for the outer box, tick marks, and all text on plot. The list of named colors can be found in the file rgb.txt in the PGPLOT installation directory.
Examples

 
  Iff>  color (fg = white, bg = black)
  Iff>  color (1 = red, 2 = '#33EEBB')
See also
linestyle()(Section 9.19),plot()(Section 9.27), section 5.3.


next up previous contents index
Next: 9.4 comment() Up: 9 Commands Previous: 9.2 chi_noise()
Matt Newville
2004-02-09