X-Function:laycolor

From OriginLab Programming

Jump to: navigation, search

Contents

Brief Information

Fill layer background color

Command Line Usage

1. laycolor layer:="1:4" color:=2;

2. laycolor igp:=graph1 layer:=1 color:=8 border:=1;

Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
Input Graph igp

Input

GraphPage

<active>

Specifies the graph to be manipulated.

Layer layer

Input

string

1:0

Specifies the layer(s), whose background color is to be changed. Note: to specify multiple layers, use colon to separate the first layer and the last layer to be manipulated. For example, "1:3" means the first, second and the third layer.

Color color

Input

int

<auto>

Specifies the color used to fill the layer background.

Fill fill

Input

int

<auto>

Specifies the color used to fill the space between background and borderline.

Border border

Input

int

<auto>

Specifies the color of the borderline of the layer.

Description

This X-Function can be used to fill the layer background with a chosen color.

The background color can be extended to the layer borders, if the fill and border are set to be the same with color. In this case, the labels and axes titles area of the layer is also filled with the chosen background color, as shown in the below screenshot:

Image:laycolor_help_English_files_image002.jpg

Otherwise, only the area within the axes is filled, as shown below:

Image:laycolor_help_English_files_image004.jpg


Examples

For more examples, please refer to XF Script Dialog (press F11).

Related X-Functions

laymanage

Personal tools