dislin a data plotting library by helmut michels

34
DISLIN DISLIN A Data Plotting Library A Data Plotting Library by by Helmut Michels Helmut Michels

Upload: nathan-gilbert

Post on 26-Mar-2015

253 views

Category:

Documents


13 download

TRANSCRIPT

Page 1: DISLIN A Data Plotting Library by Helmut Michels

DISLINDISLIN

A Data Plotting LibraryA Data Plotting Library

byby

Helmut MichelsHelmut Michels

Page 2: DISLIN A Data Plotting Library by Helmut Michels

Helmut Michels, MPI für SonnensystemforschungHelmut Michels, MPI für Sonnensystemforschung 22

ContentsContents

• IntroductionIntroduction• Basic Concepts Basic Concepts • Introductory RoutinesIntroductory Routines• Plotting Axis Systems and TitlesPlotting Axis Systems and Titles• Plotting CurvesPlotting Curves• Parameter Setting RoutinesParameter Setting Routines• Elementary Plot RoutinesElementary Plot Routines• Business GraphicsBusiness Graphics• 3-D Colour Graphics3-D Colour Graphics• 3-D Graphics3-D Graphics• Geographical Projections and Plotting MapsGeographical Projections and Plotting Maps• ContouringContouring• Widget RoutinesWidget Routines• QuickplotsQuickplots

Page 3: DISLIN A Data Plotting Library by Helmut Michels

Helmut Michels, MPI für SonnensystemforschungHelmut Michels, MPI für Sonnensystemforschung 33

Introduction / What is DISLIN?Introduction / What is DISLIN?

• DISLIN is a high-level plotting library for DISLIN is a high-level plotting library for displaying data as curves, bar graphs, pie displaying data as curves, bar graphs, pie charts, 3D-colour plots, surfaces, contours charts, 3D-colour plots, surfaces, contours and maps. and maps.

• Programming Languages:Programming Languages:Fortran 77, Fortran 77, Fortran 90/95, C, Perl, Python, JavaFortran 90/95, C, Perl, Python, Java

• Current Version: 10.3 (Jan. 2013)Current Version: 10.3 (Jan. 2013)

• First Version:First Version: 1.0 (Dec. 1986)1.0 (Dec. 1986)

Page 4: DISLIN A Data Plotting Library by Helmut Michels

Helmut Michels, MPI für SonnensystemforschungHelmut Michels, MPI für Sonnensystemforschung 44

Introduction / FeaturesIntroduction / Features

• 9 Vector fonts with 7 alphabets, bitmap fonts9 Vector fonts with 7 alphabets, bitmap fonts• Support of PostScript, X11 and Windows fontsSupport of PostScript, X11 and Windows fonts• Axis systems with various formatsAxis systems with various formats• Plotting of curves and legendsPlotting of curves and legends• 3-D colour graphics3-D colour graphics• 3-D graphics3-D graphics• Business graphicsBusiness graphics• ContoursContours• Plotting mapsPlotting maps• Widget routines Widget routines

Page 5: DISLIN A Data Plotting Library by Helmut Michels

Helmut Michels, MPI für SonnensystemforschungHelmut Michels, MPI für Sonnensystemforschung 55

Installation UNIX/LinuxInstallation UNIX/Linux

• gzip –d dislin-10.3.xxx.tar.gzgzip –d dislin-10.3.xxx.tar.gz• tar xvf dislin-10.3.xxx.tartar xvf dislin-10.3.xxx.tar• cd dislin-10.3cd dislin-10.3• export DISLIN=dislin_directory (i.e. /usr/local/dislin)export DISLIN=dislin_directory (i.e. /usr/local/dislin)• ./INSTALL./INSTALL

• General settings: General settings: export DISLIN=dislin_directoryexport DISLIN=dislin_directory LD_LIBRARY_PATH=$DISLIN:$LD_LIBRARY_PATHLD_LIBRARY_PATH=$DISLIN:$LD_LIBRARY_PATH PATH=$PATH:$DISLIN/binPATH=$PATH:$DISLIN/bin

