Gri: fancy example

Fancy example 1: Introduction 2: Simple example 3: Fancy example 4: Running Gri 5: Programming Gri 6: General Issues 7: X-Y Plots 8: Contour Plots 9: Image Plots 10: Examples 11: Handling Data 12: Gri Commands 13: Gri Extras 14: Evolution of Gri 15: Installing Gri 16: Gri Bugs 17: System Tools 18: Acknowledgments 19: License 20: Newsgroup 21: Concept Index | # 3: Fancy Gri Plots Gri makes good choices for axis size, axis scaling, line widths, fonts, etc, but of course you will often want to control these things. Below is a followup to the previous example, which names the x and the y axes.
    # Fancier version of Example 1
    open example1.dat
    read columns x y
    set x name "Time, hours"
    set y name "U, m/s"
    draw curve
The difference is that the x and y axes are named with a ``set`' command. There are many ``set`' commands, and they are all pretty simple, e.g. ``set x size 15`' makes the x-axis be 15 centimeters long, instead of the default of 10 centimeters. Indeed, you can control anything you want in gri, e.g. graph size, line width, fonts, etc etc. Speaking of fonts, the ``$\alpha$`' type of latex formatting of Greek letters in a limited way. Also, Gri handles iso-latin-1 encodings as well as the U.S. style. The example below illustrates a few more ``set`' commands. This example is intentionally complicated, being about a good example of the level of complexity of many plots made by Gri. Read the comments to see what is being done, and consult the plot as you read the commandfile. For more details on controlling these things, see Axes.. The command-file.