A Data Plotting Library by Helmut Michels

Slides:



Advertisements
Similar presentations
Chapter 13 Graphics.
Advertisements

TI – 83 Plus1 A Quick Reference Presentation for AMSTI Year 1 Training.
1. XP 2 * The Web is a collection of files that reside on computers, called Web servers. * Web servers are connected to each other through the Internet.
Fundamentals of Engineering
Zhongxing Telecom Pakistan (Pvt.) Ltd
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Introduction to XHTML Programming the World Wide Web Fourth edition.
Getting Started with Microsoft Office 2007
© 2008 Pearson Addison Wesley. All rights reserved Chapter Seven Costs.
Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
Chapter 1 The Study of Body Function Image PowerPoint
BASIC SKILLS AND TOOLS USING ACCESS
1 Copyright © 2013 Elsevier Inc. All rights reserved. Appendix 01.
OvidSP Flexible. Innovative. Precise. Introducing OvidSP Resources.
UNITED NATIONS Shipment Details Report – January 2006.
Introduction to Metview
Tutorial 3 – Creating a Multiple-Page Report
Tutorial 9 – Creating On-Screen Forms Using Advanced Table Techniques
XP New Perspectives on Microsoft Office Word 2003 Tutorial 7 1 Microsoft Office Word 2003 Tutorial 7 – Collaborating With Others and Creating Web Pages.
FACTORING ax2 + bx + c Think “unfoil” Work down, Show all steps.
Year 6 mental test 5 second questions
Year 6 mental test 10 second questions
Points, Vectors, Lines, Spheres and Matrices
Word Lesson 6 Working with Graphics
View-Based Application Development Lecture 1 1. Flows of Lecture 1 Before Lab Introduction to the Game to be developed in this workshop Comparison between.
Excel Functions. Part 1. Introduction 2 An Excel function is a formula or a procedure that is performed in the Visual Basic environment, outside the.
REVIEW: Arthropod ID. 1. Name the subphylum. 2. Name the subphylum. 3. Name the order.
Intel VTune Yukai Hong Department of Mathematics National Taiwan University July 24, 2008.
Unit 8: Presenting Data in Charts, Graphs and Tables
PEPS Weekly Data Extracts User Guide September 2006.
INSERT BOOK COVER 1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Excel 2010 by Robert Grauer, Keith.
© Paradigm Publishing, Inc Access 2010 Level 1 Unit 1Creating Tables and Queries Chapter 2Creating Relationships between Tables.
Microsoft Access.
Chapter 15 Complex Numbers
Slide 6-1 COMPLEX NUMBERS AND POLAR COORDINATES 8.1 Complex Numbers 8.2 Trigonometric Form for Complex Numbers Chapter 8.
Page 1 of 48 Welcome To the GeoView System Overview Online Training Course The Alberta Department of Energy provides GeoView as a mapping system to enable.
First Steps using AutoDESK Inventor
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Office 2003 Integration Integrating Office 2003 Applications and the World Wide Web.
Lesson 8: Working with Illustrations Courseware #: 3240
VOORBLAD.
© Paradigm Publishing, Inc Excel 2013 Level 1 Unit 2Enhancing the Display of Worksheets Chapter 8 Adding Visual Interest to Workbooks.
Benchmark Series Microsoft Excel 2013 Level 2
Factor P 16 8(8-5ab) 4(d² + 4) 3rs(2r – s) 15cd(1 + 2cd) 8(4a² + 3b²)
Chapter 5 Microsoft Excel 2007 Window
Basel-ICU-Journal Challenge18/20/ Basel-ICU-Journal Challenge8/20/2014.
© 2012 National Heart Foundation of Australia. Slide 2.
Using AVS/Express in an Introductory Computer Graphics Course.
Collin College Credit Exam
Understanding Generalist Practice, 5e, Kirst-Ashman/Hull
Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. 1 Skills for Success with Office 2010 Vol.1 PowerPoint Lecture to Accompany Skills.
Macromedia Dreamweaver MX 2004 – Design Professional Dreamweaver GETTING STARTED WITH.
Model and Relationships 6 M 1 M M M M M M M M M M M M M M M M
25 seconds left…...
Exponential and Logarithmic Functions
Polynomial Functions of Higher Degree
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. a lesson approach Microsoft® PowerPoint 2010 © 2011 The McGraw-Hill Companies,
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
Computer Concepts BASICS 4th Edition
Intracellular Compartments and Transport
Welcome to CMPE003 Personal Computers: Hardware and Software Dr. Chane Fullmer Fall 2002 UC Santa Cruz.
PSSA Preparation.
Essential Cell Biology
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. a lesson approach Microsoft® PowerPoint 2010 © 2011 The McGraw-Hill Companies,
 2004 Prentice Hall, Inc. All rights reserved. 1 Chapter 30 - Dynamic HTML: Structured Graphics ActiveX Control Outline 30.1Introduction 30.2Shape Primitives.
