typestar

More than two axes in Igor Pro

Left and right come free; anything beyond that is an axis you make yourself.

Function ThreeStack(WAVE a, WAVE b, WAVE c)
    DoWindow/K Stack3
    Display/N=Stack3 a

    AppendToGraph/L=middle b
    AppendToGraph/L=upper c

    ModifyGraph axisEnab(left)={0, 0.3}
    ModifyGraph axisEnab(middle)={0.35, 0.65}, freePos(middle)=0
    ModifyGraph axisEnab(upper)={0.7, 1}, freePos(upper)=0

    Label left, "A"
    Label middle, "B"
    Label upper, "C"
End

How it works

  1. AppendToGraph/L=name puts a trace on a new named axis.
  2. ModifyGraph freePos and axisEnab place and shrink it.
  3. Three stacked plots in one graph is three axes sharing the bottom.

Keywords and builtins used here

The run, in numbers

Lines
15
Characters to type
339
Tokens
90
Three-star pace
85 tpm

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

Type this snippet

Step 5 of 6 in Styling, step 10 of 19 in Graphs & presentation.

← Previous Next →