Page 6: DISLIN A Data Plotting Library by Helmut Michels

Helmut Michels, MPI für SonnensystemforschungHelmut Michels, MPI für Sonnensystemforschung 66

Installation WindowsInstallation Windows

• unzip dl_10_xx.zip (temporary directory)unzip dl_10_xx.zip (temporary directory)• setupsetup - choose ok- choose ok - give the installation directory- give the installation directory • Global settings (Control Panel): Global settings (Control Panel): DISLIN=dislin_directoryDISLIN=dislin_directory PATH=%PATH%; dislin_directory\winPATH=%PATH%; dislin_directory\win

Page 7: DISLIN A Data Plotting Library by Helmut Michels

Helmut Michels, MPI für SonnensystemforschungHelmut Michels, MPI für Sonnensystemforschung 77

Basic Concepts / Page FormatBasic Concepts / Page Format

• Default Page:Default Page:

DIN A4 LandscapeDIN A4 Landscape

• Origin: Origin:

Upper left cornerUpper left corner

• Plot unit: [cm / 100]Plot unit: [cm / 100]

• Routines: Routines:

SETPAG (COPT), SETPAG (COPT), PAGE (NXP, NYP)PAGE (NXP, NYP)

Page 8: DISLIN A Data Plotting Library by Helmut Michels

Helmut Michels, MPI für SonnensystemforschungHelmut Michels, MPI für Sonnensystemforschung 88

Basic Concepts / File FormatsBasic Concepts / File Formats

• Vector formats:Vector formats: GKSLIN, CGM, PS, GKSLIN, CGM, PS, EPS, PDF, HPGL, EPS, PDF, HPGL, WMF, SVGWMF, SVG

• Image formats:Image formats: TIFF, GIF, PNG, PPM, TIFF, GIF, PNG, PPM, BMPBMP

• Screen output:Screen output: CONS, XWIN, GL CONS, XWIN, GL • Routines:Routines: METAFL (Format)METAFL (Format)

SETFIL (Filename)SETFIL (Filename)

Page 9: DISLIN A Data Plotting Library by Helmut Michels

Helmut Michels, MPI für SonnensystemforschungHelmut Michels, MPI für Sonnensystemforschung 99

Basic Concepts / Level StructureBasic Concepts / Level Structure

• Level 0 : before DISINI or after DISFINLevel 0 : before DISINI or after DISFIN

• Level 1: after DISINI or after ENDGRFLevel 1: after DISINI or after ENDGRF

• Level 2: after GRAF, GRAFMP or POLARLevel 2: after GRAF, GRAFMP or POLAR

• Level 3: after GRAF3 or GRAF3DLevel 3: after GRAF3 or GRAF3D

Page 10: DISLIN A Data Plotting Library by Helmut Michels

Helmut Michels, MPI für SonnensystemforschungHelmut Michels, MPI für Sonnensystemforschung 1010

Basic Concepts / Program StructureBasic Concepts / Program Structure

• Setting of page format, file format and filename Setting of page format, file format and filename (SETPAG, PAGE, METAFL, SETFIL)(SETPAG, PAGE, METAFL, SETFIL)

• Initialization (DISINI)Initialization (DISINI)• Setting of plot parametersSetting of plot parameters• Plotting of the axis systemPlotting of the axis system (GRAF, POLAR, (GRAF, POLAR,

GRAFMP, GRAF3, GRAF3D)GRAFMP, GRAF3, GRAF3D)• Plotting the title (TITLE)Plotting the title (TITLE)• Plotting data points (CURVE, CURVE3, Plotting data points (CURVE, CURVE3,

CURV3D, BARS, PIEGRF, SURFCE, CONTUR)CURV3D, BARS, PIEGRF, SURFCE, CONTUR)• Termination (DISFIN)Termination (DISFIN)

Page 11: DISLIN A Data Plotting Library by Helmut Michels

Helmut Michels, MPI für SonnensystemforschungHelmut Michels, MPI für Sonnensystemforschung 1111

