dislin a data plotting library by helmut michels

Download DISLIN A Data Plotting Library by Helmut Michels

If you can't read please download the document

Post on 26-Mar-2015

244 views

Category:

Documents

13 download

Embed Size (px)

TRANSCRIPT

  • Slide 1

DISLIN A Data Plotting Library by Helmut Michels Slide 2 Helmut Michels, MPI fr Sonnensystemforschung2Contents Introduction Introduction Basic Concepts Basic Concepts Introductory Routines Introductory Routines Plotting Axis Systems and Titles Plotting Axis Systems and Titles Plotting Curves Plotting Curves Parameter Setting Routines Parameter Setting Routines Elementary Plot Routines Elementary Plot Routines Business Graphics Business Graphics 3-D Colour Graphics 3-D Colour Graphics 3-D Graphics 3-D Graphics Geographical Projections and Plotting Maps Geographical Projections and Plotting Maps Contouring Contouring Widget Routines Widget Routines Quickplots Quickplots Slide 3 Helmut Michels, MPI fr Sonnensystemforschung3 Introduction / What is DISLIN? DISLIN is a high-level plotting library for displaying data as curves, bar graphs, pie charts, 3D-colour plots, surfaces, contours and maps. DISLIN is a high-level plotting library for displaying data as curves, bar graphs, pie charts, 3D-colour plots, surfaces, contours and maps. Programming Languages:Fortran 77, Fortran 90/95, C, Perl, Python, Java Programming Languages:Fortran 77, Fortran 90/95, C, Perl, Python, Java Current Version: 10.3 (Jan. 2013) Current Version: 10.3 (Jan. 2013) First Version:1.0 (Dec. 1986) First Version:1.0 (Dec. 1986) Slide 4 Helmut Michels, MPI fr Sonnensystemforschung4 Introduction / Features 9 Vector fonts with 7 alphabets, bitmap fonts 9 Vector fonts with 7 alphabets, bitmap fonts Support of PostScript, X11 and Windows fonts Support of PostScript, X11 and Windows fonts Axis systems with various formats Axis systems with various formats Plotting of curves and legends Plotting of curves and legends 3-D colour graphics 3-D colour graphics 3-D graphics 3-D graphics Business graphics Business graphics Contours Contours Plotting maps Plotting maps Widget routines Widget routines Slide 5 Helmut Michels, MPI fr Sonnensystemforschung5 Installation UNIX/Linux gzip d dislin-10.3.xxx.tar.gz gzip d dislin-10.3.xxx.tar.gz tar xvf dislin-10.3.xxx.tar tar xvf dislin-10.3.xxx.tar cd dislin-10.3 cd 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_directory export DISLIN=dislin_directory LD_LIBRARY_PATH=$DISLIN:$LD_LIBRARY_PATH LD_LIBRARY_PATH=$DISLIN:$LD_LIBRARY_PATH PATH=$PATH:$DISLIN/bin PATH=$PATH:$DISLIN/bin Slide 6 Helmut Michels, MPI fr Sonnensystemforschung6 Installation Windows unzip dl_10_xx.zip (temporary directory) unzip dl_10_xx.zip (temporary directory) setup setup - choose ok - choose ok - give the installation directory - give the installation directory Global settings (Control Panel): Global settings (Control Panel): DISLIN=dislin_directory DISLIN=dislin_directory PATH=%PATH%; dislin_directory\win PATH=%PATH%; dislin_directory\win Slide 7 Helmut Michels, MPI fr Sonnensystemforschung7 Basic Concepts / Page Format Default Page: Default Page: DIN A4 Landscape Origin: Origin: Upper left corner Plot unit: [cm / 100] Plot unit: [cm / 100] Routines: Routines: SETPAG (COPT), PAGE (NXP, NYP) Slide 8 Helmut Michels, MPI fr Sonnensystemforschung8 Basic Concepts / File Formats Vector formats:GKSLIN, CGM, PS, EPS, PDF, HPGL, WMF, SVG Vector formats:GKSLIN, CGM, PS, EPS, PDF, HPGL, WMF, SVG Image formats:TIFF, GIF, PNG, PPM, BMP Image formats:TIFF, GIF, PNG, PPM, BMP Screen output:CONS, XWIN, GL Screen output:CONS, XWIN, GL Routines:METAFL (Format) Routines:METAFL (Format) SETFIL (Filename) Slide 9 Helmut Michels, MPI fr Sonnensystemforschung9 Basic Concepts / Level Structure Level 0 : before DISINI or after DISFIN Level 0 : before DISINI or after DISFIN Level 1: after DISINI or after ENDGRF Level 1: after DISINI or after ENDGRF Level 2: after GRAF, GRAFMP or POLAR Level 2: after GRAF, GRAFMP or POLAR Level 3: after GRAF3 or GRAF3D Level 3: after GRAF3 or GRAF3D Slide 10 Helmut Michels, MPI fr Sonnensystemforschung10 Basic Concepts / Program Structure Setting of page format, file format and filename (SETPAG, PAGE, METAFL, SETFIL) Setting of page format, file format and filename (SETPAG, PAGE, METAFL, SETFIL) Initialization (DISINI) Initialization (DISINI) Setting of plot parameters Setting of plot parameters Plotting of the axis system(GRAF, POLAR, GRAFMP, GRAF3, GRAF3D) Plotting of the axis system(GRAF, POLAR, GRAFMP, GRAF3, GRAF3D) Plotting the title (TITLE) Plotting the title (TITLE) Plotting data points (CURVE, CURVE3, CURV3D, BARS, PIEGRF, SURFCE, CONTUR) Plotting data points (CURVE, CURVE3, CURV3D, BARS, PIEGRF, SURFCE, CONTUR) Termination (DISFIN) Termination (DISFIN) Slide 11 Helmut Michels, MPI fr Sonnensystemforschung11 Basic Concepts / Conventions INTEGER variables begin with the character N or I INTEGER variables begin with the character N or I Character variables begin with the character C. Keywords may be specified in upper or lower case and may be shortened to four characters Character variables begin with the character C. Keywords may be specified in upper or lower case and may be shortened to four characters Other variables are REAL Other variables are REAL Arrays end with the keyword RAY Arrays end with the keyword RAY Slide 12 Helmut Michels, MPI fr Sonnensystemforschung12 Initialization and Termination Initialization: CALL DISINI () Initialization: CALL DISINI () Termination:CALL DISFIN () Termination:CALL DISFIN () Termination of Termination of an axis system:CALL ENDGRF () Slide 13 Helmut Michels, MPI fr Sonnensystemforschung13 Plotting Text and Numbers MESSAG (CSTR, NX, NY) plots text MESSAG (CSTR, NX, NY) plots text NUMBER (X, NDEZ, NX, NY) plots a number NUMBER (X, NDEZ, NX, NY) plots a number SYMBOL (NSYM, NX, NY) plots symbols SYMBOL (NSYM, NX, NY) plots symbols HEIGHT (NH) sets the character height HEIGHT (NH) sets the character height ANGLE (NANG) defines the character angle ANGLE (NANG) defines the character angle COMPLX, SIMPLX, DUPLX, define vector fonts COMPLX, SIMPLX, DUPLX, define vector fonts SERIF, HELVE, HELVES PSFONT (CFNT) defines PostScript fonts PSFONT (CFNT) defines PostScript fonts BMPFNT (CFNT) defines a bitmap font BMPFNT (CFNT) defines a bitmap font WINFNT (CFNT) defines a Windows font WINFNT (CFNT) defines a Windows font X11FNT (CFONT, COPT) defines an X11 font X11FNT (CFONT, COPT) defines an X11 font Slide 14 Helmut Michels, MPI fr Sonnensystemforschung14 Axis Systems and Titles GRAF (XA, XE, XOR, XSTP, plots an axis system GRAF (XA, XE, XOR, XSTP, plots an axis system YA, YE, YOR, YSTP) YA, YE, YOR, YSTP) POLAR (XE, XOR, XSTP,plots a polar axis system POLAR (XE, XOR, XSTP,plots a polar axis system YOR, YSTP) YOR, YSTP) TITLE () plots a title TITLE () plots a title AXSPOS (NXA, NYA) defines the position AXSPOS (NXA, NYA) defines the position AXSLEN (NXL, NYL) defines axis lengths AXSLEN (NXL, NYL) defines axis lengths TICKS (N, CAX) sets the number of ticks TICKS (N, CAX) sets the number of ticks LABELS (CSTR, CAX) defines axis labels LABELS (CSTR, CAX) defines axis labels NAME (CSTR, CAX) sets axis titles NAME (CSTR, CAX) sets axis titles AXSSCL (COPT, CAX) defines the axis scaling AXSSCL (COPT, CAX) defines the axis scaling TITLIN (CSTR, I) defines text for titles TITLIN (CSTR, I) defines text for titles Slide 15 Helmut Michels, MPI fr Sonnensystemforschung15 Plotting Curves CURVE (XRAY, YRAY, N) plots curves CURVE (XRAY, YRAY, N) plots curves INCMRK (NMRK) selects symbols or lines INCMRK (NMRK) selects symbols or lines MARKER (NHSYMB) defines a symbol MARKER (NHSYMB) defines a symbol HSYMBL ( NH ) sets the size of symbols HSYMBL ( NH ) sets the size of symbols POLCRV (COPT) sets an interpolation method POLCRV (COPT) sets an interpolation method THKCRV (N)defines curve thickness THKCRV (N)defines curve thickness CHNCRV (COPT)sets attributes that will be automatically changed by CURVE CHNCRV (COPT)sets attributes that will be automatically changed by CURVE LINTYP (N)defines line styles LINTYP (N)defines line styles COLOR (COPT)sets a colour COLOR (COPT)sets a colour Slide 16 Helmut Michels, MPI fr Sonnensystemforschung16 Plotting Curves / Example Slide 17 Helmut Michels, MPI fr Sonnensystemforschung17 Parameter Setting Routines Basic routines (resetting, file format, page control, error handling, viewport control) Basic routines (resetting, file format, page control, error handling, viewport 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 numbers Text and numbers Fonts, alphabets Fonts, alphabets Indices and exponents Indices and exponents Instruction alphabet Instruction alphabet TeX instructions for mathematical formulas TeX instructions for mathematical formulas Curve attributes Curve attributes Line attributes Line attributes Shading Shading Base transformations Base transformations Shielded regions Shielded regions Slide 18 Helmut Michels, MPI fr Sonnensystemforschung18 Elementary Plot Routines MESSAG (CSTR, NX, NY) plots text MESSAG (CSTR, NX, NY) plots text NUMBER (X, NDEZ, NX, NY) plots numbers NUMBER (X, NDEZ, NX, NY) plots numbers SYMBOL (NSYM, NX, NY) plots symbols SYMBOL (NSYM, NX, NY) plots symbols LINE (NX, NY, NU, NV) plots a line LINE (NX, NY, NU, NV) plots a line RECTAN (NX, NY, NW, NH) plots rectangles RECTAN (NX, NY, NW, NH) plots rectangles CIRCLE (NX, NY, NR) plots circles CIRCLE (NX, NY, NR) plots circles ELLIPS (NX, NY, NA, NB) plots ellipses ELLIPS (NX, NY, NA, NB) plots ellipses VECTOR (NX, NY, NU, NV, IVEC)plots vectors VECTOR (NX, NY, NU, NV, IVEC)plots vectors AREAF (NXRAY, NYRAY, N) plots polygons AREAF (NXRAY, NYRAY, N) plots polygons RLMESS, RLNUMB, RLSYMB,are analogous routines for RLMESS, RLNUMB, RLSYMB,are analogous routine