2.5.42 pfit2l

Menu Information

Graph: Fit Page to Layers

Format: Fit Page to Layers

Brief Information

Expand graph page to encompass all layers

Additional Information

Minimum Origin Version Required: 9.1

Command Line Usage

1. pfit2l margin:=1 direction:=0;

2. pfit2l margin:=tight;

3. pfit2l margin:=0 borderwid:=10 direction:=2;

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 Window igp

Input

Page

<active>
A named graph page or can be the active graph page.
Margin Control margin

Input

int

0
Margin Control allowed values: 0=border:Border, 1=tight:Tight

Note: To set the margins individually in four directions(left, right, top and bottom), you can use the X-Function layarrange.

Border Width borderwid

Input

double

5
Use only when Margin Control is 0=border. Specify border that is a percentage of width of the smallest rectangle to completely encompass all objects on the graph page.
Adjust Direction direction

Input

int

0
Adjust Direction allowed values: 0=both:Height and Width, 1=height:Height Only, 2=width:Width Only


Include All Graph Objects go

Input

int

1
Fit page including all Graph objects

Option list:

  • 0 : false
  • 1 : true

Description

This X-Function is useful for removing unwanted white space from outside the graph layers or for padding a graph that impinges on the graph page.

References

Related X-Functions

gfitp


Keywords:fit, enlarge