Sub Map
' param λ, n
' return x, y
x = λ - 220
y = 300 - (n - 1.5) * 1000
EndSub
Sub Plot
GraphicsWindow.PenColor = "Black"
For i = 1 To ni
λ = index[i]
clr = color[λ]
n = clr[glass]
Map()
If 1 < i Then
GraphicsWindow.PenWidth = 2
GraphicsWindow.DrawLine(x, y, xLast, yLast)
EndIf
GraphicsWindow.PenWidth = 0
GraphicsWindow.BrushColor = clr["c"]
dot = Shapes.AddEllipse(4, 4)
Shapes.Move(dot, x - 2, y - 2)
xLast = x
yLast = y
EndFor
GraphicsWindow.BrushColor = "Black"
GraphicsWindow.DrawText(x, y - 20, glass)
EndSub