Psmap simple example: Difference between revisions

From GRASS-Wiki
Jump to navigation Jump to search
No edit summary
 
(add another example)
Line 1: Line 1:
Back to [[Ps.map_scripts|ps.map sample script]] page.
* Back to [[Ps.map_scripts|ps.map sample script]] page.
 
* See the [http://grass.osgeo.org/grass64/manuals/html64_user/ps.map.html ''ps.map'' help page] for explanations of each map instruction.
 
===== Very simple example =====
 
This example plots a raster map with title and legend.
 
# Spearfish dataset
raster elevation.10m
header
  end
colortable
  where 0.75 1.5
  end
end
 
 
===== Simple example =====


<pre>
<pre>

Revision as of 08:34, 3 July 2008

Very simple example

This example plots a raster map with title and legend.

# Spearfish dataset
raster elevation.10m
header
  end
colortable
  where 0.75 1.5
  end
end


Simple example
# Simple ps.map example using the Spearfish dataset
g.region rast=elevation.10m

ps.map output=spearfish.ps << EOF
paper us-letter
  end
scale 1:120000
raster elevation.10m
colortable
  where 2 6.75
  end
text 50% -7% Spearfish County, ND (Mount Rushmore)
  fontsize 16
  end
mapinfo
  where 4.5 7.25
  end
vlines roads
  where label ~ 'highway' OR label = 'interstate'
  color grey
  end
vpoints archsites
  symbol basic/triangle
  end
end
EOF