
%if LEGEND != ON %then
	%unset LEGEND_USER_TEXT

%if GRAPH_LINE != ON %or GRAPH_TYPE != AREA %and GRAPH_TYPE != CURVE %and GRAPH_TYPE != CURVE %then
	%unset GRAPH_LINE_THICKNESS
	%unset GRAPH_LINE_STYLE
	%unset GRAPH_LINE_COLOUR

%if GRAPH_SYMBOL != ON %or GRAPH_SYMBOL_OUTLINE != ON %or GRAPH_TYPE != AREA %and GRAPH_TYPE != AREA %and GRAPH_TYPE != CURVE %and GRAPH_TYPE != CURVE %and GRAPH_TYPE != CURVE %and GRAPH_TYPE != CURVE %then
	%unset GRAPH_SYMBOL_OUTLINE_STYLE
	%unset GRAPH_SYMBOL_OUTLINE_COLOUR
	%unset GRAPH_SYMBOL_OUTLINE_THICKNESS

%if GRAPH_SYMBOL != ON %or GRAPH_TYPE != AREA %and GRAPH_TYPE != CURVE %and GRAPH_TYPE != CURVE %then
	%unset GRAPH_SYMBOL_MARKER_INDEX
	%unset GRAPH_SYMBOL_OUTLINE
	%unset GRAPH_SYMBOL_COLOUR
	%unset GRAPH_SYMBOL_HEIGHT

%if GRAPH_MISSING_DATA_MODE != DROP %and GRAPH_MISSING_DATA_MODE != JOIN %or GRAPH_TYPE != AREA %and GRAPH_TYPE != CURVE %and GRAPH_TYPE != CURVE %then
	%unset GRAPH_MISSING_DATA_COLOUR
	%unset GRAPH_MISSING_DATA_THICKNESS
	%unset GRAPH_MISSING_DATA_STYLE

%if GRAPH_TYPE != AREA %and GRAPH_TYPE != CURVE %and GRAPH_TYPE != CURVE %then
	%unset GRAPH_COLOUR_VARIABLE_NAME
	%unset GRAPH_LINE
	%unset GRAPH_LINE_STYLE_VALUE_LIST
	%unset GRAPH_COLOUR_LIST
	%unset GRAPH_LINE_STYLE_LIST_POLICY
	%unset GRAPH_Y_SUPPRESS_ABOVE
	%unset GRAPH_THICKNESS_LIST
	%unset GRAPH_LINE_STYLE_VARIABLE_NAME
	%unset GRAPH_STYLE_SETTING
	%unset GRAPH_COLOUR_VALUE_LIST
	%unset GRAPH_Y_SUPPRESS_BELOW
	%unset GRAPH_CURVE_METHOD
	%unset GRAPH_LINE_STYLE_LIST
	%unset GRAPH_THICKNESS_LIST_POLICY
	%unset GRAPH_X_SUPPRESS_BELOW
	%unset GRAPH_THICKNESS_VALUE_LIST
	%unset GRAPH_X_SUPPRESS_ABOVE
	%unset GRAPH_THICKNESS_VARIABLE_NAME
	%unset GRAPH_MISSING_DATA_MODE
	%unset GRAPH_SYMBOL
	%unset GRAPH_COLOUR_LIST_POLICY

%if GRAPH_TYPE != BAR %then
	%unset GRAPH_BAR_ANNOTATION
	%unset GRAPH_BAR_ANNOTATION_FONT_SIZE
	%unset GRAPH_BAR_CLIPPING
	%unset GRAPH_BAR_JUSTIFICATION
	%unset GRAPH_BAR_LINE_STYLE
	%unset GRAPH_BAR_WIDTH
	%unset GRAPH_BAR_LINE_THICKNESS
	%unset GRAPH_BAR_LINE_COLOUR
	%unset GRAPH_BAR_STYLE
	%unset GRAPH_BAR_COLOUR
	%unset GRAPH_BAR_ANNOTATION_FONT_COLOUR
	%unset GRAPH_BAR_MINIMUM_VALUE
	%unset GRAPH_BAR_ORIENTATION

%if GRAPH_SHADE != OFF %and GRAPH_SHADE != ON %and GRAPH_SHADE != ON %or GRAPH_SHADE_STYLE != AREA_FILL %and GRAPH_SHADE_STYLE != AREA_FILL %and GRAPH_SHADE_STYLE != AREA_FILL %and GRAPH_SHADE_STYLE != DOT %and GRAPH_SHADE_STYLE != HATCH %or GRAPH_TYPE != AREA %and GRAPH_TYPE != BAR %and GRAPH_TYPE != CURVE %then
	%unset GRAPH_SHADE_COLOUR

%if GRAPH_SHADE != OFF %and GRAPH_SHADE != ON %and GRAPH_SHADE != ON %or GRAPH_SHADE_STYLE != AREA_FILL %and GRAPH_SHADE_STYLE != HATCH %or GRAPH_TYPE != AREA %and GRAPH_TYPE != BAR %and GRAPH_TYPE != CURVE %then
	%unset GRAPH_SHADE_HATCH_INDEX

%if GRAPH_SHADE != OFF %and GRAPH_SHADE != ON %and GRAPH_SHADE != ON %or GRAPH_SHADE_STYLE != AREA_FILL %and GRAPH_SHADE_STYLE != DOT %or GRAPH_TYPE != AREA %and GRAPH_TYPE != BAR %and GRAPH_TYPE != CURVE %then
	%unset GRAPH_SHADE_DOT_DENSITY
	%unset GRAPH_SHADE_DOT_SIZE

%if GRAPH_SHADE != OFF %and GRAPH_SHADE != ON %and GRAPH_SHADE != ON %or GRAPH_TYPE != AREA %and GRAPH_TYPE != BAR %and GRAPH_TYPE != CURVE %then
	%unset GRAPH_SHADE_STYLE

%if GRAPH_TYPE != AREA %and GRAPH_TYPE != BAR %and GRAPH_TYPE != CURVE %then
	%unset GRAPH_SHADE

%if GRAPH_TYPE != FLAG %then
	%unset GRAPH_FLAG_LENGTH
	%unset GRAPH_FLAG_COLOUR

%if GRAPH_TYPE != ARROW %then
	%unset GRAPH_ARROW_UNIT_VELOCITY
	%unset GRAPH_ARROW_COLOUR