Lesson 16 Enhancing Documents
Benchmark Series Microsoft Excel 2013 Level 2
Chapter 8 Improving the User Interface
Benchmark Series Microsoft Excel 2013 Level 2
ECE 103 Engineering Programming Chapter 40 C Graphing Libraries Herbert G. Mayer, PSU CS Status 6/4/2014 Initial content copied verbatim from ECE 103 material.
Presentation transcript:

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

Helmut Michels, MPI für Sonnensystemforschung Contents Introduction Basic Concepts Introductory Routines Plotting Axis Systems and Titles Plotting Curves Parameter Setting Routines Elementary Plot Routines Business Graphics 3-D Colour Graphics 3-D Graphics Geographical Projections and Plotting Maps Contouring Widget Routines Quickplots Helmut Michels, MPI für Sonnensystemforschung

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. Programming Languages: Fortran 77, Fortran 90/95, C, Perl, Python, Java Current Version: 10.3 (Jan. 2013) First Version: 1.0 (Dec. 1986) Helmut Michels, MPI für Sonnensystemforschung

Introduction / Features 9 Vector fonts with 7 alphabets, bitmap fonts Support of PostScript, X11 and Windows fonts Axis systems with various formats Plotting of curves and legends 3-D colour graphics 3-D graphics Business graphics Contours Plotting maps Widget routines Helmut Michels, MPI für Sonnensystemforschung

Installation UNIX/Linux gzip –d dislin-10.3.xxx.tar.gz tar xvf dislin-10.3.xxx.tar cd dislin-10.3 export DISLIN=dislin_directory (i.e. /usr/local/dislin) ./INSTALL General settings: export DISLIN=dislin_directory LD_LIBRARY_PATH=$DISLIN:$LD_LIBRARY_PATH PATH=$PATH:$DISLIN/bin Helmut Michels, MPI für Sonnensystemforschung

Helmut Michels, MPI für Sonnensystemforschung Installation Windows unzip dl_10_xx.zip (temporary directory) setup - choose ok - give the installation directory Global settings (Control Panel): DISLIN=dislin_directory PATH=%PATH%; dislin_directory\win Helmut Michels, MPI für Sonnensystemforschung

Basic Concepts / Page Format Default Page: DIN A4 Landscape Origin: Upper left corner Plot unit: [cm / 100] Routines: SETPAG (COPT), PAGE (NXP, NYP) Helmut Michels, MPI für Sonnensystemforschung

Basic Concepts / File Formats Vector formats: GKSLIN, CGM, PS, EPS, PDF, HPGL, WMF, SVG Image formats: TIFF, GIF, PNG, PPM, BMP Screen output: CONS, XWIN, GL Routines: METAFL (Format) SETFIL (Filename) Helmut Michels, MPI für Sonnensystemforschung

Basic Concepts / Level Structure Level 0 : before DISINI or after DISFIN Level 1: after DISINI or after ENDGRF Level 2: after GRAF, GRAFMP or POLAR Level 3: after GRAF3 or GRAF3D Helmut Michels, MPI für Sonnensystemforschung

Basic Concepts / Program Structure Setting of page format, file format and filename (SETPAG, PAGE, METAFL, SETFIL) Initialization (DISINI) Setting of plot parameters Plotting of the axis system (GRAF, POLAR, GRAFMP, GRAF3, GRAF3D) Plotting the title (TITLE) Plotting data points (CURVE, CURVE3, CURV3D, BARS, PIEGRF, SURFCE, CONTUR) Termination (DISFIN) Helmut Michels, MPI für Sonnensystemforschung

Basic Concepts / Conventions 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 Other variables are REAL Arrays end with the keyword ´RAY´ Helmut Michels, MPI für Sonnensystemforschung

Initialization and Termination Initialization: CALL DISINI () Termination: CALL DISFIN () Termination of an axis system: CALL ENDGRF () Helmut Michels, MPI für Sonnensystemforschung

Plotting Text and Numbers MESSAG (CSTR, NX, NY) plots text NUMBER (X, NDEZ, NX, NY) plots a number SYMBOL (NSYM, NX, NY) plots symbols HEIGHT (NH) sets the character height ANGLE (NANG) defines the character angle COMPLX, SIMPLX, DUPLX, define vector fonts SERIF, HELVE, HELVES PSFONT (CFNT) defines PostScript fonts BMPFNT (CFNT) defines a bitmap font WINFNT (CFNT) defines a Windows font X11FNT (CFONT, COPT) defines an X11 font Helmut Michels, MPI für Sonnensystemforschung

