You can use the GREPLAY
procedure to display previously created graphs. Sometimes you might
need to replay the graphs on a device that cannot display as many
colors as the device on which the graph was originally developed.
Use the CMAP statement
(see CMAP) to control some of the remapping.
When you replay graphs
on devices that display fewer colors than are in the graph, two situations
can cause problems:
-
Colors are specified that the device
does not support.
-
More colors are specified than
the device can display at one time.
If you specify colors
on a device that does not support the colors requested, the colors
are remapped to gray. A note is issued to the SAS log telling you
when a color is mapped gray.
The number of colors
that your device can display affects the actual colors displayed.
If your graphics output device can create a maximum of 64 distinct
colors, and your graph contains 256 colors, then the 65th through
the 256th color specifications are remapped to the colors specified
in the current style. If the NOGSTYLE system option is in effect,
the colors are remapped to the device's available colors and might
not display as the color that you specify.
You can use the TARGETDEVICE=
graphics option to preview the way a graph is going to look on a different
device. Set the device entry name of the device driver to this graphics
option. The graph is displayed as close as possible to the display
when the other device is used.
Note: When you use the TARGETDEVICE=
graphics option,
SAS/GRAPH uses the color list of the target device
as the default color list; any color that you explicitly use is displayed
when you preview the graph, although the color might be mapped by
the target device.
Refer to TARGETDEVICE for complete
information about the TARGETDEVICE= graphics option.