typestar

Layouts in Igor Pro

A layout is the page: graphs and tables placed where the figure needs them.

Function BuildFigure()
    DoWindow/K FigureOne
    NewLayout/N=FigureOne

    AppendLayoutObject/F=0/R=(72, 72, 360, 288) graph TraceGraph
    AppendLayoutObject/F=0/R=(72, 300, 360, 516) graph MatrixView

    ModifyLayout mag=0.75, units=0
    TextBox/C/N=panelA/A=LT/F=0 "A"
End

How it works

  1. NewLayout opens one; AppendLayoutObject places a window on it.
  2. Coordinates are in points, from the top left of the page.
  3. ModifyLayout sets the page size and orientation.

Keywords and builtins used here

The run, in numbers

Lines
10
Characters to type
257
Tokens
66
Three-star pace
90 tpm

At the three-star pace of 90 tokens a minute, this run takes about 44 seconds.

Type this snippet

Step 1 of 3 in Off the screen, step 16 of 19 in Graphs & presentation.

← Previous Next →