2.5.27 laysetratio

Brief Information

Set ratio of graph layer width to height

Command Line Usage

1. laysetratio igp:=Graph1 destlayer:="1:0" ratio:=1.5;

2. laysetratio destlayer:="1" ratio:=1;

X-Function Execution Options

Please refer to the page for additional option switches when accessing the x-function from script

Variables

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

Input

GraphPage

<active>

Specifies the graph to manipulate.

Layer destlayer

Input

string

<active>

Specifies the layer(s) to manipulate. Note: to specify multiple layers, use colon to separate the first layer and the last layer to manipulate. For example, "1:3" means the first, second and the third layer.

Ratio ratio

Input

double

<unassigned>

Specifies the new ratio of layer width to layer height for each destination layer.

Description

This X-Function can be used to set the ratio of width to height of several graph layers. If the ratio of the layer width to the layer height is less than the specified ratio, the layer width will be kept unchanged while the layer height will be reset according to the new ratio. If the ratio of the layer width to the layer height is more than the new ratio, the layer height will be kept unchanged while the layer width will be adjusted.

Related X-Functions

laymanage