Chapter 16: Quickplots
This chapter presents some quickplots that are collections of DISLIN routines
for displaying data with one statement. Axis scaling is done automatically
by the quickplots. By default, graphical output is send to the screen.
Q P L O T
QPLOT connects data points with lines.
- The call is:
- CALL QPLOT (XRAY, YRAY, N) - level 0, 1
- XRAY, YRAY
- are arrays that contain X- and Y-coordinates.
- N
- is the number of data points.
Q P L S C A
QPLSCA marks data points with symbols.
- The call is:
- CALL QPLSCA (XRAY, YRAY, N) - level 0, 1
- XRAY, YRAY
- are arrays that contain X- and Y-coordinates.
- N
- is the number of data points.
Q P L B A R
QPLBAR plots a bar graph.
- The call is:
- CALL QPLBAR (XRAY, N) - level 0, 1
- XRAY
- is an array containing data points.
- N
- is the number of data points.
Q P L P I E
QPLPIE plots a pie chart.
- The call is:
- CALL QPLPIE (XRAY, N) - level 0, 1
- XRAY
- is an array containing data points.
- N
- is the number of data points.
Q P L C L R
QPLCLR makes a 3-D colour plot of a matrix.
- The call is:
- CALL QPLCLR (ZMAT, IXDIM, IYDIM) - level 0, 1
- ZMAT
- is a matrix with the dimension (IXDIM, IYDIM) containing
the function values.
- IXDIM, IYDIM
- are the dimensions of ZMAT.
Q P L S U R
QPLSUR makes a surface plot of a matrix.
- The call is:
- CALL QPLSUR (ZMAT, IXDIM, IYDIM) - level 0, 1
- ZMAT
- is a matrix with the dimension (IXDIM, IYDIM) containing
the function values.
- IXDIM, IYDIM
- are the dimensions of ZMAT.
Q P L C O N
QPLCON makes a contour plot of a matrix.
The call is: CALL QPLCON (ZMAT, IXDIM, IYDIM, NLV) - level 0, 1
ZMAT is a matrix with the dimension (IXDIM, IYDIM) containing
the function values.
IXDIM, IYDIM are the dimensions of ZMAT.
NLV is the number of contour levels that should be generated.
Quickplots can be called in level 0 and in level 1 of DISLIN. If they
are called in level 0, the statements CALL METAFL ('CONS') and CALL DISINI
are executed by quickplots. If they are called in level 1, these statements
will be suppressed. This means that programs can change the output device
of quickplots and define axis names and titles if they call quickplots
in level 1 after a call to DISINI.
The following example defines axis names and a title for QPLOT:
CALL METAFL ('CONS')
CALL DISINI
CALL NAME ('X-axis', 'X')
CALL NAME ('Y-axis', 'Y')
CALL TITLIN ('This is a Title', 2)
CALL QPLOT (XRAY, YRAY, N)
END
Next |
Previous |
Contents