Basic Concepts / ConventionsBasic Concepts / Conventions

• INTEGER variables begin with the INTEGER variables begin with the character N or Icharacter N or I

• Character variables begin with the Character variables begin with the character C. Keywords may be specified in character C. Keywords may be specified in upper or lower case and may be shortened upper or lower case and may be shortened to four charactersto four characters

• Other variables are REALOther variables are REAL

• Arrays end with the keyword ´RAY´Arrays end with the keyword ´RAY´

Page 12: DISLIN A Data Plotting Library by Helmut Michels

Helmut Michels, MPI für SonnensystemforschungHelmut Michels, MPI für Sonnensystemforschung 1212

Initialization and TerminationInitialization and Termination

• Initialization: Initialization: CALL DISINI ()CALL DISINI ()

• Termination:Termination: CALL DISFIN ()CALL DISFIN ()

• Termination ofTermination of

an axis system:an axis system: CALL ENDGRF ()CALL ENDGRF ()

Page 13: DISLIN A Data Plotting Library by Helmut Michels

Helmut Michels, MPI für SonnensystemforschungHelmut Michels, MPI für Sonnensystemforschung 1313

Plotting Text and NumbersPlotting Text and Numbers

• MESSAG (CSTR, NX, NY) MESSAG (CSTR, NX, NY) plots textplots text• NUMBER (X, NDEZ, NX, NY) NUMBER (X, NDEZ, NX, NY) plots a numberplots a number• SYMBOL (NSYM, NX, NY) SYMBOL (NSYM, NX, NY) plots symbolsplots symbols• HEIGHT (NH) HEIGHT (NH) sets the character heightsets the character height• ANGLE (NANG) ANGLE (NANG) defines the character defines the character

angleangle• COMPLX, SIMPLX, DUPLX, COMPLX, SIMPLX, DUPLX, define vector fontsdefine vector fonts

SERIF, HELVE, HELVES SERIF, HELVE, HELVES • PSFONT (CFNT) PSFONT (CFNT) defines PostScript fontsdefines PostScript fonts• BMPFNT (CFNT) BMPFNT (CFNT) defines a bitmap fontdefines a bitmap font• WINFNT (CFNT) WINFNT (CFNT) defines a Windows fontdefines a Windows font• X11FNT (CFONT, COPT) X11FNT (CFONT, COPT) defines an X11 font defines an X11 font

Page 14: DISLIN A Data Plotting Library by Helmut Michels

Helmut Michels, MPI für SonnensystemforschungHelmut Michels, MPI für Sonnensystemforschung 1414

Axis Systems and TitlesAxis Systems and Titles

• GRAF (XA, XE, XOR, XSTP, GRAF (XA, XE, XOR, XSTP, plots an axis system plots an axis system YA, YE, YOR, YSTP) YA, YE, YOR, YSTP)

• POLAR (XE, XOR, XSTP,POLAR (XE, XOR, XSTP, plots a polar axis systemplots a polar axis system YOR, YSTP) YOR, YSTP) • TITLE () TITLE () plots a titleplots a title• AXSPOS (NXA, NYA) AXSPOS (NXA, NYA) defines the positiondefines the position• AXSLEN (NXL, NYL) AXSLEN (NXL, NYL) defines axis lengths defines axis lengths • TICKS (N, CAX) TICKS (N, CAX) sets the number of tickssets the number of ticks• LABELS (CSTR, CAX) LABELS (CSTR, CAX) defines axis labelsdefines axis labels• NAME (CSTR, CAX) NAME (CSTR, CAX) sets axis titlessets axis titles• AXSSCL (COPT, CAX) AXSSCL (COPT, CAX) defines the axis scalingdefines the axis scaling• TITLIN (CSTR, I) TITLIN (CSTR, I) defines text for titlesdefines text for titles

Page 15: DISLIN A Data Plotting Library by Helmut Michels

Helmut Michels, MPI für SonnensystemforschungHelmut Michels, MPI für Sonnensystemforschung 1515

