B.5 Interpolation Methods#! /usr/bin/env pythonimport dislinctit = ’Interpolation Methods’xray = [0., 1., 3., 4.5, 6., 8., 9., 11., 12., 12.5,13., 15., 16., 17., 19., 20.]yray = [2., 4., 4.5, 3., 1., 7., 2., 3., 5., 2., 2.5,2., 4., 6., 5.5, 4.]cpol = [’SPLINE’, ’STEM’, ’BARS’, ’STAIRS’, ’STEP’, ’LINEAR’]dislin.setpag (’da4p’)dislin.metafl (’cons’)dislin.disini ()dislin.pagera ()dislin.complx ()dislin.incmrk (1)dislin.hsymbl (25)dislin.titlin (ctit, 1)dislin.axslen (1500, 350)dislin.setgrf (’LINE’, ’LINE’, ’LINE’, ’LINE’)nya = 2700for i in range (0, 6):dislin.axspos (350, nya - i * 350)dislin.polcrv (cpol[i])dislin.marker (0)dislin.graf (0., 20., 0., 5., 0., 10., 0., 5.)nx = dislin.nxposn (1.)ny = dislin.nyposn (8.)dislin.messag (cpol[i], nx, ny)dislin.curve (xray, yray, 16)if i == 5:dislin.height (50)dislin.title ()dislin.endgrf ()dislin.disfin ()42
Figure B.5: Interpolation Methods43
- Page 2: c○ Helmut Michels, Max-Planck-Ins
- Page 8 and 9: Helmut MichelsMax-Planck-Institut f
- Page 11 and 12: xrayyrayzlvrayis a floatingpoint ar
- Page 13: XRESYRESX3VIEWY3VIEWZ3VIEWX3LENY3LE
- Page 16 and 17: Routinen = pdfbuf (cbuf, nmax)pdfmo
- Page 19 and 20: A.7 Axis SystemsRoutineMeaningaddla
- Page 21 and 22: Routineticpos (copt, cax)timopt ()M
- Page 23 and 24: A.13 Line Styles and Shading Patter
- Page 25 and 26: Routinenx,ny,nz = getscl ()nw,nh =
- Page 27 and 28: Routinen = bitsi4 (nbits, ninp, iin
- Page 29 and 30: A.25 Coloured 3-D GraphicsRoutineax
- Page 31 and 32: Routinesurmat (zmat, nx, ny, ixpts,
- Page 33 and 34: Routineimgini ()imgmod (cmod)imgsiz
- Page 35 and 36: Routineswgtxt (id, cval)swgtyp (cty
- Page 37 and 38: Appendix BExamplesThis appendix pre
- Page 39 and 40: 1.00.50.0-0.5-1.0Demonstration of C
- Page 41 and 42: 60Polar Plots90120150301800.2 0.4 0
- Page 43 and 44: Symbols0 1 2 34 5 6 78 9 10 1112 13
- Page 45: Figure B.4: Logarithmic Scaling41
- Page 49 and 50: Figure B.6: Line Styles45
- Page 51 and 52: 1.00.50.0-0.5-1.0Demonstration of C
- Page 53 and 54: Figure B.8: Shading Patterns49
- Page 55 and 56: 01111131114211531170119113111331134
- Page 57 and 58: Z-axis3602701809003-D Colour Plot o
- Page 59 and 60: Figure B.11: Surface Plot55
- Page 61 and 62: Surface Plot of the Parametric Func
- Page 63 and 64: dislin.labels (’NONE’, ’CONTU
- Page 65 and 66: B.14 Shaded Contour Plot#! /usr/bin
- Page 67 and 68: Shaded Contour PlotF(X,Y) = (X 2 -
- Page 69 and 70: Figure B.15: Pie Charts65
- Page 71: Figure B.16: World Coastlines and L