[GRASS-user] ps.map question concerning rtid numbers

Hi

I am using ps.map with a raster and a grid and showing numbers. This
works fine, only that background of the numbers of the grid is white,
and not transparent - consequently, one can not see the raster (see
attached png). I am using the code below. My question is, if it would
be possible to set the background of the numbers to transparent.

Thanks

Rainer

raster ag.all_prioStand_2006.consensus.asc

paper
   width 1.5
   height 0.8
   left 0
   right 0
   bottom 0
   top 0
end

border n

grid 10000
  color grey
  numbers 2 grey
  font size 10
end

--
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Faculty of Science
Natural Sciences Building
Private Bag X1
University of Stellenbosch
Matieland 7602
South Africa

(attachments)

cp.all_prioStand_2006.consensus.asc.map.png

Rainer wrote:

I am using ps.map with a raster and a grid and showing numbers. This
works fine, only that background of the numbers of the grid is white,
and not transparent - consequently, one can not see the raster (see
attached png). I am using the code below. My question is, if it would
be possible to set the background of the numbers to transparent.

generally no. but:

perhaps with the new ps.map patch in the tracker by Jorge? (#487)

or, you can edit the postscript file by hand. Open in vi (or some other
industrial strength text editor), search for the coordinate text near the end of the file, maybe in (12345) parentheses.

then ~3rd line after text change "1 1 1 C" to another color (R G B, 0.0-1.0) or just remove that line??

I think I've tried it before and it didn't look very nice because the previously masked grid line continued through the text.

Hamish

On Fri, Feb 20, 2009 at 10:24 AM, Hamish <hamish_b@yahoo.com> wrote:

Rainer wrote:

I am using ps.map with a raster and a grid and showing numbers. This
works fine, only that background of the numbers of the grid is white,
and not transparent - consequently, one can not see the raster (see
attached png). I am using the code below. My question is, if it would
be possible to set the background of the numbers to transparent.

generally no. but:

perhaps with the new ps.map patch in the tracker by Jorge? (#487)

or, you can edit the postscript file by hand. Open in vi (or some other
industrial strength text editor), search for the coordinate text near the end of the file, maybe in (12345) parentheses.

then ~3rd line after text change "1 1 1 C" to another color (R G B, 0.0-1.0) or just remove that line??

I think I've tried it before and it didn't look very nice because the previously masked grid line continued through the text.

Thanks a lot Hamish. I think it would a good idea to have the
possibility to specify the background colour of the text as being a
specific colour or transparent.

As the absolute locations are not that important to me, I will leave
the numbers out completely.

Thanks a lot,

Rainer

Hamish

--
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Faculty of Science
Natural Sciences Building
Private Bag X1
University of Stellenbosch
Matieland 7602
South Africa