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.

8.2. LETZ 67zclip [min v1 ] [max v2 ]ZCLIP goes through the Z array and sets any Z value smaller than MIN to v1 and sets any valuegreater than MAX to v2.8.2 LetzLETZ generates a data file of z values given an expression in terms of x and y.begin letzdata "jack.z"z = x+sin(y^2)/pi+10.22x from 0 to 30 step 1y from 0 to 20 step 1end letzThe file jack.z now contains the required data. The resulting file can be used to generate surface plotswith the begin/end surface block discussed in the previous section.8.3 FitzFITZ fits smooth curves based on a set of 3D data points. E.g., given some data points (note that eachline has three values: an x, y, and z coordinate):x y z---- data file testf.dat -----1 1 11 2 12 2 12 1 11.5 1.5 2------------------------------Fitz creates a ”.z” file that can be used in a surface block, a colormap or contour plot. The followingexample illustrates this.begin fitzdata "fitz.dat"x from 0 to 5 step 0.2y from 0 to 5 step 0.22.5ncontour 6end fitz2begin surfacesize 7 7data "fitz.z"top color bluexaxis min 0 max 5 step 1yaxis min 0 max 5 step 1points "fitz.dat"droplines lstyle 1marker circleview 2.5 3 0.3harray 5000end surface1.510.500 1 2 3 4 50 1 2 3 4 58.4 ContourThe contour block produces contour lines of a function z = f(x, y).The function f(x, y) is given by a .z file. The .z file format is discussed on page 64. Recall that a .z filecan be created from sample data points, that is (x, y, z) tuples, with the fitz block (Section 8.3), or froman implicit definition of f(x, y) with a letz block (Section 8.2).

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

Saved successfully!

Ooh no, something went wrong!