Routinerlpoin (x, y, nw, nh, nc)rlrec (x, y, xw, xh)rlrnd (x, y, xw, xh, iopt)rlsec (x, y, r1, r2, a, b, ncol)rlvec (x1, y1, x2, y2, ivec)rlwind (x, xp, yp, nw, a)sector (nx, ny, nr1, nr2,a, b, ncol)strtpt (x, y)trifll (xray, yray)vector (nx, ny, nu, nv, ivec)windbr (x, nx, ny, nw, a)xmove (x, y)xdraw (x, y)Meaningplots coloured rectangles for user coordinates.plots rectangles for user coordinates.plots for user coordinates a rectangle withrounded corners.plots coloured pie sectors for user coordinates.plots vectors for user coordinates.plots wind speed symbols for user coordinates.plots coloured pie sectors.moves the pen to a point.plots solid filled rectangles.plots vectors.plots wind speed symbols.moves the pen to a point.plots a line to a point.Figure A.18: Elementary Plot RoutinesA.19 Conversion of CoordinatesRoutinecolray (zray, nray, n)n = nxposn (x)n = nyposn (y)n = nzposn (z)trfco1 (xray, n, cfrom, cto)trfco2 (xray, yray, n, cfr, cto)trfco3 (xray, yray, zray, n, cfr, cto)trfrel (xray, yray, n)x = xinvrs (nx)x = xposn (x)y = yinvrs (ny)y = yposn (y)Meaningconverts Z-coordinates to colour numbers.converts X-coordinates to plot coordinates.converts Y-coordinates to plot coordinates.converts Z-coordinates to colour numbers.converts one-dimensional coordinates.converts two-dimensional coordinates.converts three-dimensional coordinates.converts X- and Y-coordinates to plot coordinates.converts X plot coordinates to user coordinates.converts X-coordinates to real plot coordinates.converts Y plot coordinates to user coordinates.converts Y-coordinates to real plot coordinates.Figure A.19: Conversion of CoordinatesA.20 Utility RoutinesRoutinebezier (xray, yray, n,xpray, ypray, np)n = bitsi2 (nbits, ninp, iinp,nout, iout)Meaningcalculates a Bezier interpolation.allows bit manipulation on 16 bit variables.22
Routinen = bitsi4 (nbits, ninp, iinp,nout, iout)xm, ym, r = circ3p (x1, y1,x2, y2, x3, y3)cstr = fcha (x, ndig)n = flen (x, ndig)nh = histog (xray, n,xhray, yhray)cstr = intcha (nx)n = intlen (nx)n = nlmess (cstr)n = nlnumb (x, ndig)sortr1 (xray, n, copt)sortr2 (xray, yray, n, copt)npt = spline (xray, yray, n,xsray, ysray)swapi2 (iray, n)swapi4 (iray, n)trfmat (zmat, nx, ny,zmat2, nx2, ny2)ntri = triang (xray, yray, n,i1ray, i2ray, i3ray, nmax)n = trmlen (cstr)upstr (cstr)Meaningallows bit manipulation on 32 bit variables.calculates a circle specified by 3 points.converts floating-point numbers to character strings.calculates the number of digits for floating-point numbers.calculates a histogram.converts integers to character strings.calculates the number of digits for integers.returns the length of character strings in plot coordinates.returns the length of numbers in plot coordinates.sorts floating-point numbers.sorts points in the X-direction.returns splined points as calculated in CURVE.swaps the bytes of 16 bit integer variables.swaps the bytes of 32 bit integer variables.converts matrices.calculates the Delaunay triangulation.calculates the number of characters in character strings.converts a character string to uppercase letters.Figure A.20: Utility RoutinesA.21 Date RoutinesRoutinebasdat (id, im, iy)n = incdat (id, im, iy)n = nwkday (id, im, iy)trfdat (n, id, im, iy)Meaningdefines the base date.returns incremented days.returns the weekday of a date.converts incremented days to a date.Figure A.21: Date RoutinesA.22 Cursor RoutinesRoutinen = csrmov (nxray, nyray, nmax)nkey = csrpos (nx, ny)nx,ny = csrpt1 ()Meaningcollects cursor movements.sets and returns the cursor position.returns a pressed cursor position.23
- 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: Routinenx,ny,nz = getscl ()nw,nh =
- 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 and 46: Figure B.4: Logarithmic Scaling41
- Page 47 and 48: Figure B.5: Interpolation Methods43
- 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