1960.1
, 1995.3
, 47.1
(years can be given in 4 or 2 digits; quarters are given as 1 digit following
a "decimal" point). The remaining columns can contain any number of data
series. Any "comment" (non-data) lines should have a "#" in the first
column. A little example is given in the file q2.dat.
call "qplot.gp" "<datafile>" "<plot parameters>" {<maxtics>}
call "qplot.gp" "econ.dat" "using 1:2 with lines" 12
call
must be quoted. Supply
the name of your original datafile: the perl script will write out a temporary
modified version (qdata.tmp
) and use this for the plot. Then
supply the parameters to the plot
command that you wish to
use, as usual but quoted (see the gnuplot manual for details). Finally
(and optionally) supply an integer representing the maximum number of
date-labeled tic marks to place on the x-axis. This defaults to 12.
If you get an error message saying that the files tictmp.gp
and qdata.tmp
are missing that means that the perl
script has not done its job, probably because it can't find perl.
Please open gp_quarters.pl
in a text editor and fix
it for your system.
Sample 1:
set size .8,.8 set term png color set output "sample1.png" set title "Gross domestic product (AR, bil. 1987 $) 1948.1 - 1993.3" set nokey call "qplot.gp" "q3.dat" "using 1:2 w l"
set size .8,.8 set term gif set rmargin 4 set output "sample2.gif" set title "Gross domestic product (AR, bil. 1987 $) 1948.1 - 1950.4" set nokey call "qplot.gp" "q2.dat" "using 1:2 w l"
set size .8,.8 set term png color set rmargin 4 set output "sample3.png" set title "Gross domestic product (AR, bil. 1987 $) 1948.1 - 1950.4" set nokey call "qplot.gp" "q2.dat" "using 1:2 w l" 6
add_quarters.pl 1956.1 < econ.dat