Plotting Curves Plotting Curves

• CURVE (XRAY, YRAY, N) CURVE (XRAY, YRAY, N) plots curvesplots curves

• INCMRK (NMRK) INCMRK (NMRK) selects symbols or linesselects symbols or lines• MARKER (NHSYMB) MARKER (NHSYMB) defines a symboldefines a symbol• HSYMBL (HSYMBL (NHNH) ) sets the size of symbolssets the size of symbols• POLCRV (COPT) POLCRV (COPT) sets an interpolation methodsets an interpolation method• THKCRV (N)THKCRV (N) defines curve thicknessdefines curve thickness• CHNCRV (COPT)CHNCRV (COPT) sets attributes that will be sets attributes that will be

automatically automatically changed by CURVEchanged by CURVE• LINTYP (N)LINTYP (N) defines line stylesdefines line styles• COLOR (COPT)COLOR (COPT) sets a coloursets a colour

Page 16: DISLIN A Data Plotting Library by Helmut Michels

Helmut Michels, MPI für SonnensystemforschungHelmut Michels, MPI für Sonnensystemforschung 1616

Plotting Curves / ExamplePlotting Curves / Example

Page 17: DISLIN A Data Plotting Library by Helmut Michels

Helmut Michels, MPI für SonnensystemforschungHelmut Michels, MPI für Sonnensystemforschung 1717

Parameter Setting RoutinesParameter Setting Routines

• Basic routines (resetting, file format, page control, error handling, viewport Basic routines (resetting, file format, page control, error handling, viewport control)control)

• Axis systems (type, position, size, scaling, labels, ticks, titles, colours, clipping)Axis systems (type, position, size, scaling, labels, ticks, titles, colours, clipping)• Colours (foreground, colour tables, utility routines)Colours (foreground, colour tables, utility routines)• Text and numbersText and numbers• Fonts, alphabetsFonts, alphabets• Indices and exponentsIndices and exponents• Instruction alphabetInstruction alphabet• TeX instructions for mathematical formulasTeX instructions for mathematical formulas• Curve attributesCurve attributes• Line attributes Line attributes • ShadingShading• Base transformationsBase transformations• Shielded regionsShielded regions

Page 18: DISLIN A Data Plotting Library by Helmut Michels

Helmut Michels, MPI für SonnensystemforschungHelmut Michels, MPI für Sonnensystemforschung 1818

Elementary Plot RoutinesElementary Plot Routines

• MESSAG (CSTR, NX, NY) MESSAG (CSTR, NX, NY) plots textplots text• NUMBER (X, NDEZ, NX, NY) NUMBER (X, NDEZ, NX, NY) plots numbersplots numbers• SYMBOL (NSYM, NX, NY) SYMBOL (NSYM, NX, NY) plots symbolsplots symbols• LINE (NX, NY, NU, NV) LINE (NX, NY, NU, NV) plots a lineplots a line• RECTAN (NX, NY, NW, NH) RECTAN (NX, NY, NW, NH) plots rectanglesplots rectangles• CIRCLE (NX, NY, NR) CIRCLE (NX, NY, NR) plots circlesplots circles• ELLIPS (NX, NY, NA, NB) ELLIPS (NX, NY, NA, NB) plots ellipsesplots ellipses• VECTOR (NX, NY, NU, NV, IVEC)VECTOR (NX, NY, NU, NV, IVEC) plots vectors plots vectors • AREAF (NXRAY, NYRAY, N) AREAF (NXRAY, NYRAY, N) plots polygonsplots polygons

• RLMESS, RLNUMB, RLSYMB,RLMESS, RLNUMB, RLSYMB, are analogous routines forare analogous routines forRLINE, RLREC, RLCIRC,RLINE, RLREC, RLCIRC, user coordinatesuser coordinatesRLELL, RLVEC, RLAREARLELL, RLVEC, RLAREA

Page 19: DISLIN A Data Plotting Library by Helmut Michels

Helmut Michels, MPI für SonnensystemforschungHelmut Michels, MPI für Sonnensystemforschung 1919

