Reference Guide > Graphics and Plotting Keywords > Background Keyword
  

Background Keyword
Used With Routines: BAR3D,   CONTOUR,   CONTOURFS,   CONTOUR2,   OPLOT,   PLOTSHADE_SURF,   SHADE_SURF_IRR,   SURFACE
Corresponding System Variable:   !P.Background.
The background color index to which the screen is set when the ERASE procedure is called.
The content of the graphics window will be printed exactly as shown on the screen. In order to improve visibility, change the color of the background to white. When displaying plots that you plan to print in PostScript, use the Background keyword to set the background color to white.
 
note
Not all devices support erasing the background to a color index.
Example
To produce a black plot with a white background on a color display:
PLOT, y, Background = 255, Color = 0

Version 2017.0
Copyright © 2017, Rogue Wave Software, Inc. All Rights Reserved.