typestar

Styling traces in Igor Pro

ModifyGraph is one operation with a hundred keywords, addressed per trace.

Function StyleGraph()
    ModifyGraph rgb(raw)=(0, 0, 65535), lsize(raw)=1.5
    ModifyGraph mode(fitted)=3, marker(fitted)=19, msize(fitted)=2
    ModifyGraph rgb(fitted)=(65535, 32768, 0)

    ModifyGraph grid=1, tick=2, mirror=1, standoff=0
    ModifyGraph axThick=1.2, font="Helvetica", fSize=11
End

How it works

  1. rgb(name)=(r,g,b) takes 16-bit color components.
  2. mode picks lines, markers or bars; lsize and marker do the rest.
  3. A keyword without a trace name applies to every trace.

Keywords and builtins used here

The run, in numbers

Lines
8
Characters to type
283
Tokens
87
Three-star pace
85 tpm

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

Type this snippet

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

← Previous Next →