Chapters: 1: Introduction 2: Simple example 3: Invocation 4: Finer Control 5: X-Y Plots 6: Contour Plots 7: Image Plots 8: Examples 9: Gri Commands 10: Programming 11: Environment 12: Emacs Mode 13: History 14: Installation 15: Gri Bugs 16: Test Suite 17: Gri in Press 18: Acknowledgments 19: License Indices: Concepts Commands Variables | ### 9.3.5: The ``create`' commands Create Columns From Function: prepare to draw a function Create Image Grayscale: prepare to draw banded image #### 9.3.5.1: ``create columns from function`'
    `create columns from function'
Plot a function of x which is defined in synonym \function.
    ENVIRONMENT
    \function = function to plot.
    \xmin     = minimum x value
    \xmax     = maximum x value
    \xinc     = increment in x values

    EXAMPLE
    \function = "cos(x)"
    \xmin     = "0"
    \xmax     = "2 * 3.14"
    \xinc     = "0.1"
    create columns from function
    draw curve
NOTE: This only works on machines which have the ``awk`' command available at the commandline. This means most unix machines and some vax machines. #### 9.3.5.2: ``create image grayscale`'
    `create image grayscale banded .band.'
Make a banded grayscale with in units of .band. pixel values each. Thus, pixel values 0 to (.band. - 1) on the image will map to 0, while values from .band. to (2 * .band. - 1) will map to .band., etc. For example, .band. = 2 gives grayscale = (0 0 2 2 4 4 6 6 ... 252 252 254 254).