Business Graphics / Bar GraphsBusiness Graphics / Bar Graphs

• BARS (XRAY, Y1RAY, BARS (XRAY, Y1RAY, plots bar graphsplots bar graphs Y2RAY, N) Y2RAY, N)

• BARTYP (COPT) BARTYP (COPT) defines vertical or defines vertical or horizontal barshorizontal bars

• BARWTH (XWTH) BARWTH (XWTH) defines the width of barsdefines the width of bars• LABELS (COPT, ´BARS´) LABELS (COPT, ´BARS´) sets labels sets labels • LABPOS (COPT, ´BARS´) LABPOS (COPT, ´BARS´) defines the position of defines the position of

labelslabels• LABDIG (N, ´BARS´) LABDIG (N, ´BARS´) sets the number of sets the number of

decimal places in labelsdecimal places in labels• LABCLR (NCLR, ´BARS´) LABCLR (NCLR, ´BARS´) defines the colour of defines the colour of

labelslabels

Page 20: DISLIN A Data Plotting Library by Helmut Michels

Helmut Michels, MPI für SonnensystemforschungHelmut Michels, MPI für Sonnensystemforschung 2020

Business Graphics / Pie ChartsBusiness Graphics / Pie Charts

• PIEGRF (CBUF, NLIN, PIEGRF (CBUF, NLIN, plots pie chartsplots pie chartsXRAY, N)XRAY, N)

• PIETYP (COPT) PIETYP (COPT) defines 2-D or 3-D pie defines 2-D or 3-D pie chartscharts

• LABELS (COPT, ´PIE´) LABELS (COPT, ´PIE´) defines labelsdefines labels• LABPOS (COPT, ´PIE´) LABPOS (COPT, ´PIE´) sets the position of labelssets the position of labels• LABDIG (N, COPT) LABDIG (N, COPT) sets the number of sets the number of

decimal places in labelsdecimal places in labels• LABCLR (NCLR, ´PIE´) LABCLR (NCLR, ´PIE´) sets the colour of labelssets the colour of labels• PIECLR (N1RAY, N2RAY, N) PIECLR (N1RAY, N2RAY, N) defines colours for single defines colours for single

piespies• PIEEXP ()PIEEXP () enable exploded piesenable exploded pies

Page 21: DISLIN A Data Plotting Library by Helmut Michels

Helmut Michels, MPI für SonnensystemforschungHelmut Michels, MPI für Sonnensystemforschung 2121

Business Graphics / ExampleBusiness Graphics / Example

Page 22: DISLIN A Data Plotting Library by Helmut Michels

Helmut Michels, MPI für SonnensystemforschungHelmut Michels, MPI für Sonnensystemforschung 2222

3-D Colour Graphics3-D Colour Graphics

• GRAF3 (XA, XE, XOR, XSTP, GRAF3 (XA, XE, XOR, XSTP, plots a 3-D axis system where theplots a 3-D axis system where the YA, YE, YOR, YSTP,YA, YE, YOR, YSTP, Z-axis is plotted as a colour barZ-axis is plotted as a colour bar

ZA, ZE, ZOR, ZSTP)ZA, ZE, ZOR, ZSTP)• CURVE3 (XRAY, YRAY, ZRAY, N) CURVE3 (XRAY, YRAY, ZRAY, N) plots data pointsplots data points• CRVMAT (ZMAT, NX, NY, CRVMAT (ZMAT, NX, NY, plots a coloured surfaceplots a coloured surface IXP, IYP)IXP, IYP) according to a matrixaccording to a matrix• CRVTRI (XRAY, YRAY, ZRAY, N, CRVTRI (XRAY, YRAY, ZRAY, N, plots the surface of a Delaunayplots the surface of a Delaunay

I1RAY, I2RAY, I3RAY, NTRI)I1RAY, I2RAY, I3RAY, NTRI) triangulationtriangulation• SETRES (NW, NH) SETRES (NW, NH) defines the size of rectanglesdefines the size of rectangles• SHDMOD (COPT, ‘CURVE’) SHDMOD (COPT, ‘CURVE’) selects symbols or rectanglesselects symbols or rectangles• AX3LEN (NXL, NYL, NZL) AX3LEN (NXL, NYL, NZL) defines axis lengthsdefines axis lengths• WIDBAR (NW) WIDBAR (NW) sets the width of colour barssets the width of colour bars• NOBAR ()NOBAR () suppresses the plotting of the suppresses the plotting of the

