12.07.2015 Views

GLE User Manual - Fedora Project Packages GIT repositories

GLE User Manual - Fedora Project Packages GIT repositories

GLE User Manual - Fedora Project Packages GIT repositories

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4.2. GRAPH COMMANDS (IN DETAIL) 25begin graphxtitle "Age"ytitle "Weight"data "age.csv"key pos br compactd1 line color red marker circled2 line color blue marker triangled3 line color green marker squareend graphAge, John, Mary, Ken15, 73, 65, 7720, 80, 68, 7730, 82, 76, 8040, 85, 77, 82Weight8580757065JohnMaryKen15 20 25 30 35 40AgeFigure 4.1: Line graph with key taken from the column labels in the first data row. Left: the graphblock; middle: the dataset “age.csv”; right: the resulting graph.1, 2.7, 32, 5, *3, 7.8, 74, 9, 4The first point of dataset d1 would then be (1, 2.7) and the first point of dataset d2 would be (1,3). The data values can be space, tab, comma, or semi-colon separated.Missing values can be indicated with “*”, “?”, “-”, or “.”.The option d3=c2,c3 allows particular columns of data to be read into a dataset. In this example,d3 would read its x-values from column 2 and y-values from column 3.size 7 3.5begin graphsize 6 3title "Simple Graph"xtitle "Time"ytitle "Output"data "data.csv"d1 line marker triangle color redend graphOutput108642Simple Graph01.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0TimeComments: Comments can be included with the symbol “!”. All characters from “!” until theend of the line of the data file are ignored. It is possible to change the symbol that indicates acomment with the option ‘comment’. E.g., with ‘data "data.csv" comment #’, lines starting with# will be treated as comments.Ignore header: The option ignore n makes <strong>GLE</strong> ignore the first n lines of the data file. This isuseful if the first n lines do not contain data.Auto key: If the first row of a data file does not contain actual data but instead contains columnlabels, then these labels are used by <strong>GLE</strong> to create a key for the graph (Chapter 5). <strong>GLE</strong> automaticallydetects this case by checking if all fields in the first row are valid numbers or not. If not,then <strong>GLE</strong> assumes that the first row contains column labels. Column labels that include a spaceor that could be incorrectly interpreted as a number should be double quoted. Fig. 4.1 illustratesthis with an example.Auto x-labels: If the first column of a data file does not contain numeric data, but instead containssymbolic labels, then these labels are used to label the horizontal axis. For example, if the data filecontainsMon, 1Tue, 4Wed, 3.5Thu, 2Fri, 1Sat, 5Sun, 4

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!