Gri: `postscript' command

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.29: ``postscript`'
    `postscript \string'
Write the indicated string to the PostScript output file, after substitution of synonyms if there are any. Example:
    \a = "45"  # angle
    \w = "8.5" # page width
    postscript gsave \w 72 mul 0 translate \a rotate
    # ... other code to do stuff
    postscript grestore
Here is how to draw an image palette vertically instead of horizontally:
    \X = "3"	# cm
    \Y = "10"	# cm
    \a = "90"       # degrees counterclockwise
    postscript gsave \X 28.35 mul \Y 28.35 mul translate \a rotate
    # Palette is at user's origin
    draw image palette box 0 0 10 1
    postscript grestore
NOTE: the ``postscript`' command is very dangerous, and should normally only be used by developers. Most of the code concerning this is in the file ``doline.cc`'; look for the string ``postscriptCmd`' to find the relevant code.