colour barcolour bar• COLRAN (NCA, NCE) COLRAN (NCA, NCE) defines the range of colours useddefines the range of colours used

for colour barsfor colour bars

Page 23: DISLIN A Data Plotting Library by Helmut Michels

Helmut Michels, MPI für SonnensystemforschungHelmut Michels, MPI für Sonnensystemforschung 2323

3-D Colour Graphics / Example3-D Colour Graphics / Example

Page 24: DISLIN A Data Plotting Library by Helmut Michels

Helmut Michels, MPI für SonnensystemforschungHelmut Michels, MPI für Sonnensystemforschung 2424

3-D Graphics / Axis System3-D Graphics / Axis System

• GRAF3D (XA, XE, XOR, XSTP, GRAF3D (XA, XE, XOR, XSTP, plots an axis system plots an axis system YA, YE, YOR, YSTP,YA, YE, YOR, YSTP,ZA, ZE, ZOR, ZSTP)ZA, ZE, ZOR, ZSTP)

• GRID3D (NX, NY, COPT) GRID3D (NX, NY, COPT) plots a grid in the 3-D boxplots a grid in the 3-D box• AXIS3D (XLEN, YLEN, ZLEN) AXIS3D (XLEN, YLEN, ZLEN) defines the lengths of the 3-D defines the lengths of the 3-D

boxbox• VIEW3D (XVU, YVU, ZVU, COPT) VIEW3D (XVU, YVU, ZVU, COPT) sets the viewpointsets the viewpoint• VFOC3D (XFOC, YFOC, ZFOC, VFOC3D (XFOC, YFOC, ZFOC, defines the focus pointdefines the focus point COPT)COPT)• VUP3D (ANG)VUP3D (ANG) defines the rotation of the defines the rotation of the

camera around the viewing axiscamera around the viewing axis• ANG3D (ANG) ANG3D (ANG) specifies the field of view of the specifies the field of view of the

lenslens

Page 25: DISLIN A Data Plotting Library by Helmut Michels

Helmut Michels, MPI für SonnensystemforschungHelmut Michels, MPI für Sonnensystemforschung 2525

3-D Graphics / Plotting Data3-D Graphics / Plotting Data

• CURV3D (XRAY, YRAY, ZRAY, N) CURV3D (XRAY, YRAY, ZRAY, N) plots curvesplots curves• SURFCE (XRAY, N, YRAY, M, SURFCE (XRAY, N, YRAY, M, plots a surface grid of a matrixplots a surface grid of a matrix ZMAT)ZMAT)• SURFUN (ZFUN, IXP, XDEL, SURFUN (ZFUN, IXP, XDEL, plots a surface grid of a plots a surface grid of a

functionfunction IYP, YDEL)IYP, YDEL)• SURSHD (XRAY, NX, YRAY, NY,SURSHD (XRAY, NX, YRAY, NY, plots a shaded surface from aplots a shaded surface from a ZMAT)ZMAT) matrixmatrix• SURFCP (ZFUN, TMIN, TMAX, TSTP, SURFCP (ZFUN, TMIN, TMAX, TSTP, plots a surface of a parametricplots a surface of a parametric• UMIN, UMAX, USTP)UMIN, UMAX, USTP) functionfunction• SURTRI (XRAY, YRAY, ZRAY, N,SURTRI (XRAY, YRAY, ZRAY, N, plots a surface of triangulatedplots a surface of triangulated I1RAY, I2RAY, I3RAY, NTRI)I1RAY, I2RAY, I3RAY, NTRI) datadata• SURISO (XRAY, NX, YRAY, NY, SURISO (XRAY, NX, YRAY, NY, plots isosurfaces of the formplots isosurfaces of the form ZRAY, NZ, WMAT, WLEV) ZRAY, NZ, WMAT, WLEV) f (x, y, z) = constantf (x, y, z) = constant• BARS3D (XRAY, YRAY, Z1RAY, BARS3D (XRAY, YRAY, Z1RAY, plots three-dimensional barsplots three-dimensional bars Z2RAY, XWRAY, YWRAY, ICRAY, N)Z2RAY, XWRAY, YWRAY, ICRAY, N)

