SETALLWMARGIN - DADiSP

DADiSP Worksheet Functions > Function Categories > Window Sizing & Layout > SETALLWMARGIN

 

SETALLWMARGIN

Purpose:

Sets the plotting margin for each Window of a Worksheet.

Syntax:

SETALLWMARGIN(margin, size)

margin

-

Optional. An integer, the margin to set:

-1:

All margins

1:

Left

2:

Right

3:

Top

4:

Bottom

size

-

Optional. A real, the size of the margin (0 < = size <= 100). Defaults to -1 (auto margin sizing).

Example:

setallwmargin(1, 20)

 

sets the left plotting margin of each Window to 20% of the plotting area. The left axes of all the Windows of the Worksheet will line up.

 

setallwmargin(1, -1)

 

sets the left side plotting margin to the default.

Remarks:

size is specified in terms of percent of the plotting area of a Window, where 0 means no margin and 100 means full margin (i.e. no plotting area). If size is set to -1, then the margin is sized automatically.

 

SETALLWMARGIN can be used to ensure that the axes of all the Windows are aligned.

 

It is possible to set a margin so small that no scales appear or to set it so large that no plot appears. setallwmargin(-1, -1) restores the plotting margins to the default.

See Also:

GETWMARGIN

LAYOUT

SETWMARGIN