Axis Systems and Titles GRAF (XA, XE, XOR, XSTP, plots an axis system YA, YE, YOR, YSTP) POLAR (XE, XOR, XSTP, plots a polar axis system YOR, YSTP) TITLE () plots a title AXSPOS (NXA, NYA) defines the position AXSLEN (NXL, NYL) defines axis lengths TICKS (N, CAX) sets the number of ticks LABELS (CSTR, CAX) defines axis labels NAME (CSTR, CAX) sets axis titles AXSSCL (COPT, CAX) defines the axis scaling TITLIN (CSTR, I) defines text for titles Helmut Michels, MPI für Sonnensystemforschung

Helmut Michels, MPI für Sonnensystemforschung Plotting Curves CURVE (XRAY, YRAY, N) plots curves INCMRK (NMRK) selects symbols or lines MARKER (NHSYMB) defines a symbol HSYMBL (NH) sets the size of symbols POLCRV (COPT) sets an interpolation method THKCRV (N) defines curve thickness CHNCRV (COPT) sets attributes that will be automatically changed by CURVE LINTYP (N) defines line styles COLOR (COPT) sets a colour Helmut Michels, MPI für Sonnensystemforschung

Plotting Curves / Example Helmut Michels, MPI für Sonnensystemforschung

Parameter Setting Routines Basic routines (resetting, file format, page control, error handling, viewport control) Axis systems (type, position, size, scaling, labels, ticks, titles, colours, clipping) Colours (foreground, colour tables, utility routines) Text and numbers Fonts, alphabets Indices and exponents Instruction alphabet TeX instructions for mathematical formulas Curve attributes Line attributes Shading Base transformations Shielded regions Helmut Michels, MPI für Sonnensystemforschung

Elementary Plot Routines MESSAG (CSTR, NX, NY) plots text NUMBER (X, NDEZ, NX, NY) plots numbers SYMBOL (NSYM, NX, NY) plots symbols LINE (NX, NY, NU, NV) plots a line RECTAN (NX, NY, NW, NH) plots rectangles CIRCLE (NX, NY, NR) plots circles ELLIPS (NX, NY, NA, NB) plots ellipses VECTOR (NX, NY, NU, NV, IVEC) plots vectors AREAF (NXRAY, NYRAY, N) plots polygons RLMESS, RLNUMB, RLSYMB, are analogous routines for RLINE, RLREC, RLCIRC, user coordinates RLELL, RLVEC, RLAREA Helmut Michels, MPI für Sonnensystemforschung

Business Graphics / Bar Graphs BARS (XRAY, Y1RAY, plots bar graphs Y2RAY, N) BARTYP (COPT) defines vertical or horizontal bars BARWTH (XWTH) defines the width of bars LABELS (COPT, ´BARS´) sets labels LABPOS (COPT, ´BARS´) defines the position of labels LABDIG (N, ´BARS´) sets the number of decimal places in labels LABCLR (NCLR, ´BARS´) defines the colour of labels Helmut Michels, MPI für Sonnensystemforschung

Business Graphics / Pie Charts PIEGRF (CBUF, NLIN, plots pie charts XRAY, N) PIETYP (COPT) defines 2-D or 3-D pie charts LABELS (COPT, ´PIE´) defines labels LABPOS (COPT, ´PIE´) sets the position of labels LABDIG (N, COPT) sets the number of decimal places in labels LABCLR (NCLR, ´PIE´) sets the colour of labels PIECLR (N1RAY, N2RAY, N) defines colours for single pies PIEEXP () enable exploded pies Helmut Michels, MPI für Sonnensystemforschung

Business Graphics / Example Helmut Michels, MPI für Sonnensystemforschung

Helmut Michels, MPI für Sonnensystemforschung 3-D Colour Graphics GRAF3 (XA, XE, XOR, XSTP, plots a 3-D axis system where the YA, YE, YOR, YSTP, Z-axis is plotted as a colour bar ZA, ZE, ZOR, ZSTP) CURVE3 (XRAY, YRAY, ZRAY, N) plots data points CRVMAT (ZMAT, NX, NY, plots a coloured surface IXP, IYP) according to a matrix CRVTRI (XRAY, YRAY, ZRAY, N, plots the surface of a Delaunay I1RAY, I2RAY, I3RAY, NTRI) triangulation SETRES (NW, NH) defines the size of rectangles SHDMOD (COPT, ‘CURVE’) selects symbols or rectangles AX3LEN (NXL, NYL, NZL) defines axis lengths WIDBAR (NW) sets the width of colour bars NOBAR () suppresses the plotting of the colour bar COLRAN (NCA, NCE) defines the range of colours used for colour bars Helmut Michels, MPI für Sonnensystemforschung

