Repeating colormap in ps.map

I have an curious problem in ps.map. When I have the code print the color
table, it prints each category twice. What is curious about this is that it
didn't do this on a previous map. Comparing the colors, the first iteration
match up with the colors on the raster map, and the second set of printing do
not. Also, the second set do not include the no data and 0 category. Speaking
of the NULL and 0, is it possible for colortable to suppress printing them in
the postscript file?

Brian

"Joseph Brian Adams, PhD" wrote:

I have an curious problem in ps.map. When I have the code print the color
table, it prints each category twice. What is curious about this is that it
didn't do this on a previous map. Comparing the colors, the first iteration
match up with the colors on the raster map, and the second set of printing do
not. Also, the second set do not include the no data and 0 category.

Which version 4.x, 5.0b7, 5.0b8,.. of ps.map?
I can look at it if you send me sample of data,
script file, region and ps.device.

Speaking
of the NULL and 0, is it possible for colortable to suppress printing them in
the postscript file?

I added 'nodata [y|n]' option for colortable 5 weeks ago.
It should be in 5.0b8. See html man page.

Radim

I am using 5.0b7. I suspect that this has something to do with my raster map.
It contains several islands within one of the regions. Nevertheless, when I
imported it from vector to raster, I set those islands to the same category as
the surrounding region. d.legend indicates them correctly, though.

The following is the script file ...

raster LancStateHouse

vector LancasterCounty
  color black
  width 2
  end

vector PA-Townships
  color gray
  width 1
  end

maploc 0.0 0.875

scale 1 panel

setcolor 0 white
setcolor 1 magenta
setcolor 2 green
setcolor 3 brown
setcolor 4 red
setcolor 5 yellow
setcolor 6 blue
setcolor 7 aqua
setcolor 8 orange

colortable y
  where 0.75 7.875
  width 4
  cols 2
  font Helvetica
  fontsize 12
  color black
  end

vlegend
  where 4.5 8.25
  font Helvetica
  fontsize 12
  end

comments StateHouse.comments
  where 4.125 9.25
  font Helvetica
  fontsize 12
  color black
  end

header
  file StateHouse.header
  font Helvetica Bold
  fontsize 18
  color black
  end

end

Which version 4.x, 5.0b7, 5.0b8,.. of ps.map?
I can look at it if you send me sample of data,
script file, region and ps.device.

> Speaking
> of the NULL and 0, is it possible for colortable to suppress printing them in
> the postscript file?

I added 'nodata [y|n]' option for colortable 5 weeks ago.
It should be in 5.0b8. See html man page.

Radim

Thanks for all of your help. I think that it is my raster map that is the
problem. I created it from a vector map, and it had several islands that I set
to the same category as the surrounding area. When I run ps.map on with a
raster map that does not have the islands, it works great! I am going to
recreate the raster map without the islands and try again. Thanks again.

Brian

On Thu, 31 Aug 2000, you wrote:

> I am using 5.0b7. I suspect that this has something to do with my raster map.
> It contains several islands within one of the regions. Nevertheless, when I
> imported it from vector to raster, I set those islands to the same category as
> the surrounding region. d.legend indicates them correctly, though.
>

I tested similar script file on my data and it works OK. I can't test better
without sample of data.

In 5.0b7 is old version of ps.map. In 5.0b8 was replaced by ps.map.new
however no changes were done to colortable except mentioned 'nodata [y|n]' .

There are also new options for vectors: filled areas, label in legend, ...
See html man.

Radim

--