plotxt(3f) - [M_datapac:LINE_PLOT] generate a line printer run sequence plot for the terminal (71 characters wide)
Synopsis
Description
Input Arguments
Output
Examples
Author
Maintainer
License
SUBROUTINE PLOTXT(X,N)
REAL(kind=wp),intent(in) :: X(:) INTEGER,intent(in) :: N
PLOTXT(3f) yields a narrow-width (71-character) plot of x(i) versus i. Its narrow width makes it appropriate for use on a terminal.Values in the vertical axis vector (X) which are equal to or in excess of 10.0**10 will not be plotted.
This convention greatly simplifies the problem of plotting when some elements in the vector X are missing data, or when we purposely want to ignore certain elements in the vector X for plotting purposes (that is, we do not want certain elements in X to be plotted). To cause specific elements in X to be ignored, we replace the elements beforehand (by, for example, use of the REPLAC(3f) subroutine) by some large value (like, say, 10.0**10) and they will subsequently be ignored in the PLOTXT(3f) subroutine.
Note that the storage requirements for this (and the other) terminal plot subroutines are very small. This is due to the one line at a time algorithm employed for the plot.
X The vector of (unsorted or sorted) observations to be plotted vertically. N The integer number of observations in the vector X.
A narrow-width (71-character) terminal plot of X(I) versus I. The body of the plot (not counting axis values and margins) is 25 rows (lines) and 49 columns.
Sample program:
program demo_plotxt use M_datapac, only : plotxt implicit none ! call plotxt(x,y) end program demo_plotxtResults:
The original DATAPAC library was written by James Filliben of the Statistical Engineering Division, National Institute of Standards and Technology.
John Urban, 2022.05.31
CC0-1.0
Nemo Release 3.1 | plotxt (3) | February 23, 2025 |