2.5.10 gfitp

Menu Information

Graph: Fit Layers to Page

Brief Information

Adjust graph layers to tight fit within the page

Additional Information

Minimum Origin Version Required: 2018b

Command Line Usage

1. gfitp margin:=5;

2. gfitp %H margin:=5 aspect:=1;

3. gfitp Graph1;

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>
A named graph page or can be the active graph page.
Margin (% of page size, such as 2 or 5) margin

Input

double

0
Margin (% of page size, such as 2 or 5)
Maintain Layer Aspect Ratios aspect

Input

int

0
Maintain Layer Aspect Ratios

allowed values: 0=false, 1=true

Description

This X-Function can be used for the following:

  • Remove unwanted white space around the outside of your graph layers.
  • Adjust all graph layers and layer-contained objects to fit into the graph page.
  • Adjustments can be made with or without maintaining layer aspect ratio.
  • Operates on the <active> graph or named graph.

Algorithm

References

Related X-Functions

pfit2l


Keywords:margin, border, aspect ratio