x = 1:100
y = sin(x /20) +uniform(100, 1) /10
d = createdisplay(2, 2)
show(d, 1, 1, x~y)
show(d, 1, 2, x~y)
show(d, 2, 1, x~y)
show(d, 2, 2, x~y)
;
; now we use setgopt to give the upper left window the
; headline "default"
;
setgopt(d, 1, 1, "title", "default")
;
; note that the title tells you exactly what we have
; done in each of the other windows
;
title12 = "ylim = (-4) | 4, xlim = 0 | 50"
setgopt(d,1,2,"title",title12,"ylim",(-4)|4,"xlim",0|50)
title21 = "ymajor = 0.3, xmajor = 15"
setgopt(d,2,1,"title",title21,"ymajor",0.3, "xmajor",15)
title22 = "yoffset = 13 | 13, xoffset = 20 | 20"
setgopt(d,2,2,"title",title22,"yoffset",13|13,"xoffset",20|20)