3-D Colour Graphics / Example Helmut Michels, MPI für Sonnensystemforschung

3-D Graphics / Axis System GRAF3D (XA, XE, XOR, XSTP, plots an axis system YA, YE, YOR, YSTP, ZA, ZE, ZOR, ZSTP) GRID3D (NX, NY, COPT) plots a grid in the 3-D box AXIS3D (XLEN, YLEN, ZLEN) defines the lengths of the 3-D box VIEW3D (XVU, YVU, ZVU, COPT) sets the viewpoint VFOC3D (XFOC, YFOC, ZFOC, defines the focus point COPT) VUP3D (ANG) defines the rotation of the camera around the viewing axis ANG3D (ANG) specifies the field of view of the lens Helmut Michels, MPI für Sonnensystemforschung

3-D Graphics / Plotting Data CURV3D (XRAY, YRAY, ZRAY, N) plots curves SURFCE (XRAY, N, YRAY, M, plots a surface grid of a matrix ZMAT) SURFUN (ZFUN, IXP, XDEL, plots a surface grid of a function IYP, YDEL) SURSHD (XRAY, NX, YRAY, NY, plots a shaded surface from a ZMAT) matrix SURFCP (ZFUN, TMIN, TMAX, TSTP, plots a surface of a parametric UMIN, UMAX, USTP) function SURTRI (XRAY, YRAY, ZRAY, N, plots a surface of triangulated I1RAY, I2RAY, I3RAY, NTRI) data SURISO (XRAY, NX, YRAY, NY, plots isosurfaces of the form ZRAY, NZ, WMAT, WLEV) f (x, y, z) = constant BARS3D (XRAY, YRAY, Z1RAY, plots three-dimensional bars Z2RAY, XWRAY, YWRAY, ICRAY, N) Helmut Michels, MPI für Sonnensystemforschung

Helmut Michels, MPI für Sonnensystemforschung 3-D Graphics / Example Helmut Michels, MPI für Sonnensystemforschung

Geographical Projections GRAFMP (XA, XE, XOR, XSTP, plots a geographical axis system YA, YE, YOR, YSTP) CURVMP (XRAY, YRAY, ZRAY, N) plots curves WORLD () plots coastlines and lakes SHDMAP (CMAP) plots shaded continents PROJCT (COPT) selects the geographical projection MAPBAS (CBAS) defines the used map data base MAPFIL (CFIL) defines an external map file SETCBK (Routine, ‘MYPR’) enables an user-defined projection Helmut Michels, MPI für Sonnensystemforschung

Geogr. Projections / Example Helmut Michels, MPI für Sonnensystemforschung

Helmut Michels, MPI für Sonnensystemforschung Contouring CONTUR (XRAY, N, YRAY, M, plots contours ZMAT, ZLEV) of the function Z=F(X,Y) CONMAT (ZMAT, N, M, ZLEV) plots contours CONTRI (XRAY, YRAY, ZRAY, N, plots contours from I1RAY, I2RAY, I3RAY, NTRI, ZLV) triangulated data CONSHD (XRAY, N, YRAY, M, plots filled contours of ZMAT, ZLVRAY, NLV) the function Z = F(X, Y) CONFLL (XRAY, YRAY, ZRAY, N, plots filled contours I1RAY, I2RAY, I3RAY, NTRI, from triangulated data ZLVRAY, NLV) LABELS (COPT, ‘CONTUR’) defines labels for contours SHDMOD (COPT, CKEY) selects the algorithm used for contour filling Helmut Michels, MPI für Sonnensystemforschung

Helmut Michels, MPI für Sonnensystemforschung Contouring / Example Helmut Michels, MPI für Sonnensystemforschung

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

Widget Routines / Example 1 Helmut Michels, MPI für Sonnensystemforschung

Widget Routines / Example 2 Helmut Michels, MPI für Sonnensystemforschung

Helmut Michels, MPI für Sonnensystemforschung Quick Plots QPLOT (XRAY, YRAY, N) curve plot QPLSCA (XRAY, YRAY, N) scatter plot QPLBAR (XRAY, N) plots a bar graph QPLPIE (XRAY, N) plots a pie chart QPLCLR (ZMAT, NX, NY) 3-D colour plot QPLSUR (ZMAT, N, M) surface plot QPLCON (ZMAT, N, M, NLV) contour plot Helmut Michels, MPI für Sonnensystemforschung