![]() | ||
Cookbook
|
5: Cookbook
5.1: Example 1 -- filled-curves, dots, line-segments-- to be filled in later --
Diagram illustrating x-y curves, arrows, text. Since this is a definition sketch, no axes are drawn. (From Kelley and Van Scoy, 1997)
![]() 5.3: Example 3 -- color-coded dots, isopycnalsDiagram illustrating temperature-salinity plot, color-coded for a third variable (in this case, bug counts). Data from bioness tows made by Dalhousie as part of the OPEN program.
![]() 5.4: Example 4 -- a cmd for TS diagrams
The `
![]() 5.5: Example 5 -- timing test
The following code tests the speed of programming a subroutine in gre,
compared to using a builtin function. To run it, do e.g.
`
Depending on the speed of your machine, you may have to use a different
value of `
My results, on a Sun Microsystems solaris machine, indicate that the
gre-based `
Diagram from my introductory Physical Oceanography class, illustrating (a) large fonts and pretty colors, suitable for overhead projection and (b) display of theoretical curves as oppposed to data.
![]() 5.7: Example 7 -- drawing a coastline map with fancy projection
Diagram shows Maritimes provinces of Canada, plotted using the
`
![]() 5.8: Example 8 -- colored text
Face it, people like/hate to be reminded of their age on birthdays. So,
the way to make them like/hate you is to wrap their present in paper
that was generated as below. Only a snippet of the 8.5x11" output is
shown. Click on the diagram to see the source code, and just change the
`
![]() 5.9: Example 9 -- month-of-year timeseries
There is no builtin facility for plotting against month-of-the year, but
you can get this sort of graph pretty easily. For daily data you'll
need to know the number of days in each month (as a function of whether
it's a leap year or not), etc. But for month-averaged data, the case is
simpler; you just need to write `
![]() (c) 1997-2000 Dan E. Kelley, email Dan.Kelley@Dal.Ca |