Page 26: DISLIN A Data Plotting Library by Helmut Michels

Helmut Michels, MPI für SonnensystemforschungHelmut Michels, MPI für Sonnensystemforschung 2626

3-D Graphics / Example3-D Graphics / Example

Page 27: DISLIN A Data Plotting Library by Helmut Michels

Helmut Michels, MPI für SonnensystemforschungHelmut Michels, MPI für Sonnensystemforschung 2727

Geographical ProjectionsGeographical Projections

• GRAFMP (XA, XE, XOR, XSTP, GRAFMP (XA, XE, XOR, XSTP, plots a geographical axis plots a geographical axis systemsystem

YA, YE, YOR, YSTP) YA, YE, YOR, YSTP)

• CURVMP (XRAY, YRAY, ZRAY, N)CURVMP (XRAY, YRAY, ZRAY, N) plots curvesplots curves• WORLD ()WORLD () plots coastlines and lakesplots coastlines and lakes• SHDMAP (CMAP) SHDMAP (CMAP) plots shaded continentsplots shaded continents• PROJCT (COPT) PROJCT (COPT) selects the geographical selects the geographical

projectionprojection• MAPBAS (CBAS) MAPBAS (CBAS) defines the used map data defines the used map data

basebase• MAPFIL (CFIL) MAPFIL (CFIL) defines an external map filedefines an external map file• SETCBK (Routine, ‘MYPR’) SETCBK (Routine, ‘MYPR’) enables an user-defined enables an user-defined

projectionprojection

Page 28: DISLIN A Data Plotting Library by Helmut Michels

Helmut Michels, MPI für SonnensystemforschungHelmut Michels, MPI für Sonnensystemforschung 2828

Geogr. Projections / ExampleGeogr. Projections / Example

Page 29: DISLIN A Data Plotting Library by Helmut Michels

Helmut Michels, MPI für SonnensystemforschungHelmut Michels, MPI für Sonnensystemforschung 2929

ContouringContouring

• CONTUR (XRAY, N, YRAY, M, CONTUR (XRAY, N, YRAY, M, plots contoursplots contours ZMAT, ZLEV) ZMAT, ZLEV) of the function Z=F(X,Y)of the function Z=F(X,Y)

• CONMAT (ZMAT, N, M, ZLEV) CONMAT (ZMAT, N, M, ZLEV) plots contoursplots contours• CONTRI (XRAY, YRAY, ZRAY, N, CONTRI (XRAY, YRAY, ZRAY, N, plots contours fromplots contours from I1RAY, I2RAY, I3RAY, NTRI, ZLV) I1RAY, I2RAY, I3RAY, NTRI, ZLV) triangulated datatriangulated data• CONSHD (XRAY, N, YRAY, M, CONSHD (XRAY, N, YRAY, M, plots filled contours ofplots filled contours of ZMAT, ZLVRAY, NLV)ZMAT, ZLVRAY, NLV) the function Z = F(X, Y)the function Z = F(X, Y)• CONFLL (XRAY, YRAY, ZRAY, N, CONFLL (XRAY, YRAY, ZRAY, N, plots filled contoursplots filled contours I1RAY, I2RAY, I3RAY, NTRI, I1RAY, I2RAY, I3RAY, NTRI, from triangulated datafrom triangulated data ZLVRAY, NLV)ZLVRAY, NLV)

