[GRASS-user] GRASS_PAPER options

So far I used the following:

GRASS_TRUECOLOR=“TRUE”
GRASS_PSFILE=foo.ps
export GRASS_TRUECOLOR GRASS_PSFILE
GRASS_PAPER=a4
GRASS_LANDSCAPE=“TRUE”
export GRASS_PAPER GRASS_LANDSCAPE

d.mon PS

four square frames

d.frame -e

d.frame -c at=“0,50,0,50”
d.frame -c at=“50,100,0,50”
d.frame -c at=“0,50,50,100”
d.frame -c at=“50,100,50,100”

d.mon stop=PS

BTW, is there a way to suppress drawing of frames?

Any suggestions appreciated,

Roland

Im running Mac OS X binaries from
http://www.kyngchaos.com/wiki/software:grass
g.version
GRASS 6.3.0 (2008)

Hi all!

Soprry, I have forgotten to paste something:

Is it possible to set specific values of width and height for GRASS_PAPER
when printing to a postscript device? For example, something like
GRASS_PAPER_HEIGHT and GRASS_PAPER_WIDTH?
grass-user@lists.osgeo.org

So far I used the following:

GRASS_TRUECOLOR=“TRUE”
GRASS_PSFILE=foo.ps
export GRASS_TRUECOLOR GRASS_PSFILE
GRASS_PAPER=a4
GRASS_LANDSCAPE=“TRUE”
export GRASS_PAPER GRASS_LANDSCAPE

d.mon PS

four square frames

d.frame -e

d.frame -c at=“0,50,0,50”
d.frame -c at=“50,100,0,50”
d.frame -c at=“0,50,50,100”
d.frame -c at=“50,100,50,100”

d.mon stop=PS

BTW, is there a way to suppress drawing of frames?

Any suggestions appreciated,

Roland

Im running Mac OS X binaries from
http://www.kyngchaos.com/wiki/software:grass
g.version
GRASS 6.3.0 (2008)

Roland.Kaiser@sbg.ac.at wrote:

Soprry, I have forgotten to paste something:

Is it possible to set specific values of width and height for GRASS_PAPER
when printing to a postscript device? For example, something like
GRASS_PAPER_HEIGHT and GRASS_PAPER_WIDTH?

You can use GRASS_WIDTH and GRASS_HEIGHT, as with other drivers
(except that the PS driver treats these values as points rather than
pixels).

BTW, is there a way to suppress drawing of frames?

Unfortunately, no. The library functions which create and select
frames always draw a border.

OTOH, it's not hard that to remove them from the resulting PS file.
The borders should show up as a sequence of commands which looks like:

  ... WINDOW
  ... COLOR (or GRAY)
  ... LINE
  ... LINE
  ... LINE
  ... LINE
  ... WINDOW

You can remove everything except for the last WINDOW command to get
rid of the border.

--
Glynn Clements <glynn@gclements.plus.com>

Roland wrote:

# four square frames
d.frame -e

d.frame -c at="0,50,0,50"
d.frame -c at="50,100,0,50"
d.frame -c at="0,50,50,100"
d.frame -c at="50,100,50,100"

see d.frame.split script from wiki addons to automate that.

BTW, is there a way to suppress drawing of frames?

I don't know what it does in the PS driver, but you might find that
  d.frame -s frame=full_screen
at the end of plotting stops one particular frame from remaining
highlighted.

see also the multi-frame ps.map tip on the wiki site.

Hamish