dislin.scrmod('revers') dislin.metafl('cons') dislin.setpag('da4p') dislin.disini() dislin.pagera() dislin.complx() dislin.titlin(ctit1, 2) dislin.titlin(ctit2, 4) dislin.axspos(200, 2400) dislin.axslen(1800, 1800) dislin.name('X-axis', 'X') dislin.name('Y-axis', 'Y') dislin.name('Z-axis', 'Z') dislin.intax() dislin.vkytit(-300) dislin.zscale(-1., 1.) dislin.surmsh('on') dislin.graf3d(-4., 4., -4., 1., -4., 4., -4., 1., -3., 3., -3., 1) dislin.height(40) dislin.title() step = 2 * pi / 30. dislin.surfcp(myfunc, 0., 2 * pi, step, 0., 2 * pi, step) dislin.disfin()
#!/usr/bin/env python import dislin ctit = 'Symbols' dislin.setpag('da4p') dislin.metafl('cons') dislin.disini() dislin.pagera() dislin.complx() dislin.paghdr('H. Michels (', ')', 2, 0) dislin.height(60) nl = dislin.nlmess(ctit) dislin.messag(ctit, (2100 - nl) / 2, 200) dislin.height(50) dislin.hsymbl(120) ny = 150 for i in range(0, 22): if (i % 4) == 0: ny = ny + 400 nxp = 550 else: nxp = nxp + 350 nl = dislin.nlnumb(i, -1) dislin.number(i, -1, nxp - nl / 2, ny + 150)
dislin.setpag('da4p') dislin.disini() dislin.pagera() dislin.complx() dislin.titlin(ctit1, 1) dislin.titlin(ctit2, 3) dislin.intax() dislin.axspos(450, 2650) dislin.name('X-axis', 'X') dislin.name('Y-axis', 'Y') dislin.graf(0., 360., 0., 90., 0., 360., 0., 90.) dislin.height(50) dislin.title() dislin.height(30) for i in range(0, 9): zlev = -2. + i * 0.5 if i == 4: dislin.labels('NONE', 'CONTUR') else: dislin.labels('FLOAT', 'CONTUR') dislin.setclr((i + 1) * 28) dislin.contur(xray, n, yray, m, zmat, zlev) dislin.disfin()