PGPLOT
Graphics Subroutine Library
T. J. Pearson
Copyright © 1988-1997 by California Institute of Technology
Contents
Acknowledgments
Chapter 1
Introduction
1.1 PGPLOT
1.2 This Manual
1.3 Using PGPLOT
1.4 Graphics Devices
1.5 Environment Variables
Chapter 2
Simple Use of PGPLOT
2.1 Introduction
2.2 An Example
2.3 Data Initialization
2.4 Starting PGPLOT
2.5 Defining Plot Scales and Drawing Axes
2.6 Labeling the Axes
2.7 Drawing Graph Markers
2.8 Drawing Lines
2.9 Ending the Plot
2.10 Compiling and Running the Program
Figure 2.1
: Output of Example Program
Chapter 3
Windows and Viewports
3.1 Introduction
3.2 Selecting a View Surface
3.3 Defining the Viewport
3.4 Defining the Window
3.5 Annotating the Viewport
3.6 Routine PGENV
Chapter 4
Primitives
4.1 Introduction
4.2 Clipping
4.3 Lines
4.4 Graph Markers
4.5 Text
4.6 Area Fill: Polygons, Rectangles, and Circles
Figure 4.1
: PGPLOT standard graph markers
Figure 4.2
: Text Examples
Figure 4.3
: Escape Sequences for Greek Letters
Chapter 5
Attributes
5.1 Introduction
5.2 Color Index
5.3 Color Representation
5.4 Line Style
5.5 Line Width
5.6 Character Height
5.6 Character Font
5.7 Text Background
5.8 Fill-Area Style
5.9 The Inquiry Routines
5.10 Saving and Restoring Attributes
Figure 5.1
: Default color representations of color indices 0-15
Figure 5.2
: Fill-area styles
Chapter 6
Higher-Level Routines
Introduction
XY-plots
Histograms
Functions of two variables
Chapter 7
Interactive Graphics
7.1 Introduction
7.2 The Cursor
7.3 Using the Cursor
7.4 Buffering
Appendix A
Subroutine Descriptions
Appendix B
PGPLOT Symbols
B.1 Character Encoding
B.2 Additional Symbols
Figure B.0
: Character Encoding
Figure B.1
: Symbols 1-527
Figure B.2
: Symbols 528-713
Figure B.3
: Symbols 714-2017
Figure B.4
: Symbols 2018-2192
Figure B.5
: Symbols 2193-2400
Figure B.6
: Symbols 2401-2747
Figure B.7
: Symbols 2748-2932
Appendix C
Calling PGPLOT from a C Program
C.1 Introduction
C.2 Using the CPGPLOT library
C.3 Limitations
C.4 Other Machine Dependencies
C.5 Examples
Appendix D
Supported Devices
Introduction
Available Devices
Appendix E
Writing a Device Handler
E.1 Introduction
E.2 The device dispatch routine GREXEC
E.3 Device handler interface
E.4 Handler state
E.5 Summary of operations
Appendix F
Installation Instructions
Appendix G
Porting PGPLOT
G.1 General Notes
G.2 Porting to UNIX systems
Tim Pearson, California Institute of Technology,
tjp·astro.caltech.edu
Copyright © 1995-6 California Institute of Technology