Chapter 3. Advanced Use of PLplot

Table of Contents
Basic PLplot Concepts
Output Devices
Driver Functions
PLplot Metafiles and Plrender
Family File Output
Interactive Output Devices
Specifying the Output Device
Command Line Arguments
Defining the Viewport
Defining the Window
Annotating the Viewport
Setting up a Standard Window
Setting Line Attributes
Setting the Area Fill Pattern
Setting Color
Setting Character and Symbol Attributes
Escape Sequences in Text
Three Dimensional Surface Plots
Contour and Shade Plots

In this chapter, we describe more precisely how to control the position and scaling of a graph, how to alter the low-level line and character attributes, and how to use the functions in PLplot for drawing three-dimensional surface plots and contour plots.

Still updating this chapter.

Basic PLplot Concepts

When drawing a graph, the programmer usually wishes to specify the coordinates of the points to be plotted in terms of the values of the variables involved. These coordinates are called world coordinates, and may have any floating-point value representable by the computer. The window refers to the rectangular region of world-coordinate space which is to be graphed. This window is mapped onto a rectangular region of the view surface, which can be a terminal screen or a sheet of paper in the output device (or a portion thereof, if subpages are being used). This physical region onto which the window is mapped is called the viewport. Before a graph can be drawn, the program must define both the window and the viewport by calling appropriate routines in PLplot.