Gri: The Gri resource file

General Issues 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 | ## 6.7: Sample Resource File The following shows a sample ``~/.grirc`' resource file. Much of the code here is adding new commands (see Adding New Commands..)
    # my ~/.grirc stuff
    #
    `user'
    Show user's name.
    {
      show "\.user."
    }

    `time'
    Show the time.
    {
      show "\.time."
    }

    `host'
    Show host computer name.
    {
      show "\.host."
    }

    `Landscape Big'
    Plot in landscape mode, big size.
    {
      set page landscape
      set x margin 2
      set x size 25
      set y margin 2
      set y size 15
    }

    `Portrait Big'
    Plot in portrait mode, big size.
    {
      set x margin 2
      set x size 15
      set y margin 2
      set y size 15
    }