Question:

How to set the GRASS Monitor size in a script?

Answer:

Make use of the environment variables:

     export GRASS_WIDTH=xxx    #if you want another size than the default 640
     export GRASS_HEIGHT=xxx   #if you want another size than the default 480

         Example: You want 800x600:
                    export GRASS_WIDTH=800
                    export GRASS_HEIGHT=600

     If "export" is not accepted in your shell, try "setenv" instead:
                    setenv GRASS_WIDTH 800
                    setenv GRASS_HEIGHT 600
If you would like to save screenshots in a script (even without displaying in a GRASS monitor), you can use the CELL-driver.

Markus Neteler
$Date$

Go back to GRASS GIS FAQ...