KPG1_PGSTY

Establishes values for graphics attributes

Description:

This routine establishes current PGPLOT attributes so that they correspond to the values for a named graphics element stored in the supplied Plot (see SUN/210). Only attributes which have values explicitly set in the Plot are changed. If no value has been set for a Plot attribute, the corresponding PGPLOT attribute is left unchanged.

If SET is supplied .TRUE., then the PGPLOT attributes for the specified graphics element are extracted from the supplied Plot and made active. The previously active values are returned in ATTRS. If SET is supplied .FALSE., the values supplied in ATTRS are made current (in this case ATTRS is returned unchanged).

Invocation

CALL KPG1_PGSTY( IPLOT, ELEM, SET, ATTRS, STATUS )

Arguments

IPLOT = INTEGER (Given)
An AST pointer to a Plot.
ELEM = CHARACTER ( ) (Given)
The name of an AST graphics element.
SET = LOGICAL (Given)
Should the Plot values be made curent? Otherwise the values in ATTRS are made current.
ATTS( ) = DOUBLE PRECISION (Given and Returned)
On entry, the attribute values to set if SET is .FALSE., These should have been obtained from a previous call to this routine. On exit, the attribute values current on entry to this routine are returned (unless SET is .FALSE. in which case the supplied values are returned unchanged). This array should have at least 5 elements.
STATUS = INTEGER (Given and Returned)
The global status.