• LABELS (COPT, ‘CONTUR’) LABELS (COPT, ‘CONTUR’) defines labels for contoursdefines labels for contours• SHDMOD (COPT, CKEY) SHDMOD (COPT, CKEY) selects the algorithm used selects the algorithm used

forforcontour fillingcontour filling

Page 30: DISLIN A Data Plotting Library by Helmut Michels

Helmut Michels, MPI für SonnensystemforschungHelmut Michels, MPI für Sonnensystemforschung 3030

Contouring / ExampleContouring / Example

Page 31: DISLIN A Data Plotting Library by Helmut Michels

Helmut Michels, MPI für SonnensystemforschungHelmut Michels, MPI für Sonnensystemforschung 3131

Widget RoutinesWidget Routines

• WGINI (COPT, ID) WGINI (COPT, ID) creates a main widgetcreates a main widget• WGFIN ()WGFIN () terminates the widget routinesterminates the widget routines• WGBAS (IP, COPT, ID)WGBAS (IP, COPT, ID) creates a container widgetcreates a container widget• WGLAB (IP, CSTR, ID)WGLAB (IP, CSTR, ID) creates a label widgetcreates a label widget• WGBUT (IP, CLAB, IV, ID) WGBUT (IP, CLAB, IV, ID) creates a button widgetcreates a button widget• WGTXT (IP, CSTR, ID)WGTXT (IP, CSTR, ID) creates a text widgetcreates a text widget• WGFIL (IP, CLAB, CFIL, WGFIL (IP, CLAB, CFIL, creates a file widgetcreates a file widget CMASK, ID)CMASK, ID)• WGLIS (IP, CLIS, ISEL, ID)WGLIS (IP, CLIS, ISEL, ID) creates a list widgetcreates a list widget• WGSCL (IP, CLAB, XMIN,WGSCL (IP, CLAB, XMIN, creates a scale widgetcreates a scale widget XMAX, XVAL, NDEZ, ID)XMAX, XVAL, NDEZ, ID)• WGDRAW (IP, ID) WGDRAW (IP, ID) creates a draw widgetcreates a draw widget• WGPBUT (IP, ID) WGPBUT (IP, ID) creates a push button widgetcreates a push button widget• WGPBAR (IP, XMIN, WGPBAR (IP, XMIN, creates a progress barcreates a progress bar• XMAX, XSTP, ID)XMAX, XSTP, ID)• WGTBL (IP, N, M, ID)WGTBL (IP, N, M, ID) creates a table widgetcreates a table widget

Page 32: DISLIN A Data Plotting Library by Helmut Michels

Helmut Michels, MPI für SonnensystemforschungHelmut Michels, MPI für Sonnensystemforschung 3232

Widget Routines / Example 1Widget Routines / Example 1

Page 33: DISLIN A Data Plotting Library by Helmut Michels

Helmut Michels, MPI für SonnensystemforschungHelmut Michels, MPI für Sonnensystemforschung 3333

Widget Routines / Example 2Widget Routines / Example 2

Page 34: DISLIN A Data Plotting Library by Helmut Michels

Helmut Michels, MPI für SonnensystemforschungHelmut Michels, MPI für Sonnensystemforschung 3434

Quick PlotsQuick Plots

• QPLOT (XRAY, YRAY, N) QPLOT (XRAY, YRAY, N) curve plotcurve plot

• QPLSCA (XRAY, YRAY, N) QPLSCA (XRAY, YRAY, N) scatter plotscatter plot

• QPLBAR (XRAY, N) QPLBAR (XRAY, N) plots a bar plots a bar graphgraph

• QPLPIE (XRAY, N) QPLPIE (XRAY, N) plots a pie chartplots a pie chart

• QPLCLR (ZMAT, NX, NY) QPLCLR (ZMAT, NX, NY) 3-D colour plot3-D colour plot

• QPLSUR (ZMAT, N, M) QPLSUR (ZMAT, N, M) surface plotsurface plot

• QPLCON (ZMAT, N, M, NLV) QPLCON (ZMAT, N, M, NLV) contour plotcontour plot