.TH d.linegraph 1grass "" "GRASS 7.2.0" "Grass User's Manual" .SH NAME \fI\fBd.linegraph\fR\fR \- Generates and displays simple line graphs in the active graphics monitor display frame. .SH KEYWORDS display, cartography .SH SYNOPSIS \fBd.linegraph\fR .br \fBd.linegraph \-\-help\fR .br \fBd.linegraph\fR \fBx_file\fR=\fIstring\fR \fBy_file\fR=\fIstring\fR[,\fIstring\fR,...] [\fBdirectory\fR=\fIstring\fR] [\fBy_color\fR=\fIstring\fR[,\fIstring\fR,...]] [\fBtitle_color\fR=\fIstring\fR] [\fBx_title\fR=\fIstring\fR] [\fBy_title\fR=\fIstring\fR] [\fBtitle\fR=\fIstring\fR] [\-\-\fBhelp\fR] [\-\-\fBverbose\fR] [\-\-\fBquiet\fR] [\-\-\fBui\fR] .SS Flags: .IP "\fB\-\-help\fR" 4m .br Print usage summary .IP "\fB\-\-verbose\fR" 4m .br Verbose module output .IP "\fB\-\-quiet\fR" 4m .br Quiet module output .IP "\fB\-\-ui\fR" 4m .br Force launching GUI dialog .SS Parameters: .IP "\fBx_file\fR=\fIstring\fR \fB[required]\fR" 4m .br Name of data file for X axis of graph .IP "\fBy_file\fR=\fIstring[,\fIstring\fR,...]\fR \fB[required]\fR" 4m .br Name of data file(s) for Y axis of graph .IP "\fBdirectory\fR=\fIstring\fR" 4m .br Path to file location .IP "\fBy_color\fR=\fIstring[,\fIstring\fR,...]\fR" 4m .br Color for Y data .IP "\fBtitle_color\fR=\fIstring\fR" 4m .br Color for axis, tics, numbers, and title .br Default: \fIblack\fR .IP "\fBx_title\fR=\fIstring\fR" 4m .br Title for X data .br Default: \fI\fR .IP "\fBy_title\fR=\fIstring\fR" 4m .br Title for Y data .br Default: \fI\fR .IP "\fBtitle\fR=\fIstring\fR" 4m .br Title for Graph .br Default: \fI\fR .SH DESCRIPTION \fId.linegraph\fR is a primitive program to draw simple x,y line graphs based on numerical data contained in separate files. .PP Data file format .br The X and Y data files for the graph are essentially a column of numbers in each file, with one input number per line. The program expects that each X value will have a corresponding Y value, therefore the number of lines in each data input file should be the same. Essentially, the X data becomes the X axis reference to which the Y data is plotted as a line. Therefore, the X data should be a monotonically increasing progression of numbers (i.e. \(dq1,2,3,...\(dq; \(dq0, 10, 100, 1000,...\(dq; \(dq...\-5,\-1,0,1,5...\(dq). If multiple Y data files are used, the Y axis scale will be based on the range of minimum and maximum values from all Y files, then all Y data given will be graphed according to that Y scale. Therefore, if multiple Y data inputs are used with dissimilar units, the graph produced comparing the two will be deceptive. .PP .IP "\fBdirectoryname\fR " 4m .br Path to the directory where the input files are located. .br Example format: /usr/grass/data/graph .IP "\fBycoloroption[,option,...]]\fR " 4m .br Color to be used for drawing the lines in the graph. If multiple Y data files are used, an equal number of colors may be used to control the colors of the lines. Colors will be assigned to Y data in respect to the sequence of instantiation on the command line. Options are listed below. By default, a series of colors will be chosen by the program if none are provided upon invocation. .br Order of default colors: yellow, red, green, violet, blue, orange, gray, brown, magenta, white, indigo). .IP "\fBtitlecoloroption\fR " 4m .br The color to be used for titles, axis lines, tics, and scale numbers. .br Default: \(dqwhite\(dq .br Color options: red, orange, yellow, green, blue, indigo, violet, magenta, brown, gray, white, and black. .IP "\fBxtitlevalue\fR " 4m .br Title to describe X data. Will be centered beneath the graph. Default is no title unless the need for a unit descriptor is computed by the program (i.e. X: title in hundreds). Also, see NOTES section (below) for a format caveat for multi\-word titles. .IP "\fBytitlevalue\fR " 4m .br Title to describe Y data. Will be centered beneath the X data title. Default is no title unless the need for a unit descriptor is computed by the program (i.e. Y: ttiittllee in thousands). Also, see NOTES section (below) for a format caveat for multi\-word titles. In the case of graphs with multiple lines, one may wish to use more specific title placement by using the \fId.text\fR or \fIv.label\fR programs. .IP "\fBtitlevalue\fR " 4m .br Title to describe the graph. Will be centered over the top of graph. Default is no title. See NOTES section (below) for a format caveat for multi\-word titles. .SH NOTES Since the command line parser is not amiable to multiple word inputs, to input titles of more than one word, use the underscore character (\(dq\(dq) to represent spaces (\(dq \(dq). .PP Example: \(dqtitleCensusdata1990\(dq would be printed over the graph as \(dqCensus data 1990\(dq. .PP The way the program locates and labels tic marks is less than perfect: 1) although distances between Y tics is proportional to the value, they are not proportional on the X axis; 2) decimal values between \-1 and 1 can be printed on the X axis, but not on Y. (With respect to the later, the input for Y values can all be multiplied by a factor of 10 before graphing). .PP It might be easier to use a 3rd party tool such as xgraph or GNUplot instead of \fId.linegraph\fR. \&. (You can make GNUplot output pretty by using its SVG or PostScript output driver and converting that back into a rasterized image in a paint program) .SH SEE ALSO \fI d.frame, d.text, v.label \fR .SH AUTHOR Chris Rewerts, Agricultural Engineering, Purdue University .PP \fILast changed: $Date: 2012\-12\-28 02:52:38 \-0800 (Fri, 28 Dec 2012) $\fR .SH SOURCE CODE .PP Available at: d.linegraph source code (history) .PP Main index | Display index | Topics index | Keywords index | Graphical index | Full index .PP © 2003\-2016 GRASS Development Team, GRASS GIS 7.2.0 Reference Manual