Graph: Fit Page to Layers
Format: Fit Page to Layers
Expand graph page to encompass all layers
Minimum Origin Version Required: 9.1
1. pfit2l margin:=1 direction:=0;
2. pfit2l margin:=tight;
3. pfit2l margin:=0 borderwid:=10 direction:=2;
Please refer to the page for additional option switches when accessing the x-function from script
Display Name |
Variable Name |
I/O and Type |
Default Value |
Description |
---|---|---|---|---|
Input Window | igp |
Input Page |
|
A named graph page or can be the active graph page. |
Margin Control | margin |
Input int |
|
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 |
|
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 |
|
Adjust Direction allowed values: 0=both:Height and Width, 1=height:Height Only, 2=width:Width Only
|
Include All Graph Objects | go |
Input int |
|
Fit page including all Graph objects
Option list:
|
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.
Keywords:fit, enlarge