CONTENTS Title Page Copyright Page Preface 1 Overview of Laboratory Graphics Package (LGP) 1.1 What Is LGP? 1.2 Plotting Device Support 1.3 Examples of an LGP Program 1.4 Example of Graphical Output 1.5 Summary of Plotting Routines 2 LGP Concepts 2.1 LGP Plotting Routine Hierarchy 2.1.1 Top-Level Routines 2.1.2 Additional Data Routines 2.1.3 Data and Graph Manipulation Routines 2.1.4 Independent Utility Routines 2.2 Running LGP Under ULTRIX and VMS 2.2.1 Linking Libraries Under ULTRIX 2.2.1.1 Examples of Linking Libraries 2.3 Using LGP with DECwindows 2.4 Changing Environment Options and Logical Names 2.4.1 Changing Environment Options Under ULTRIX 2.4.2 Changing Logical Names Under VMS 2.4.3 Using Foreign Devices Under VMS 2.5 Including Symbolic Status Definition Files 2.6 Device-Dependent Plotting Capabilities 2.7 Producing Multicolor Plots on the Terminal Screen 2.8 Using DEC GKS-3D and DEC GKS with LGP 2.8.1 Coordinates 2.8.2 Linking Libraries for Using GKS 2.8.3 GKS Operating States 2.9 Producing Character Output on the Terminal Screen 2.10 Exiting LGP 3 Establishing Plotting Attributes 3.1 Overview of the Plotting Attribute List 3.2 Plotting Attribute List Values 3.3 Reading Plotting Attribute Values 3.4 Modifying Plotting Attribute Values 3.5 Resetting Plotting Attribute Default Values 4 Creating Multiple Plots 4.1 Workstation Number and Plotting Windows 4.2 Example of Creating Multiple Plots 4.3 Creating Multiple Plots on a Color Workstation Running DECwindows 5 Plotting Routines CHANGE PLOTTING LOGICALS CONTOUR CONTOUR SHADE CONTOURM ERASE GET CHOICE GET LOCATOR GET STRING GET STROKE GET VALUE HIST INFO MAP PEN PLOT PLOT LOG PLOT METAFILE PLOT 3D PLOTC PLOTM POINT PRINT SCREEN PUT TEXT SCALE SCALE LOG SET GRAPH SET 3D GRAPH SPLINE QHC STNDEV 3D SIMPLE TABLE MODIFY TABLE READ VALUE TABLE RESET TERMINATE PLOT 6 Error Handling 6.1 Checking Routine Call Status Under ULTRIX 6.1.1 Automatic Status Checking 6.1.1.1 Examples of Automatic Status Checking 6.1.2 Manual Status Checking 6.1.2.1 Examples of Manual Status Checking 6.2 Checking Routine Call Status Under VMS 6.3 List of Error Messages 7 Online Sample Programs EXAMPLES 1-1 Simple Plot Using LGP Under ULTRIX 1-2 Simple Plot Using LGP Under VMS 2-1 Example of Defining Logical Names 4-1 Creating Multiple Plots on a Graphics Terminal FIGURES 1-1 Simple LGP Plot 2-1 Hierarchy of LGP Routine Calls 2-2 Window and Layout When Using GKS and Plotting Routines 4-1 Window and Layout When Using the Plotting Routines 4-2 Multiple Plots 5-1 Sample Output of CONTOUR Routine 5-2 Sample Output of CONTOUR SHADE Routine 5-3 Sample Output of CONTOURM Routine 5-4 Sample Output of GET CHOICE Routine 5-5 Sample Output of GET STRING Routine 5-6 Sample Output of GET VALUE Routine 5-7 Sample Output of HIST Routine 5-8 Sample Output of PLOT Routine 5-9 Sample Output of PLOT LOG Routine 5-10 Sample Output of PLOT 3D Routine 5-11 Sample Output of PLOTM Routine 5-12 Sample Output of POINT Routine 5-13 Sample Output of PUT TEXT Routine 5-14 Sample Output of SCALE LOG Routine 5-15 Sample Output of STNDEV Routine 5-16 Sample Output of 3D SIMPLE Routine TABLES 1-1 Devices Supported by LGP 1-2 Summary of Plotting Routines 2-1 Two-Dimensional, Three-Dimensional, and Contour Plotting 2-2 Compile Options for Linking Libraries in LGP Programs 2-3 Plotting Attribute List Symbolic Status Definition Files 2-4 Device Coordinates 2-5 GKS Operating States 3-1 Plotting Attribute List Values 6-1 Status Value Definition Files for ULTRIX 6-2 Status Value Definition Files for VMS 7-1 LGP Online Sample Programs