<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://grasswiki.osgeo.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=%E2%9A%A0%EF%B8%8FEjtizado</id>
	<title>GRASS-Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://grasswiki.osgeo.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=%E2%9A%A0%EF%B8%8FEjtizado"/>
	<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/wiki/Special:Contributions/%E2%9A%A0%EF%B8%8FEjtizado"/>
	<updated>2026-05-26T00:28:00Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12934</id>
		<title>Ps.output</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12934"/>
		<updated>2011-03-21T19:21:15Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: /* raster */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ps.out''' try to update the standard postscript output of Grass adding new features to design borders, graticules, categorized legends, etc&lt;br /&gt;
&lt;br /&gt;
'''This is in progress and not all features are yet uploaded in ''addons''. '''&lt;br /&gt;
&lt;br /&gt;
== Command line flags ==&lt;br /&gt;
&lt;br /&gt;
'''-d ''': Draw a 1x1 cm grid on paper to help the placement of the elements of the map.&lt;br /&gt;
&lt;br /&gt;
'''-e''': Create an output file for embedding into another ''ps.out'' map&lt;br /&gt;
&lt;br /&gt;
'''-g''': Use the extended PostScript of Ghostscript (for transparent colors only)&lt;br /&gt;
&lt;br /&gt;
'''-s''': Draw the small digit in the coordinate numbers to lower instead upper position.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;100px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_grid.png|A4 paper with flag -d &lt;br /&gt;
File:ps_out_digit_upper.png|coordinate&lt;br /&gt;
File:ps_out_digit_lower.png|coordinate with flag -s&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generic Instructions ==&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== dimen ====&lt;br /&gt;
&lt;br /&gt;
Define a dimension. Accepted units are:&lt;br /&gt;
&lt;br /&gt;
*; ''unitless'' : e.g. 123. The dimension is the ''number'' by 1/72&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
*; inch : e.g. 1.2inch. &lt;br /&gt;
&lt;br /&gt;
*; milimeters : e.g. 2.3mm.&lt;br /&gt;
&lt;br /&gt;
*; centimeters : e.g. 1.4cm.&lt;br /&gt;
&lt;br /&gt;
*; percentage : e.g. 50%.&amp;lt;br&amp;gt;The position is relative to the size and position of the map in the paper being ''0%'' the left or bottom corner.&lt;br /&gt;
&lt;br /&gt;
==== color ====&lt;br /&gt;
&lt;br /&gt;
Define a color. Accepted formats are:&lt;br /&gt;
&lt;br /&gt;
*; standard GRASS name : e.g. indigo.&lt;br /&gt;
&lt;br /&gt;
*; R&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;G&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;B : e.g. 200:123:90&lt;br /&gt;
&lt;br /&gt;
*; user name : e.g. red5.&amp;lt;br&amp;gt;Defined in ''palette'' block&lt;br /&gt;
&lt;br /&gt;
All formats can add '$(0-1)' to define the opacity of the color (alpha channel); e.g., indigo$.75 or 200:120:120$.2&lt;br /&gt;
&lt;br /&gt;
==== number ====&lt;br /&gt;
&lt;br /&gt;
==== text ====&lt;br /&gt;
&lt;br /&gt;
=== Blocks of instructions ===&lt;br /&gt;
&lt;br /&gt;
A ''block'' begin with the keywords and finish with keyword ''end''&lt;br /&gt;
&lt;br /&gt;
==== font ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a font.&lt;br /&gt;
&lt;br /&gt;
; name (text) : Name of font.&lt;br /&gt;
&lt;br /&gt;
; size (dimen) : Size of font.&lt;br /&gt;
&lt;br /&gt;
; extend (dimen): Expand the width of font.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of font.&lt;br /&gt;
&lt;br /&gt;
; outline yes|no : Outline of the font.&lt;br /&gt;
&lt;br /&gt;
==== line ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a line.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of line.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of line.&lt;br /&gt;
&lt;br /&gt;
; style solid|dashed|dotted|dashdotted|(n1n2...) : Style of line.&lt;br /&gt;
&lt;br /&gt;
; cap butt|round|extended_butt : Cap&lt;br /&gt;
&lt;br /&gt;
; extended type step [voffset height width] : Extended style of line for use mainly with rects.&amp;lt;br&amp;gt; ''type'' = arrow, bar, circled_semi, double_bar, point, rombo, square, triangle, xcross, zigzag (you can use only the first char; and uppercase for filled version).&amp;lt;br&amp;gt;  ''step'' = (dimen).&amp;lt;br&amp;gt; ''voffset'' = (dimen).&amp;lt;br&amp;gt; ''height'' = (dimen).&amp;lt;br&amp;gt; ''width'' = (dimen).&lt;br /&gt;
&lt;br /&gt;
; baseline (y|n) : Work with the ''extended'' option to define if the baseline is drawn.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps.out_linex_A.png|extended arrow 1mm&lt;br /&gt;
File:ps.out_linex_B.png|extended bar 1mm&lt;br /&gt;
File:ps.out_linex_C.png|extended circled_semi 1mm&lt;br /&gt;
File:ps.out_linex_D.png|extended double_bar 1mm&lt;br /&gt;
File:ps.out_linex_P.png|extended point 1mm&lt;br /&gt;
File:ps.out_linex_R.png|extended rombo 1mm&lt;br /&gt;
File:ps.out_linex_S.png|extended square 1mm&lt;br /&gt;
File:ps.out_linex_X.png|extended xcros 1mm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== fill ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a fill area.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Fill color.&lt;br /&gt;
&lt;br /&gt;
; pat (file) : Fill pattern.&lt;br /&gt;
&lt;br /&gt;
; lwidth (dimen) : Line width of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; scale (number) : Scale of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; limit (dimen) : Limit the fill to the border with a width of ''dimen''.&lt;br /&gt;
&lt;br /&gt;
==== frame ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a frame.&lt;br /&gt;
&lt;br /&gt;
; where (dimen.1 dimen.2) : Position of frame.&lt;br /&gt;
&lt;br /&gt;
; offset (number.1 number.2) : Fine x and y adjust of the position of frame.&lt;br /&gt;
&lt;br /&gt;
; ref right|left|center upper|lower|center : Position is relative to the ''ref''.&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border line&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of the border line.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the frame.&lt;br /&gt;
&lt;br /&gt;
; rotate (dimen) : &amp;lt;u&amp;gt;todo&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== legend ====&lt;br /&gt;
&lt;br /&gt;
; lpos (number): Position in legend&amp;lt;br&amp;gt;Codes: -1, no show in legend; 0 automatic position; &amp;gt; 0 horizontal position.&lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]): Organize legend in ''number.1'' cols with a optional span of ''number.2''&lt;br /&gt;
&lt;br /&gt;
; interline (dimen): Set partial legend interline&lt;br /&gt;
&lt;br /&gt;
== Map paper ==&lt;br /&gt;
&lt;br /&gt;
=== paper ===&lt;br /&gt;
&lt;br /&gt;
Size of paper. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; paper [A0-6|B0-6|Legal|Ledger|Tabloid|Executive|Folio] : Type of paper (default A4).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; color (color) : Paper color.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Custom size of paper.&lt;br /&gt;
&lt;br /&gt;
; left (dimen), right (dimen), top (dimen), bottom (dimen) : Custom margins (default 0.5&amp;quot; left and right, and 1&amp;quot; top and bottom).&lt;br /&gt;
&lt;br /&gt;
; landscape yes|no : Paper orientation (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''. Set the default font of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''. Free draw as watermarks, before any feature of the map is drawn (see ''draw'').&lt;br /&gt;
&lt;br /&gt;
=== scale ===&lt;br /&gt;
&lt;br /&gt;
Scale of the map.&lt;br /&gt;
&lt;br /&gt;
Simple line command to define the scale of the map. The default is adjust map to the paper dimensions. If the remaining dimensions of the paper not permit the scale, ''ps.out'' adjust the scale to a new value that it fit in the paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scale 1&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;(number) : Scale of map.&amp;lt;br&amp;gt;For example, ''scale 1:500000'' to rescale maparea dimensions.&lt;br /&gt;
&lt;br /&gt;
=== maparea ===&lt;br /&gt;
Define specific dimensions of the map (default defined by command ''scale'')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; maparea : Define characteristics of the map area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border map.&amp;lt;br&amp;gt;Usefull with ''in'' and ''out'' formats of the ''grid'' and ''geogrid'', ignored in ''iho'' and ''can'' formats.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Border color-&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the map area.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Dimensions of the map.&lt;br /&gt;
&lt;br /&gt;
; top (dimen), bottom (dimen) : Position of the top-left corner of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''.&amp;lt;br&amp;gt;Draw onto the map but before the grid lines, vpoints and vlabels are drawn; i.e. this map elements are drawn over the draw elements.&lt;br /&gt;
&lt;br /&gt;
=== palette ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;testing&amp;lt;/U&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; palette&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; light (color text) :&lt;br /&gt;
&lt;br /&gt;
; dark (color text) :&lt;br /&gt;
&lt;br /&gt;
; wheel (number text) :&lt;br /&gt;
&lt;br /&gt;
; monochrome (color number text) :&lt;br /&gt;
&lt;br /&gt;
; complementary (color number text) :&lt;br /&gt;
&lt;br /&gt;
; analogous (color number text) :&lt;br /&gt;
&lt;br /&gt;
; gradient (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; binary (color name) :&lt;br /&gt;
&lt;br /&gt;
; sequential (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; qualitative (number text) :&lt;br /&gt;
&lt;br /&gt;
; diverging (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
== Common elements ==&lt;br /&gt;
&lt;br /&gt;
=== grid and geogrid ===&lt;br /&gt;
&lt;br /&gt;
Draw a border around the map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; grid|geogrid :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; format in|out|+out|can|iho : Type of border (see examples).&lt;br /&gt;
&lt;br /&gt;
; major (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; minor (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; subminor (number) : ''number'' of subdivisons of the minor divisions.&lt;br /&gt;
&lt;br /&gt;
; trim (number) : Cut trailing zeros.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Color of the border.&lt;br /&gt;
&lt;br /&gt;
; cross (number) : Replace lines by cross&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_iho.png|format iho&lt;br /&gt;
File:ps_out_can.png|format can&lt;br /&gt;
File:ps_out_in.png |format in&lt;br /&gt;
File:ps_out_out.png|format +out&lt;br /&gt;
File:ps_out_out1.png|typical map border&lt;br /&gt;
File:ps_out_out2.png|typical map border with ''subminor 5'' and ''fcolor blue''&lt;br /&gt;
File:ps_out_out3.png|''cross 500'', ''fcolor indigo'', ''color 200:200:200'' in '''maparea'''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== scalebar ===&lt;br /&gt;
&lt;br /&gt;
Set a scalebar on the map.&amp;lt;br&amp;gt;Maximun 5 scalebars in each map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scalebar I|l|s|S|f|F : Define the type of scalebar (I: inner, l: line, s/S: simple, f/F: fill).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; length (number) : Length of the scale.&lt;br /&gt;
&lt;br /&gt;
; units meters|m|kilometers|km|feet|ft|miles|mil|nautical_miles|nm ([text]) : Unit of the length and ''text' to label the units.&lt;br /&gt;
&lt;br /&gt;
; major (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; minor (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor.&lt;br /&gt;
&lt;br /&gt;
; height (dimen) : Height of the bar or ticks.&lt;br /&gt;
&lt;br /&gt;
; zero yes|no : Set position relative to zero value of the scalebar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Scalerbar styles&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;50px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_scalebar_s.png|scalebar s&lt;br /&gt;
File:ps_out_scalebar_S.png|scalebar S&lt;br /&gt;
File:ps_out_scalebar_I.png|scalebar I (uppercase i)&lt;br /&gt;
File:ps_out_scalebar_f.png|scalebar f&lt;br /&gt;
File:ps_out_scalebar_F.png|scalebar F&lt;br /&gt;
File:Ps.out_scalebar_l.png|scalebar l (downcase L)&lt;br /&gt;
File:ps_out_scalebar_3.png|Multiple scalebars zero centered with ''zero yes''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== note ===&lt;br /&gt;
Write special text or free text on any place of the paper with frame (also ''draw'' permit write free-text in paper). &lt;br /&gt;
&lt;br /&gt;
Maximun 20 notes by map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; note &amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;file|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;maplimits|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;dimen|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;scale (text)|(text) : Type of note and text to show.&amp;lt;br&amp;gt;When free text, use '|' to break lines and '.' as first character to center line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; text (text) : Another roption to enter the same as inline note text;&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of note.&lt;br /&gt;
&lt;br /&gt;
; angle (number) : ''number'' of degrees to rotate (do not work fine).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Note keywords and free text&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_note_ml.png  |note :maplimits&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_dimen.png|note :dimen&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scale.png|note :scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_free.png|note free text|in multiple lines&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_freec.png|note .free text|.in multiple [...]&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scaler.png|note :scale scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br&amp;gt;&amp;amp;nbsp;angle 90&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== draw ===&lt;br /&gt;
&lt;br /&gt;
Simple script language to draw predefined postscript code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; draw [none|paper|maparea|free] :  &lt;br /&gt;
''paper'': before any map feature is drawn (equivalent to place inside ''paper'' block); &amp;lt;br&amp;gt;&lt;br /&gt;
''maparea'' before the last elements of the map (equivalent to place inside ''mapare'' block) ; &amp;lt;br&amp;gt;&lt;br /&gt;
''none'': draw over all elements of the map but only in the map area; and &amp;lt;br&amp;gt;&lt;br /&gt;
''free'': after all map features are drawn in any place of the paper; and ''none''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; --- : &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_north1.png   |&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;north 700000 4700000&amp;lt;/source&amp;gt;&lt;br /&gt;
File:ps_out_north2.png   |north 5cm 16.5cm -&lt;br /&gt;
File:ps_out_maplimits.png|maplimits&lt;br /&gt;
File:ps_out_compass.png  |compass 700000 4700000 10000 10.2345&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Raster maps ==&lt;br /&gt;
&lt;br /&gt;
=== raster ===&lt;br /&gt;
&lt;br /&gt;
Draw one or two raster maps on the maparea. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; raster (raster|raster.1 raster.2|raster.R raster.G raster.B|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;group) : The ''raster'' value is the raster mapname, two raster maps ''raster.1'' or color and ''raster.2'' or shade to draw as relief map, three maps ''raster.R'', ''raster.G'' and ''raster.B'' to draw as RGB, or a groupname (leader by ':') with tree RGB maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; hillshade yes|no : Use when draw a shaded raster to draw hillshade.&amp;lt;br&amp;gt;See http://grass.osgeo.org/wiki/Ps.out_Making_maps#The_second_output&lt;br /&gt;
&lt;br /&gt;
; grey yes|no : Store and draw the rasters in grey scale (small size of file).&amp;lt;br&amp;gt;The conversion follows the NTSC video standard.&lt;br /&gt;
&lt;br /&gt;
; maskcell (raster.1 [raster.2]) : Set the ''raster.1'' map to use as mask (independent of the mask set in GRASS with [[r.mask]]) and, optionally, the ''raster.2'' map uses as background.&amp;lt;br&amp;gt;The background ''raster.2'' is painted in grey scale (NTSC) and tinted with ''maskcolor''.&lt;br /&gt;
&lt;br /&gt;
; maskcolor (color|none) : Set the ''color'' of the mask area.&amp;lt;br&amp;gt;If a raster map as background is set then it's drawn with a scale white-maskcolor.&lt;br /&gt;
&lt;br /&gt;
; outline : Block ''line''. Outline of categories.&lt;br /&gt;
&lt;br /&gt;
; setcolor null|default|(number) (color) : Replace the color of the cat ''number'' area with a new color.&amp;lt;br&amp;gt;Multiple ''setcolor'' are possibles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_raster1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_outline.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;outline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width .2mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;end&amp;lt;br/&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_setcolor.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor white&amp;lt;br&amp;gt;&amp;amp;nbsp;setcolor 37 magenta&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_grey.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;grey yes&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Vector maps ==&lt;br /&gt;
&lt;br /&gt;
All vector map accept optionally the following commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; layer (number) : Layer number used with cats/where option.&lt;br /&gt;
&lt;br /&gt;
; cats (n1,n2,...) : List of ''cat''s to show.&lt;br /&gt;
&lt;br /&gt;
; where (text) : Argument of the SQL where clausule to filter the areas to show.&lt;br /&gt;
&lt;br /&gt;
; masked yes|no : Masked or not by raster mask (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; label (text) : For description or title in ''vlegend''.&lt;br /&gt;
&lt;br /&gt;
; legend [(number)]: Position in legend (-1, no legend) or enter in a block ''legend''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vareas ===&lt;br /&gt;
&lt;br /&gt;
Draw areas on the map.&amp;lt;br&amp;gt;&lt;br /&gt;
The areas always are drawn first, on the bottom of other type of maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vareas (vector) : ''vector'' is a vector of areas, except when ''lwidth'' is different to zero that ''vector'' is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type area|line : Default ''area''.&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Style of the boundary.&lt;br /&gt;
&lt;br /&gt;
; fill : Block ''fill''. Style of the area.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic fill color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Text label when default conditions.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color][|dimen] text) : Make a item of a sublegend with label the ''text'' and title the text of the ''label''.&amp;lt;br&amp;gt;The fillcolor of the areas is set to ''color'' and the line width is set to ''dimen'' when ''column.2'' &amp;gt;= n1 and ''column.2'' &amp;lt; n2  (''column.2'' from ''rgbcol'').&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; island yes|no : Draw island as normal areas (fill as normal area then hide it).&lt;br /&gt;
&lt;br /&gt;
; mirror (dimen [number]) : The line is drawn as an area with a copy of the line placed with polar coordinates: ''dimen' and ''angle''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vareas: sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vareas0.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;color indigo&lt;br /&gt;
File:ps_out_vareas4.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;color indigo&amp;lt;br&amp;gt;&amp;amp;nbsp;limit 3mm&lt;br /&gt;
File:ps_out_vareas3.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;pat patterns/diag_up.eps&lt;br /&gt;
File:ps_out_vareas1.png|rgbcol - cat&amp;lt;br&amp;gt;setrule 0-500:red A&amp;lt;br/&amp;gt;setrule 500-1000:green B&amp;lt;br/&amp;gt;setrule 1000-5000:blue C&lt;br /&gt;
File:ps_out_vareas2.png|island no&lt;br /&gt;
File:ps_out_vareas5.png|vareas roadsmajor&amp;lt;br&amp;gt;&amp;amp;nbsp;cat 24,28,32,38,53&amp;lt;br&amp;gt;&amp;amp;nbsp;mirror 5 90&amp;lt;br&amp;gt;[and fill with pat cruz.eps]&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlines ===&lt;br /&gt;
&lt;br /&gt;
Draw lines on the map.&amp;lt;br&amp;gt;The areas always are drawn second, after ''vareas'' and before ''vpoints''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlines (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of lines, except if ''type'' is boundary that ''vector'' is a vector of areas.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Optional commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type line|boundary : Draw boundaries of a vector of areas or lines of a vector of lines (default ''line'').&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Normal line.&lt;br /&gt;
&lt;br /&gt;
; hline : Block ''line''. Highlight line.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Works with ''hline'' to offset from the center of ''line''.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic line color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Label in legend when default values and ''setcolor'' rules.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with ''text'' as label and title the text of the ''label''. Also, the color of the normal line with column &amp;gt;= n1 and column &amp;lt; n2 (column from rgbcol), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlines: sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlines0.png|hline&lt;br /&gt;
File:ps_out_vlines1.png|line 0.05mm&amp;lt;br&amp;gt;setrule 100:brown|.25mm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vpoints ===&lt;br /&gt;
&lt;br /&gt;
Draw points on the map.&amp;lt;br&amp;gt;The points always are drawn last, after ''vareas'' and ''vlines''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vpoints (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of points, except when '''type''' is ''centroid'' or ''boundary'' that it is a vector of areas, or when '''type''' is ''line'' that it is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; type centroid|line|boundary|point : Type of draw (default ''point'').&lt;br /&gt;
&lt;br /&gt;
; symbol (epsfile) : Symbol to use (default: basic/circle).&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Type of line in the symbol.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color): Static fillcolor of the symbol.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Offset of the symbol.&lt;br /&gt;
&lt;br /&gt;
; rotate (number|column) : Angle to rotate the symbol, static ''number'' or dynamic in a ''column'' of the database.&lt;br /&gt;
&lt;br /&gt;
; size (number|column [number]) : Size of the symbol take from ''number'' or from a ''column'' of the database. In the last option, there is a optional ''number'' to define the static size of the symbol in the legend when the size of symbols are dynamic. &lt;br /&gt;
&lt;br /&gt;
; scale (dimen.1 [dimen.2]) : Rescale the size of the symbol by the ''dimen.1'' and, optionally, add a ''dimen.2''. i.e., ''resize = dimen.1 * size + dimen.2''.&lt;br /&gt;
&lt;br /&gt;
; setsize (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;size] text) : Variable size of symbols from data in ''column'' of database set in ''size''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands when type is line&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; dist (dimen) : Define the distance in paper between symbol over the line.&lt;br /&gt;
&lt;br /&gt;
; cline : Block ''line''. Type of line that connect symbols.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vpoints: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vpoints0.png|''Points with same size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size 5&lt;br /&gt;
File:ps_out_vpoints1.png|''Points with dynamic size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT 5&amp;lt;br&amp;gt;&amp;amp;nbsp;scale 0.01 2&lt;br /&gt;
File:ps_out_vpoints2.png|''Points with conditional size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 200-1000:3 &amp;lt; 1000&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 1000-2500:9 &amp;gt; 1000&lt;br /&gt;
File:ps_out_vpoints3.png|''Points on line ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;type line&amp;lt;br&amp;gt;&amp;amp;nbsp;dist 1cm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlabels ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;in progress&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlabels none|(vector) :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; font :&lt;br /&gt;
&lt;br /&gt;
; labelcol (column) :&lt;br /&gt;
&lt;br /&gt;
; decimals (number) :&lt;br /&gt;
&lt;br /&gt;
; circled yes|no :&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2 text)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlabels0.png|vpoints firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;[...]&amp;lt;br/n&amp;gt;end&amp;lt;br/&amp;gt;vlabels firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;labelcol PUMPERS&amp;lt;br/n&amp;gt;&amp;amp;nbsp;font&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;name Univers-Bold&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;size 10&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color yellow&amp;lt;br/n&amp;gt;&amp;amp;nbsp;end&amp;lt;br/n&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Legend of the maps ==&lt;br /&gt;
&lt;br /&gt;
=== rlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the raster map.&amp;lt;br&amp;gt;The units ''meters'' in the gradient legend is set with {{cmd|r.support}}.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; rlegend [text] : Text is the title of the legend. &lt;br /&gt;
&lt;br /&gt;
; raster (raster) : the ''raster'' map to take the data of legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commads are optionals&amp;lt;/U&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; titlefont : Block ''font'' for the legend header.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font'' for the normal text.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Width of the symbol area.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For category legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; cols (number) [(number)] : Number of columns with symbols and separation between columns (default ''1'').&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Vertical space between symbols (o to join symbols)&lt;br /&gt;
&lt;br /&gt;
; nodata yes|no : Remove category ''no data''.&lt;br /&gt;
&lt;br /&gt;
; order (n1,n2,...) : To reorder the items.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For gradient legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; height (dimen), width (dimen) : Dimension of the frame with the legend.&lt;br /&gt;
&lt;br /&gt;
; vertical yes|no : Orientation of the gradient legend (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; range (n1 n2) : Manual set of the data range for legend.&lt;br /&gt;
&lt;br /&gt;
; gradient yes|no : Forze draw gradient legend with category data.&lt;br /&gt;
&lt;br /&gt;
; tick (dimen) : Length of the ticks.&lt;br /&gt;
&lt;br /&gt;
; whiteframe (dimen) : Width of the white frame around the bar color.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;250px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_rlegend.png|rlegend Zip Codes (wake)&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster zipcodes_wake&amp;lt;br/&amp;gt;&amp;amp;nbsp;cols 2 0&amp;lt;br/&amp;gt;&amp;amp;nbsp;swidth 8mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;order 20,10,30,22,34&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend1.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;height 8cm&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend2.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;width 8cm&amp;lt;br/&amp;gt;&amp;amp;nbsp;vertical no&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the vector maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlegend [text] : Optional the title or head of the legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; title : Block ''font'' for title of legend.&lt;br /&gt;
&lt;br /&gt;
; font : Block font for normal text of legend.&lt;br /&gt;
&lt;br /&gt;
; frame : &lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]) : Distribution of the items in ''number.1'' cols. Optionaly, ''number.2'' of span between columns.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Symbol width.&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Space between lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlegend: sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_output_vlegend0.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conversion to PDF ==&lt;br /&gt;
&lt;br /&gt;
You can obtain good results with these settings:&lt;br /&gt;
  ps2pdf14 -dPDFSETTINGS=/prepress -dEmbedAllFonts=true map.ps map.pdf&lt;br /&gt;
&lt;br /&gt;
== Example for ps.output control script ==&lt;br /&gt;
&lt;br /&gt;
This is the content of a ps.output control file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
paper A4&lt;br /&gt;
 landscape y&lt;br /&gt;
end&lt;br /&gt;
maparea&lt;br /&gt;
 height 12cm&lt;br /&gt;
 border .8mm&lt;br /&gt;
 color grey&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
grid&lt;br /&gt;
 major 100000&lt;br /&gt;
  width .1mm&lt;br /&gt;
  color white&lt;br /&gt;
 end&lt;br /&gt;
 minor 50000&lt;br /&gt;
  width .1mm&lt;br /&gt;
  color white&lt;br /&gt;
  style 1&lt;br /&gt;
 end&lt;br /&gt;
 font&lt;br /&gt;
  name Univers&lt;br /&gt;
  size 6&lt;br /&gt;
  extend 1.2&lt;br /&gt;
  color black&lt;br /&gt;
 end&lt;br /&gt;
 fcolor black&lt;br /&gt;
 format +out&lt;br /&gt;
 trim 3&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
raster ortho.r ortho.g ortho.b&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: ps.map]]&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12933</id>
		<title>Ps.output</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12933"/>
		<updated>2011-03-21T19:18:49Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: /* raster */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ps.out''' try to update the standard postscript output of Grass adding new features to design borders, graticules, categorized legends, etc&lt;br /&gt;
&lt;br /&gt;
'''This is in progress and not all features are yet uploaded in ''addons''. '''&lt;br /&gt;
&lt;br /&gt;
== Command line flags ==&lt;br /&gt;
&lt;br /&gt;
'''-d ''': Draw a 1x1 cm grid on paper to help the placement of the elements of the map.&lt;br /&gt;
&lt;br /&gt;
'''-e''': Create an output file for embedding into another ''ps.out'' map&lt;br /&gt;
&lt;br /&gt;
'''-g''': Use the extended PostScript of Ghostscript (for transparent colors only)&lt;br /&gt;
&lt;br /&gt;
'''-s''': Draw the small digit in the coordinate numbers to lower instead upper position.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;100px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_grid.png|A4 paper with flag -d &lt;br /&gt;
File:ps_out_digit_upper.png|coordinate&lt;br /&gt;
File:ps_out_digit_lower.png|coordinate with flag -s&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generic Instructions ==&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== dimen ====&lt;br /&gt;
&lt;br /&gt;
Define a dimension. Accepted units are:&lt;br /&gt;
&lt;br /&gt;
*; ''unitless'' : e.g. 123. The dimension is the ''number'' by 1/72&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
*; inch : e.g. 1.2inch. &lt;br /&gt;
&lt;br /&gt;
*; milimeters : e.g. 2.3mm.&lt;br /&gt;
&lt;br /&gt;
*; centimeters : e.g. 1.4cm.&lt;br /&gt;
&lt;br /&gt;
*; percentage : e.g. 50%.&amp;lt;br&amp;gt;The position is relative to the size and position of the map in the paper being ''0%'' the left or bottom corner.&lt;br /&gt;
&lt;br /&gt;
==== color ====&lt;br /&gt;
&lt;br /&gt;
Define a color. Accepted formats are:&lt;br /&gt;
&lt;br /&gt;
*; standard GRASS name : e.g. indigo.&lt;br /&gt;
&lt;br /&gt;
*; R&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;G&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;B : e.g. 200:123:90&lt;br /&gt;
&lt;br /&gt;
*; user name : e.g. red5.&amp;lt;br&amp;gt;Defined in ''palette'' block&lt;br /&gt;
&lt;br /&gt;
All formats can add '$(0-1)' to define the opacity of the color (alpha channel); e.g., indigo$.75 or 200:120:120$.2&lt;br /&gt;
&lt;br /&gt;
==== number ====&lt;br /&gt;
&lt;br /&gt;
==== text ====&lt;br /&gt;
&lt;br /&gt;
=== Blocks of instructions ===&lt;br /&gt;
&lt;br /&gt;
A ''block'' begin with the keywords and finish with keyword ''end''&lt;br /&gt;
&lt;br /&gt;
==== font ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a font.&lt;br /&gt;
&lt;br /&gt;
; name (text) : Name of font.&lt;br /&gt;
&lt;br /&gt;
; size (dimen) : Size of font.&lt;br /&gt;
&lt;br /&gt;
; extend (dimen): Expand the width of font.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of font.&lt;br /&gt;
&lt;br /&gt;
; outline yes|no : Outline of the font.&lt;br /&gt;
&lt;br /&gt;
==== line ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a line.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of line.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of line.&lt;br /&gt;
&lt;br /&gt;
; style solid|dashed|dotted|dashdotted|(n1n2...) : Style of line.&lt;br /&gt;
&lt;br /&gt;
; cap butt|round|extended_butt : Cap&lt;br /&gt;
&lt;br /&gt;
; extended type step [voffset height width] : Extended style of line for use mainly with rects.&amp;lt;br&amp;gt; ''type'' = arrow, bar, circled_semi, double_bar, point, rombo, square, triangle, xcross, zigzag (you can use only the first char; and uppercase for filled version).&amp;lt;br&amp;gt;  ''step'' = (dimen).&amp;lt;br&amp;gt; ''voffset'' = (dimen).&amp;lt;br&amp;gt; ''height'' = (dimen).&amp;lt;br&amp;gt; ''width'' = (dimen).&lt;br /&gt;
&lt;br /&gt;
; baseline (y|n) : Work with the ''extended'' option to define if the baseline is drawn.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps.out_linex_A.png|extended arrow 1mm&lt;br /&gt;
File:ps.out_linex_B.png|extended bar 1mm&lt;br /&gt;
File:ps.out_linex_C.png|extended circled_semi 1mm&lt;br /&gt;
File:ps.out_linex_D.png|extended double_bar 1mm&lt;br /&gt;
File:ps.out_linex_P.png|extended point 1mm&lt;br /&gt;
File:ps.out_linex_R.png|extended rombo 1mm&lt;br /&gt;
File:ps.out_linex_S.png|extended square 1mm&lt;br /&gt;
File:ps.out_linex_X.png|extended xcros 1mm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== fill ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a fill area.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Fill color.&lt;br /&gt;
&lt;br /&gt;
; pat (file) : Fill pattern.&lt;br /&gt;
&lt;br /&gt;
; lwidth (dimen) : Line width of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; scale (number) : Scale of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; limit (dimen) : Limit the fill to the border with a width of ''dimen''.&lt;br /&gt;
&lt;br /&gt;
==== frame ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a frame.&lt;br /&gt;
&lt;br /&gt;
; where (dimen.1 dimen.2) : Position of frame.&lt;br /&gt;
&lt;br /&gt;
; offset (number.1 number.2) : Fine x and y adjust of the position of frame.&lt;br /&gt;
&lt;br /&gt;
; ref right|left|center upper|lower|center : Position is relative to the ''ref''.&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border line&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of the border line.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the frame.&lt;br /&gt;
&lt;br /&gt;
; rotate (dimen) : &amp;lt;u&amp;gt;todo&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== legend ====&lt;br /&gt;
&lt;br /&gt;
; lpos (number): Position in legend&amp;lt;br&amp;gt;Codes: -1, no show in legend; 0 automatic position; &amp;gt; 0 horizontal position.&lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]): Organize legend in ''number.1'' cols with a optional span of ''number.2''&lt;br /&gt;
&lt;br /&gt;
; interline (dimen): Set partial legend interline&lt;br /&gt;
&lt;br /&gt;
== Map paper ==&lt;br /&gt;
&lt;br /&gt;
=== paper ===&lt;br /&gt;
&lt;br /&gt;
Size of paper. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; paper [A0-6|B0-6|Legal|Ledger|Tabloid|Executive|Folio] : Type of paper (default A4).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; color (color) : Paper color.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Custom size of paper.&lt;br /&gt;
&lt;br /&gt;
; left (dimen), right (dimen), top (dimen), bottom (dimen) : Custom margins (default 0.5&amp;quot; left and right, and 1&amp;quot; top and bottom).&lt;br /&gt;
&lt;br /&gt;
; landscape yes|no : Paper orientation (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''. Set the default font of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''. Free draw as watermarks, before any feature of the map is drawn (see ''draw'').&lt;br /&gt;
&lt;br /&gt;
=== scale ===&lt;br /&gt;
&lt;br /&gt;
Scale of the map.&lt;br /&gt;
&lt;br /&gt;
Simple line command to define the scale of the map. The default is adjust map to the paper dimensions. If the remaining dimensions of the paper not permit the scale, ''ps.out'' adjust the scale to a new value that it fit in the paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scale 1&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;(number) : Scale of map.&amp;lt;br&amp;gt;For example, ''scale 1:500000'' to rescale maparea dimensions.&lt;br /&gt;
&lt;br /&gt;
=== maparea ===&lt;br /&gt;
Define specific dimensions of the map (default defined by command ''scale'')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; maparea : Define characteristics of the map area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border map.&amp;lt;br&amp;gt;Usefull with ''in'' and ''out'' formats of the ''grid'' and ''geogrid'', ignored in ''iho'' and ''can'' formats.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Border color-&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the map area.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Dimensions of the map.&lt;br /&gt;
&lt;br /&gt;
; top (dimen), bottom (dimen) : Position of the top-left corner of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''.&amp;lt;br&amp;gt;Draw onto the map but before the grid lines, vpoints and vlabels are drawn; i.e. this map elements are drawn over the draw elements.&lt;br /&gt;
&lt;br /&gt;
=== palette ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;testing&amp;lt;/U&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; palette&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; light (color text) :&lt;br /&gt;
&lt;br /&gt;
; dark (color text) :&lt;br /&gt;
&lt;br /&gt;
; wheel (number text) :&lt;br /&gt;
&lt;br /&gt;
; monochrome (color number text) :&lt;br /&gt;
&lt;br /&gt;
; complementary (color number text) :&lt;br /&gt;
&lt;br /&gt;
; analogous (color number text) :&lt;br /&gt;
&lt;br /&gt;
; gradient (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; binary (color name) :&lt;br /&gt;
&lt;br /&gt;
; sequential (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; qualitative (number text) :&lt;br /&gt;
&lt;br /&gt;
; diverging (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
== Common elements ==&lt;br /&gt;
&lt;br /&gt;
=== grid and geogrid ===&lt;br /&gt;
&lt;br /&gt;
Draw a border around the map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; grid|geogrid :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; format in|out|+out|can|iho : Type of border (see examples).&lt;br /&gt;
&lt;br /&gt;
; major (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; minor (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; subminor (number) : ''number'' of subdivisons of the minor divisions.&lt;br /&gt;
&lt;br /&gt;
; trim (number) : Cut trailing zeros.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Color of the border.&lt;br /&gt;
&lt;br /&gt;
; cross (number) : Replace lines by cross&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_iho.png|format iho&lt;br /&gt;
File:ps_out_can.png|format can&lt;br /&gt;
File:ps_out_in.png |format in&lt;br /&gt;
File:ps_out_out.png|format +out&lt;br /&gt;
File:ps_out_out1.png|typical map border&lt;br /&gt;
File:ps_out_out2.png|typical map border with ''subminor 5'' and ''fcolor blue''&lt;br /&gt;
File:ps_out_out3.png|''cross 500'', ''fcolor indigo'', ''color 200:200:200'' in '''maparea'''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== scalebar ===&lt;br /&gt;
&lt;br /&gt;
Set a scalebar on the map.&amp;lt;br&amp;gt;Maximun 5 scalebars in each map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scalebar I|l|s|S|f|F : Define the type of scalebar (I: inner, l: line, s/S: simple, f/F: fill).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; length (number) : Length of the scale.&lt;br /&gt;
&lt;br /&gt;
; units meters|m|kilometers|km|feet|ft|miles|mil|nautical_miles|nm ([text]) : Unit of the length and ''text' to label the units.&lt;br /&gt;
&lt;br /&gt;
; major (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; minor (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor.&lt;br /&gt;
&lt;br /&gt;
; height (dimen) : Height of the bar or ticks.&lt;br /&gt;
&lt;br /&gt;
; zero yes|no : Set position relative to zero value of the scalebar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Scalerbar styles&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;50px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_scalebar_s.png|scalebar s&lt;br /&gt;
File:ps_out_scalebar_S.png|scalebar S&lt;br /&gt;
File:ps_out_scalebar_I.png|scalebar I (uppercase i)&lt;br /&gt;
File:ps_out_scalebar_f.png|scalebar f&lt;br /&gt;
File:ps_out_scalebar_F.png|scalebar F&lt;br /&gt;
File:Ps.out_scalebar_l.png|scalebar l (downcase L)&lt;br /&gt;
File:ps_out_scalebar_3.png|Multiple scalebars zero centered with ''zero yes''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== note ===&lt;br /&gt;
Write special text or free text on any place of the paper with frame (also ''draw'' permit write free-text in paper). &lt;br /&gt;
&lt;br /&gt;
Maximun 20 notes by map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; note &amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;file|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;maplimits|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;dimen|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;scale (text)|(text) : Type of note and text to show.&amp;lt;br&amp;gt;When free text, use '|' to break lines and '.' as first character to center line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; text (text) : Another roption to enter the same as inline note text;&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of note.&lt;br /&gt;
&lt;br /&gt;
; angle (number) : ''number'' of degrees to rotate (do not work fine).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Note keywords and free text&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_note_ml.png  |note :maplimits&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_dimen.png|note :dimen&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scale.png|note :scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_free.png|note free text|in multiple lines&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_freec.png|note .free text|.in multiple [...]&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scaler.png|note :scale scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br&amp;gt;&amp;amp;nbsp;angle 90&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== draw ===&lt;br /&gt;
&lt;br /&gt;
Simple script language to draw predefined postscript code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; draw [none|paper|maparea|free] :  &lt;br /&gt;
''paper'': before any map feature is drawn (equivalent to place inside ''paper'' block); &amp;lt;br&amp;gt;&lt;br /&gt;
''maparea'' before the last elements of the map (equivalent to place inside ''mapare'' block) ; &amp;lt;br&amp;gt;&lt;br /&gt;
''none'': draw over all elements of the map but only in the map area; and &amp;lt;br&amp;gt;&lt;br /&gt;
''free'': after all map features are drawn in any place of the paper; and ''none''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; --- : &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_north1.png   |&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;north 700000 4700000&amp;lt;/source&amp;gt;&lt;br /&gt;
File:ps_out_north2.png   |north 5cm 16.5cm -&lt;br /&gt;
File:ps_out_maplimits.png|maplimits&lt;br /&gt;
File:ps_out_compass.png  |compass 700000 4700000 10000 10.2345&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Raster maps ==&lt;br /&gt;
&lt;br /&gt;
=== raster ===&lt;br /&gt;
&lt;br /&gt;
Draw one or two raster maps on the maparea. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; raster (raster|raster.1 raster.2|raster.R raster.G raster.B|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;group) : The ''raster'' value is the raster mapname, two raster maps ''raster.1'' or color and ''raster.2'' or shade to draw as relief map, three maps ''raster.R'', ''raster.G'' and ''raster.B'' to draw as RGB, or a groupname (leader by ':') with tree RGB maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; hillshade yes|no : Use when draw a shaded raster to draw hillshade.&lt;br /&gt;
&lt;br /&gt;
; grey yes|no : Store and draw the rasters in grey scale (small size of file).&amp;lt;br&amp;gt;The conversion follows the NTSC video standard.&lt;br /&gt;
&lt;br /&gt;
; maskcell (raster.1 [raster.2]) : Set the ''raster.1'' map to use as mask (independent of the mask set in GRASS with [[r.mask]]) and, optionally, the ''raster.2'' map uses as background.&amp;lt;br&amp;gt;The background ''raster.2'' is painted in grey scale (NTSC) and tinted with ''maskcolor''.&lt;br /&gt;
&lt;br /&gt;
; maskcolor (color|none) : Set the ''color'' of the mask area.&amp;lt;br&amp;gt;If a raster map as background is set then it's drawn with a scale white-maskcolor.&lt;br /&gt;
&lt;br /&gt;
; outline : Block ''line''. Outline of categories.&lt;br /&gt;
&lt;br /&gt;
; setcolor null|default|(number) (color) : Replace the color of the cat ''number'' area with a new color.&amp;lt;br&amp;gt;Multiple ''setcolor'' are possibles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_raster1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_outline.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;outline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width .2mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;end&amp;lt;br/&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_setcolor.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor white&amp;lt;br&amp;gt;&amp;amp;nbsp;setcolor 37 magenta&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_grey.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;grey yes&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Vector maps ==&lt;br /&gt;
&lt;br /&gt;
All vector map accept optionally the following commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; layer (number) : Layer number used with cats/where option.&lt;br /&gt;
&lt;br /&gt;
; cats (n1,n2,...) : List of ''cat''s to show.&lt;br /&gt;
&lt;br /&gt;
; where (text) : Argument of the SQL where clausule to filter the areas to show.&lt;br /&gt;
&lt;br /&gt;
; masked yes|no : Masked or not by raster mask (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; label (text) : For description or title in ''vlegend''.&lt;br /&gt;
&lt;br /&gt;
; legend [(number)]: Position in legend (-1, no legend) or enter in a block ''legend''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vareas ===&lt;br /&gt;
&lt;br /&gt;
Draw areas on the map.&amp;lt;br&amp;gt;&lt;br /&gt;
The areas always are drawn first, on the bottom of other type of maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vareas (vector) : ''vector'' is a vector of areas, except when ''lwidth'' is different to zero that ''vector'' is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type area|line : Default ''area''.&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Style of the boundary.&lt;br /&gt;
&lt;br /&gt;
; fill : Block ''fill''. Style of the area.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic fill color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Text label when default conditions.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color][|dimen] text) : Make a item of a sublegend with label the ''text'' and title the text of the ''label''.&amp;lt;br&amp;gt;The fillcolor of the areas is set to ''color'' and the line width is set to ''dimen'' when ''column.2'' &amp;gt;= n1 and ''column.2'' &amp;lt; n2  (''column.2'' from ''rgbcol'').&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; island yes|no : Draw island as normal areas (fill as normal area then hide it).&lt;br /&gt;
&lt;br /&gt;
; mirror (dimen [number]) : The line is drawn as an area with a copy of the line placed with polar coordinates: ''dimen' and ''angle''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vareas: sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vareas0.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;color indigo&lt;br /&gt;
File:ps_out_vareas4.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;color indigo&amp;lt;br&amp;gt;&amp;amp;nbsp;limit 3mm&lt;br /&gt;
File:ps_out_vareas3.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;pat patterns/diag_up.eps&lt;br /&gt;
File:ps_out_vareas1.png|rgbcol - cat&amp;lt;br&amp;gt;setrule 0-500:red A&amp;lt;br/&amp;gt;setrule 500-1000:green B&amp;lt;br/&amp;gt;setrule 1000-5000:blue C&lt;br /&gt;
File:ps_out_vareas2.png|island no&lt;br /&gt;
File:ps_out_vareas5.png|vareas roadsmajor&amp;lt;br&amp;gt;&amp;amp;nbsp;cat 24,28,32,38,53&amp;lt;br&amp;gt;&amp;amp;nbsp;mirror 5 90&amp;lt;br&amp;gt;[and fill with pat cruz.eps]&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlines ===&lt;br /&gt;
&lt;br /&gt;
Draw lines on the map.&amp;lt;br&amp;gt;The areas always are drawn second, after ''vareas'' and before ''vpoints''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlines (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of lines, except if ''type'' is boundary that ''vector'' is a vector of areas.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Optional commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type line|boundary : Draw boundaries of a vector of areas or lines of a vector of lines (default ''line'').&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Normal line.&lt;br /&gt;
&lt;br /&gt;
; hline : Block ''line''. Highlight line.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Works with ''hline'' to offset from the center of ''line''.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic line color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Label in legend when default values and ''setcolor'' rules.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with ''text'' as label and title the text of the ''label''. Also, the color of the normal line with column &amp;gt;= n1 and column &amp;lt; n2 (column from rgbcol), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlines: sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlines0.png|hline&lt;br /&gt;
File:ps_out_vlines1.png|line 0.05mm&amp;lt;br&amp;gt;setrule 100:brown|.25mm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vpoints ===&lt;br /&gt;
&lt;br /&gt;
Draw points on the map.&amp;lt;br&amp;gt;The points always are drawn last, after ''vareas'' and ''vlines''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vpoints (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of points, except when '''type''' is ''centroid'' or ''boundary'' that it is a vector of areas, or when '''type''' is ''line'' that it is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; type centroid|line|boundary|point : Type of draw (default ''point'').&lt;br /&gt;
&lt;br /&gt;
; symbol (epsfile) : Symbol to use (default: basic/circle).&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Type of line in the symbol.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color): Static fillcolor of the symbol.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Offset of the symbol.&lt;br /&gt;
&lt;br /&gt;
; rotate (number|column) : Angle to rotate the symbol, static ''number'' or dynamic in a ''column'' of the database.&lt;br /&gt;
&lt;br /&gt;
; size (number|column [number]) : Size of the symbol take from ''number'' or from a ''column'' of the database. In the last option, there is a optional ''number'' to define the static size of the symbol in the legend when the size of symbols are dynamic. &lt;br /&gt;
&lt;br /&gt;
; scale (dimen.1 [dimen.2]) : Rescale the size of the symbol by the ''dimen.1'' and, optionally, add a ''dimen.2''. i.e., ''resize = dimen.1 * size + dimen.2''.&lt;br /&gt;
&lt;br /&gt;
; setsize (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;size] text) : Variable size of symbols from data in ''column'' of database set in ''size''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands when type is line&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; dist (dimen) : Define the distance in paper between symbol over the line.&lt;br /&gt;
&lt;br /&gt;
; cline : Block ''line''. Type of line that connect symbols.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vpoints: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vpoints0.png|''Points with same size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size 5&lt;br /&gt;
File:ps_out_vpoints1.png|''Points with dynamic size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT 5&amp;lt;br&amp;gt;&amp;amp;nbsp;scale 0.01 2&lt;br /&gt;
File:ps_out_vpoints2.png|''Points with conditional size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 200-1000:3 &amp;lt; 1000&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 1000-2500:9 &amp;gt; 1000&lt;br /&gt;
File:ps_out_vpoints3.png|''Points on line ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;type line&amp;lt;br&amp;gt;&amp;amp;nbsp;dist 1cm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlabels ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;in progress&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlabels none|(vector) :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; font :&lt;br /&gt;
&lt;br /&gt;
; labelcol (column) :&lt;br /&gt;
&lt;br /&gt;
; decimals (number) :&lt;br /&gt;
&lt;br /&gt;
; circled yes|no :&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2 text)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlabels0.png|vpoints firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;[...]&amp;lt;br/n&amp;gt;end&amp;lt;br/&amp;gt;vlabels firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;labelcol PUMPERS&amp;lt;br/n&amp;gt;&amp;amp;nbsp;font&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;name Univers-Bold&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;size 10&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color yellow&amp;lt;br/n&amp;gt;&amp;amp;nbsp;end&amp;lt;br/n&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Legend of the maps ==&lt;br /&gt;
&lt;br /&gt;
=== rlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the raster map.&amp;lt;br&amp;gt;The units ''meters'' in the gradient legend is set with {{cmd|r.support}}.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; rlegend [text] : Text is the title of the legend. &lt;br /&gt;
&lt;br /&gt;
; raster (raster) : the ''raster'' map to take the data of legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commads are optionals&amp;lt;/U&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; titlefont : Block ''font'' for the legend header.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font'' for the normal text.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Width of the symbol area.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For category legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; cols (number) [(number)] : Number of columns with symbols and separation between columns (default ''1'').&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Vertical space between symbols (o to join symbols)&lt;br /&gt;
&lt;br /&gt;
; nodata yes|no : Remove category ''no data''.&lt;br /&gt;
&lt;br /&gt;
; order (n1,n2,...) : To reorder the items.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For gradient legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; height (dimen), width (dimen) : Dimension of the frame with the legend.&lt;br /&gt;
&lt;br /&gt;
; vertical yes|no : Orientation of the gradient legend (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; range (n1 n2) : Manual set of the data range for legend.&lt;br /&gt;
&lt;br /&gt;
; gradient yes|no : Forze draw gradient legend with category data.&lt;br /&gt;
&lt;br /&gt;
; tick (dimen) : Length of the ticks.&lt;br /&gt;
&lt;br /&gt;
; whiteframe (dimen) : Width of the white frame around the bar color.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;250px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_rlegend.png|rlegend Zip Codes (wake)&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster zipcodes_wake&amp;lt;br/&amp;gt;&amp;amp;nbsp;cols 2 0&amp;lt;br/&amp;gt;&amp;amp;nbsp;swidth 8mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;order 20,10,30,22,34&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend1.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;height 8cm&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend2.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;width 8cm&amp;lt;br/&amp;gt;&amp;amp;nbsp;vertical no&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the vector maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlegend [text] : Optional the title or head of the legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; title : Block ''font'' for title of legend.&lt;br /&gt;
&lt;br /&gt;
; font : Block font for normal text of legend.&lt;br /&gt;
&lt;br /&gt;
; frame : &lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]) : Distribution of the items in ''number.1'' cols. Optionaly, ''number.2'' of span between columns.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Symbol width.&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Space between lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlegend: sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_output_vlegend0.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conversion to PDF ==&lt;br /&gt;
&lt;br /&gt;
You can obtain good results with these settings:&lt;br /&gt;
  ps2pdf14 -dPDFSETTINGS=/prepress -dEmbedAllFonts=true map.ps map.pdf&lt;br /&gt;
&lt;br /&gt;
== Example for ps.output control script ==&lt;br /&gt;
&lt;br /&gt;
This is the content of a ps.output control file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
paper A4&lt;br /&gt;
 landscape y&lt;br /&gt;
end&lt;br /&gt;
maparea&lt;br /&gt;
 height 12cm&lt;br /&gt;
 border .8mm&lt;br /&gt;
 color grey&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
grid&lt;br /&gt;
 major 100000&lt;br /&gt;
  width .1mm&lt;br /&gt;
  color white&lt;br /&gt;
 end&lt;br /&gt;
 minor 50000&lt;br /&gt;
  width .1mm&lt;br /&gt;
  color white&lt;br /&gt;
  style 1&lt;br /&gt;
 end&lt;br /&gt;
 font&lt;br /&gt;
  name Univers&lt;br /&gt;
  size 6&lt;br /&gt;
  extend 1.2&lt;br /&gt;
  color black&lt;br /&gt;
 end&lt;br /&gt;
 fcolor black&lt;br /&gt;
 format +out&lt;br /&gt;
 trim 3&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
raster ortho.r ortho.g ortho.b&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: ps.map]]&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12932</id>
		<title>Ps.output</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12932"/>
		<updated>2011-03-21T19:06:06Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: /* scalebar */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ps.out''' try to update the standard postscript output of Grass adding new features to design borders, graticules, categorized legends, etc&lt;br /&gt;
&lt;br /&gt;
'''This is in progress and not all features are yet uploaded in ''addons''. '''&lt;br /&gt;
&lt;br /&gt;
== Command line flags ==&lt;br /&gt;
&lt;br /&gt;
'''-d ''': Draw a 1x1 cm grid on paper to help the placement of the elements of the map.&lt;br /&gt;
&lt;br /&gt;
'''-e''': Create an output file for embedding into another ''ps.out'' map&lt;br /&gt;
&lt;br /&gt;
'''-g''': Use the extended PostScript of Ghostscript (for transparent colors only)&lt;br /&gt;
&lt;br /&gt;
'''-s''': Draw the small digit in the coordinate numbers to lower instead upper position.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;100px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_grid.png|A4 paper with flag -d &lt;br /&gt;
File:ps_out_digit_upper.png|coordinate&lt;br /&gt;
File:ps_out_digit_lower.png|coordinate with flag -s&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generic Instructions ==&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== dimen ====&lt;br /&gt;
&lt;br /&gt;
Define a dimension. Accepted units are:&lt;br /&gt;
&lt;br /&gt;
*; ''unitless'' : e.g. 123. The dimension is the ''number'' by 1/72&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
*; inch : e.g. 1.2inch. &lt;br /&gt;
&lt;br /&gt;
*; milimeters : e.g. 2.3mm.&lt;br /&gt;
&lt;br /&gt;
*; centimeters : e.g. 1.4cm.&lt;br /&gt;
&lt;br /&gt;
*; percentage : e.g. 50%.&amp;lt;br&amp;gt;The position is relative to the size and position of the map in the paper being ''0%'' the left or bottom corner.&lt;br /&gt;
&lt;br /&gt;
==== color ====&lt;br /&gt;
&lt;br /&gt;
Define a color. Accepted formats are:&lt;br /&gt;
&lt;br /&gt;
*; standard GRASS name : e.g. indigo.&lt;br /&gt;
&lt;br /&gt;
*; R&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;G&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;B : e.g. 200:123:90&lt;br /&gt;
&lt;br /&gt;
*; user name : e.g. red5.&amp;lt;br&amp;gt;Defined in ''palette'' block&lt;br /&gt;
&lt;br /&gt;
All formats can add '$(0-1)' to define the opacity of the color (alpha channel); e.g., indigo$.75 or 200:120:120$.2&lt;br /&gt;
&lt;br /&gt;
==== number ====&lt;br /&gt;
&lt;br /&gt;
==== text ====&lt;br /&gt;
&lt;br /&gt;
=== Blocks of instructions ===&lt;br /&gt;
&lt;br /&gt;
A ''block'' begin with the keywords and finish with keyword ''end''&lt;br /&gt;
&lt;br /&gt;
==== font ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a font.&lt;br /&gt;
&lt;br /&gt;
; name (text) : Name of font.&lt;br /&gt;
&lt;br /&gt;
; size (dimen) : Size of font.&lt;br /&gt;
&lt;br /&gt;
; extend (dimen): Expand the width of font.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of font.&lt;br /&gt;
&lt;br /&gt;
; outline yes|no : Outline of the font.&lt;br /&gt;
&lt;br /&gt;
==== line ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a line.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of line.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of line.&lt;br /&gt;
&lt;br /&gt;
; style solid|dashed|dotted|dashdotted|(n1n2...) : Style of line.&lt;br /&gt;
&lt;br /&gt;
; cap butt|round|extended_butt : Cap&lt;br /&gt;
&lt;br /&gt;
; extended type step [voffset height width] : Extended style of line for use mainly with rects.&amp;lt;br&amp;gt; ''type'' = arrow, bar, circled_semi, double_bar, point, rombo, square, triangle, xcross, zigzag (you can use only the first char; and uppercase for filled version).&amp;lt;br&amp;gt;  ''step'' = (dimen).&amp;lt;br&amp;gt; ''voffset'' = (dimen).&amp;lt;br&amp;gt; ''height'' = (dimen).&amp;lt;br&amp;gt; ''width'' = (dimen).&lt;br /&gt;
&lt;br /&gt;
; baseline (y|n) : Work with the ''extended'' option to define if the baseline is drawn.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps.out_linex_A.png|extended arrow 1mm&lt;br /&gt;
File:ps.out_linex_B.png|extended bar 1mm&lt;br /&gt;
File:ps.out_linex_C.png|extended circled_semi 1mm&lt;br /&gt;
File:ps.out_linex_D.png|extended double_bar 1mm&lt;br /&gt;
File:ps.out_linex_P.png|extended point 1mm&lt;br /&gt;
File:ps.out_linex_R.png|extended rombo 1mm&lt;br /&gt;
File:ps.out_linex_S.png|extended square 1mm&lt;br /&gt;
File:ps.out_linex_X.png|extended xcros 1mm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== fill ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a fill area.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Fill color.&lt;br /&gt;
&lt;br /&gt;
; pat (file) : Fill pattern.&lt;br /&gt;
&lt;br /&gt;
; lwidth (dimen) : Line width of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; scale (number) : Scale of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; limit (dimen) : Limit the fill to the border with a width of ''dimen''.&lt;br /&gt;
&lt;br /&gt;
==== frame ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a frame.&lt;br /&gt;
&lt;br /&gt;
; where (dimen.1 dimen.2) : Position of frame.&lt;br /&gt;
&lt;br /&gt;
; offset (number.1 number.2) : Fine x and y adjust of the position of frame.&lt;br /&gt;
&lt;br /&gt;
; ref right|left|center upper|lower|center : Position is relative to the ''ref''.&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border line&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of the border line.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the frame.&lt;br /&gt;
&lt;br /&gt;
; rotate (dimen) : &amp;lt;u&amp;gt;todo&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== legend ====&lt;br /&gt;
&lt;br /&gt;
; lpos (number): Position in legend&amp;lt;br&amp;gt;Codes: -1, no show in legend; 0 automatic position; &amp;gt; 0 horizontal position.&lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]): Organize legend in ''number.1'' cols with a optional span of ''number.2''&lt;br /&gt;
&lt;br /&gt;
; interline (dimen): Set partial legend interline&lt;br /&gt;
&lt;br /&gt;
== Map paper ==&lt;br /&gt;
&lt;br /&gt;
=== paper ===&lt;br /&gt;
&lt;br /&gt;
Size of paper. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; paper [A0-6|B0-6|Legal|Ledger|Tabloid|Executive|Folio] : Type of paper (default A4).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; color (color) : Paper color.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Custom size of paper.&lt;br /&gt;
&lt;br /&gt;
; left (dimen), right (dimen), top (dimen), bottom (dimen) : Custom margins (default 0.5&amp;quot; left and right, and 1&amp;quot; top and bottom).&lt;br /&gt;
&lt;br /&gt;
; landscape yes|no : Paper orientation (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''. Set the default font of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''. Free draw as watermarks, before any feature of the map is drawn (see ''draw'').&lt;br /&gt;
&lt;br /&gt;
=== scale ===&lt;br /&gt;
&lt;br /&gt;
Scale of the map.&lt;br /&gt;
&lt;br /&gt;
Simple line command to define the scale of the map. The default is adjust map to the paper dimensions. If the remaining dimensions of the paper not permit the scale, ''ps.out'' adjust the scale to a new value that it fit in the paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scale 1&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;(number) : Scale of map.&amp;lt;br&amp;gt;For example, ''scale 1:500000'' to rescale maparea dimensions.&lt;br /&gt;
&lt;br /&gt;
=== maparea ===&lt;br /&gt;
Define specific dimensions of the map (default defined by command ''scale'')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; maparea : Define characteristics of the map area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border map.&amp;lt;br&amp;gt;Usefull with ''in'' and ''out'' formats of the ''grid'' and ''geogrid'', ignored in ''iho'' and ''can'' formats.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Border color-&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the map area.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Dimensions of the map.&lt;br /&gt;
&lt;br /&gt;
; top (dimen), bottom (dimen) : Position of the top-left corner of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''.&amp;lt;br&amp;gt;Draw onto the map but before the grid lines, vpoints and vlabels are drawn; i.e. this map elements are drawn over the draw elements.&lt;br /&gt;
&lt;br /&gt;
=== palette ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;testing&amp;lt;/U&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; palette&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; light (color text) :&lt;br /&gt;
&lt;br /&gt;
; dark (color text) :&lt;br /&gt;
&lt;br /&gt;
; wheel (number text) :&lt;br /&gt;
&lt;br /&gt;
; monochrome (color number text) :&lt;br /&gt;
&lt;br /&gt;
; complementary (color number text) :&lt;br /&gt;
&lt;br /&gt;
; analogous (color number text) :&lt;br /&gt;
&lt;br /&gt;
; gradient (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; binary (color name) :&lt;br /&gt;
&lt;br /&gt;
; sequential (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; qualitative (number text) :&lt;br /&gt;
&lt;br /&gt;
; diverging (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
== Common elements ==&lt;br /&gt;
&lt;br /&gt;
=== grid and geogrid ===&lt;br /&gt;
&lt;br /&gt;
Draw a border around the map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; grid|geogrid :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; format in|out|+out|can|iho : Type of border (see examples).&lt;br /&gt;
&lt;br /&gt;
; major (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; minor (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; subminor (number) : ''number'' of subdivisons of the minor divisions.&lt;br /&gt;
&lt;br /&gt;
; trim (number) : Cut trailing zeros.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Color of the border.&lt;br /&gt;
&lt;br /&gt;
; cross (number) : Replace lines by cross&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_iho.png|format iho&lt;br /&gt;
File:ps_out_can.png|format can&lt;br /&gt;
File:ps_out_in.png |format in&lt;br /&gt;
File:ps_out_out.png|format +out&lt;br /&gt;
File:ps_out_out1.png|typical map border&lt;br /&gt;
File:ps_out_out2.png|typical map border with ''subminor 5'' and ''fcolor blue''&lt;br /&gt;
File:ps_out_out3.png|''cross 500'', ''fcolor indigo'', ''color 200:200:200'' in '''maparea'''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== scalebar ===&lt;br /&gt;
&lt;br /&gt;
Set a scalebar on the map.&amp;lt;br&amp;gt;Maximun 5 scalebars in each map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scalebar I|l|s|S|f|F : Define the type of scalebar (I: inner, l: line, s/S: simple, f/F: fill).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; length (number) : Length of the scale.&lt;br /&gt;
&lt;br /&gt;
; units meters|m|kilometers|km|feet|ft|miles|mil|nautical_miles|nm ([text]) : Unit of the length and ''text' to label the units.&lt;br /&gt;
&lt;br /&gt;
; major (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; minor (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor.&lt;br /&gt;
&lt;br /&gt;
; height (dimen) : Height of the bar or ticks.&lt;br /&gt;
&lt;br /&gt;
; zero yes|no : Set position relative to zero value of the scalebar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Scalerbar styles&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;50px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_scalebar_s.png|scalebar s&lt;br /&gt;
File:ps_out_scalebar_S.png|scalebar S&lt;br /&gt;
File:ps_out_scalebar_I.png|scalebar I (uppercase i)&lt;br /&gt;
File:ps_out_scalebar_f.png|scalebar f&lt;br /&gt;
File:ps_out_scalebar_F.png|scalebar F&lt;br /&gt;
File:Ps.out_scalebar_l.png|scalebar l (downcase L)&lt;br /&gt;
File:ps_out_scalebar_3.png|Multiple scalebars zero centered with ''zero yes''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== note ===&lt;br /&gt;
Write special text or free text on any place of the paper with frame (also ''draw'' permit write free-text in paper). &lt;br /&gt;
&lt;br /&gt;
Maximun 20 notes by map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; note &amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;file|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;maplimits|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;dimen|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;scale (text)|(text) : Type of note and text to show.&amp;lt;br&amp;gt;When free text, use '|' to break lines and '.' as first character to center line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; text (text) : Another roption to enter the same as inline note text;&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of note.&lt;br /&gt;
&lt;br /&gt;
; angle (number) : ''number'' of degrees to rotate (do not work fine).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Note keywords and free text&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_note_ml.png  |note :maplimits&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_dimen.png|note :dimen&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scale.png|note :scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_free.png|note free text|in multiple lines&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_freec.png|note .free text|.in multiple [...]&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scaler.png|note :scale scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br&amp;gt;&amp;amp;nbsp;angle 90&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== draw ===&lt;br /&gt;
&lt;br /&gt;
Simple script language to draw predefined postscript code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; draw [none|paper|maparea|free] :  &lt;br /&gt;
''paper'': before any map feature is drawn (equivalent to place inside ''paper'' block); &amp;lt;br&amp;gt;&lt;br /&gt;
''maparea'' before the last elements of the map (equivalent to place inside ''mapare'' block) ; &amp;lt;br&amp;gt;&lt;br /&gt;
''none'': draw over all elements of the map but only in the map area; and &amp;lt;br&amp;gt;&lt;br /&gt;
''free'': after all map features are drawn in any place of the paper; and ''none''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; --- : &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_north1.png   |&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;north 700000 4700000&amp;lt;/source&amp;gt;&lt;br /&gt;
File:ps_out_north2.png   |north 5cm 16.5cm -&lt;br /&gt;
File:ps_out_maplimits.png|maplimits&lt;br /&gt;
File:ps_out_compass.png  |compass 700000 4700000 10000 10.2345&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Raster maps ==&lt;br /&gt;
&lt;br /&gt;
=== raster ===&lt;br /&gt;
&lt;br /&gt;
Draw one or two raster maps on the maparea. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; raster (raster|raster.1 raster.2|raster.R raster.G raster.B|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;group) : The ''raster'' value is the raster mapname, two raster maps ''raster.1'' or color and ''raster.2'' or shade to draw as relief map, three maps ''raster.R'', ''raster.G'' and ''raster.B'' to draw as RGB, or a groupname (leader by ':') with tree RGB maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; grey yes|no : Store and draw the rasters in grey scale (small size of file).&amp;lt;br&amp;gt;The conversion follows the NTSC video standard.&lt;br /&gt;
&lt;br /&gt;
; maskcell (raster.1 [raster.2]) : Set the ''raster.1'' map to use as mask (independent of the mask set in GRASS with [[r.mask]]) and, optionally, the ''raster.2'' map uses as background.&amp;lt;br&amp;gt;The background ''raster.2'' is painted in grey scale (NTSC) and tinted with ''maskcolor''.&lt;br /&gt;
&lt;br /&gt;
; maskcolor (color|none) : Set the ''color'' of the mask area.&amp;lt;br&amp;gt;If a raster map as background is set then it's drawn with a scale white-maskcolor.&lt;br /&gt;
&lt;br /&gt;
; outline : Block ''line''. Outline of categories.&lt;br /&gt;
&lt;br /&gt;
; setcolor null|default|(number) (color) : Replace the color of the cat ''number'' area with a new color.&amp;lt;br&amp;gt;Multiple ''setcolor'' are possibles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_raster1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_outline.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;outline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width .2mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;end&amp;lt;br/&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_setcolor.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor white&amp;lt;br&amp;gt;&amp;amp;nbsp;setcolor 37 magenta&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_grey.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;grey yes&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Vector maps ==&lt;br /&gt;
&lt;br /&gt;
All vector map accept optionally the following commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; layer (number) : Layer number used with cats/where option.&lt;br /&gt;
&lt;br /&gt;
; cats (n1,n2,...) : List of ''cat''s to show.&lt;br /&gt;
&lt;br /&gt;
; where (text) : Argument of the SQL where clausule to filter the areas to show.&lt;br /&gt;
&lt;br /&gt;
; masked yes|no : Masked or not by raster mask (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; label (text) : For description or title in ''vlegend''.&lt;br /&gt;
&lt;br /&gt;
; legend [(number)]: Position in legend (-1, no legend) or enter in a block ''legend''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vareas ===&lt;br /&gt;
&lt;br /&gt;
Draw areas on the map.&amp;lt;br&amp;gt;&lt;br /&gt;
The areas always are drawn first, on the bottom of other type of maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vareas (vector) : ''vector'' is a vector of areas, except when ''lwidth'' is different to zero that ''vector'' is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type area|line : Default ''area''.&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Style of the boundary.&lt;br /&gt;
&lt;br /&gt;
; fill : Block ''fill''. Style of the area.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic fill color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Text label when default conditions.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color][|dimen] text) : Make a item of a sublegend with label the ''text'' and title the text of the ''label''.&amp;lt;br&amp;gt;The fillcolor of the areas is set to ''color'' and the line width is set to ''dimen'' when ''column.2'' &amp;gt;= n1 and ''column.2'' &amp;lt; n2  (''column.2'' from ''rgbcol'').&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; island yes|no : Draw island as normal areas (fill as normal area then hide it).&lt;br /&gt;
&lt;br /&gt;
; mirror (dimen [number]) : The line is drawn as an area with a copy of the line placed with polar coordinates: ''dimen' and ''angle''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vareas: sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vareas0.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;color indigo&lt;br /&gt;
File:ps_out_vareas4.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;color indigo&amp;lt;br&amp;gt;&amp;amp;nbsp;limit 3mm&lt;br /&gt;
File:ps_out_vareas3.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;pat patterns/diag_up.eps&lt;br /&gt;
File:ps_out_vareas1.png|rgbcol - cat&amp;lt;br&amp;gt;setrule 0-500:red A&amp;lt;br/&amp;gt;setrule 500-1000:green B&amp;lt;br/&amp;gt;setrule 1000-5000:blue C&lt;br /&gt;
File:ps_out_vareas2.png|island no&lt;br /&gt;
File:ps_out_vareas5.png|vareas roadsmajor&amp;lt;br&amp;gt;&amp;amp;nbsp;cat 24,28,32,38,53&amp;lt;br&amp;gt;&amp;amp;nbsp;mirror 5 90&amp;lt;br&amp;gt;[and fill with pat cruz.eps]&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlines ===&lt;br /&gt;
&lt;br /&gt;
Draw lines on the map.&amp;lt;br&amp;gt;The areas always are drawn second, after ''vareas'' and before ''vpoints''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlines (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of lines, except if ''type'' is boundary that ''vector'' is a vector of areas.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Optional commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type line|boundary : Draw boundaries of a vector of areas or lines of a vector of lines (default ''line'').&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Normal line.&lt;br /&gt;
&lt;br /&gt;
; hline : Block ''line''. Highlight line.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Works with ''hline'' to offset from the center of ''line''.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic line color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Label in legend when default values and ''setcolor'' rules.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with ''text'' as label and title the text of the ''label''. Also, the color of the normal line with column &amp;gt;= n1 and column &amp;lt; n2 (column from rgbcol), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlines: sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlines0.png|hline&lt;br /&gt;
File:ps_out_vlines1.png|line 0.05mm&amp;lt;br&amp;gt;setrule 100:brown|.25mm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vpoints ===&lt;br /&gt;
&lt;br /&gt;
Draw points on the map.&amp;lt;br&amp;gt;The points always are drawn last, after ''vareas'' and ''vlines''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vpoints (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of points, except when '''type''' is ''centroid'' or ''boundary'' that it is a vector of areas, or when '''type''' is ''line'' that it is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; type centroid|line|boundary|point : Type of draw (default ''point'').&lt;br /&gt;
&lt;br /&gt;
; symbol (epsfile) : Symbol to use (default: basic/circle).&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Type of line in the symbol.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color): Static fillcolor of the symbol.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Offset of the symbol.&lt;br /&gt;
&lt;br /&gt;
; rotate (number|column) : Angle to rotate the symbol, static ''number'' or dynamic in a ''column'' of the database.&lt;br /&gt;
&lt;br /&gt;
; size (number|column [number]) : Size of the symbol take from ''number'' or from a ''column'' of the database. In the last option, there is a optional ''number'' to define the static size of the symbol in the legend when the size of symbols are dynamic. &lt;br /&gt;
&lt;br /&gt;
; scale (dimen.1 [dimen.2]) : Rescale the size of the symbol by the ''dimen.1'' and, optionally, add a ''dimen.2''. i.e., ''resize = dimen.1 * size + dimen.2''.&lt;br /&gt;
&lt;br /&gt;
; setsize (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;size] text) : Variable size of symbols from data in ''column'' of database set in ''size''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands when type is line&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; dist (dimen) : Define the distance in paper between symbol over the line.&lt;br /&gt;
&lt;br /&gt;
; cline : Block ''line''. Type of line that connect symbols.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vpoints: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vpoints0.png|''Points with same size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size 5&lt;br /&gt;
File:ps_out_vpoints1.png|''Points with dynamic size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT 5&amp;lt;br&amp;gt;&amp;amp;nbsp;scale 0.01 2&lt;br /&gt;
File:ps_out_vpoints2.png|''Points with conditional size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 200-1000:3 &amp;lt; 1000&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 1000-2500:9 &amp;gt; 1000&lt;br /&gt;
File:ps_out_vpoints3.png|''Points on line ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;type line&amp;lt;br&amp;gt;&amp;amp;nbsp;dist 1cm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlabels ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;in progress&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlabels none|(vector) :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; font :&lt;br /&gt;
&lt;br /&gt;
; labelcol (column) :&lt;br /&gt;
&lt;br /&gt;
; decimals (number) :&lt;br /&gt;
&lt;br /&gt;
; circled yes|no :&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2 text)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlabels0.png|vpoints firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;[...]&amp;lt;br/n&amp;gt;end&amp;lt;br/&amp;gt;vlabels firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;labelcol PUMPERS&amp;lt;br/n&amp;gt;&amp;amp;nbsp;font&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;name Univers-Bold&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;size 10&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color yellow&amp;lt;br/n&amp;gt;&amp;amp;nbsp;end&amp;lt;br/n&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Legend of the maps ==&lt;br /&gt;
&lt;br /&gt;
=== rlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the raster map.&amp;lt;br&amp;gt;The units ''meters'' in the gradient legend is set with {{cmd|r.support}}.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; rlegend [text] : Text is the title of the legend. &lt;br /&gt;
&lt;br /&gt;
; raster (raster) : the ''raster'' map to take the data of legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commads are optionals&amp;lt;/U&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; titlefont : Block ''font'' for the legend header.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font'' for the normal text.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Width of the symbol area.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For category legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; cols (number) [(number)] : Number of columns with symbols and separation between columns (default ''1'').&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Vertical space between symbols (o to join symbols)&lt;br /&gt;
&lt;br /&gt;
; nodata yes|no : Remove category ''no data''.&lt;br /&gt;
&lt;br /&gt;
; order (n1,n2,...) : To reorder the items.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For gradient legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; height (dimen), width (dimen) : Dimension of the frame with the legend.&lt;br /&gt;
&lt;br /&gt;
; vertical yes|no : Orientation of the gradient legend (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; range (n1 n2) : Manual set of the data range for legend.&lt;br /&gt;
&lt;br /&gt;
; gradient yes|no : Forze draw gradient legend with category data.&lt;br /&gt;
&lt;br /&gt;
; tick (dimen) : Length of the ticks.&lt;br /&gt;
&lt;br /&gt;
; whiteframe (dimen) : Width of the white frame around the bar color.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;250px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_rlegend.png|rlegend Zip Codes (wake)&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster zipcodes_wake&amp;lt;br/&amp;gt;&amp;amp;nbsp;cols 2 0&amp;lt;br/&amp;gt;&amp;amp;nbsp;swidth 8mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;order 20,10,30,22,34&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend1.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;height 8cm&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend2.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;width 8cm&amp;lt;br/&amp;gt;&amp;amp;nbsp;vertical no&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the vector maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlegend [text] : Optional the title or head of the legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; title : Block ''font'' for title of legend.&lt;br /&gt;
&lt;br /&gt;
; font : Block font for normal text of legend.&lt;br /&gt;
&lt;br /&gt;
; frame : &lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]) : Distribution of the items in ''number.1'' cols. Optionaly, ''number.2'' of span between columns.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Symbol width.&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Space between lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlegend: sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_output_vlegend0.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conversion to PDF ==&lt;br /&gt;
&lt;br /&gt;
You can obtain good results with these settings:&lt;br /&gt;
  ps2pdf14 -dPDFSETTINGS=/prepress -dEmbedAllFonts=true map.ps map.pdf&lt;br /&gt;
&lt;br /&gt;
== Example for ps.output control script ==&lt;br /&gt;
&lt;br /&gt;
This is the content of a ps.output control file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
paper A4&lt;br /&gt;
 landscape y&lt;br /&gt;
end&lt;br /&gt;
maparea&lt;br /&gt;
 height 12cm&lt;br /&gt;
 border .8mm&lt;br /&gt;
 color grey&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
grid&lt;br /&gt;
 major 100000&lt;br /&gt;
  width .1mm&lt;br /&gt;
  color white&lt;br /&gt;
 end&lt;br /&gt;
 minor 50000&lt;br /&gt;
  width .1mm&lt;br /&gt;
  color white&lt;br /&gt;
  style 1&lt;br /&gt;
 end&lt;br /&gt;
 font&lt;br /&gt;
  name Univers&lt;br /&gt;
  size 6&lt;br /&gt;
  extend 1.2&lt;br /&gt;
  color black&lt;br /&gt;
 end&lt;br /&gt;
 fcolor black&lt;br /&gt;
 format +out&lt;br /&gt;
 trim 3&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
raster ortho.r ortho.g ortho.b&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: ps.map]]&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=File:Ps.out_scalebar_l.png&amp;diff=12931</id>
		<title>File:Ps.out scalebar l.png</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=File:Ps.out_scalebar_l.png&amp;diff=12931"/>
		<updated>2011-03-21T19:04:28Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: uploaded a new version of &amp;amp;quot;File:Ps.out scalebar l.png&amp;amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12930</id>
		<title>Ps.output</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12930"/>
		<updated>2011-03-21T18:57:00Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: /* scalebar */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ps.out''' try to update the standard postscript output of Grass adding new features to design borders, graticules, categorized legends, etc&lt;br /&gt;
&lt;br /&gt;
'''This is in progress and not all features are yet uploaded in ''addons''. '''&lt;br /&gt;
&lt;br /&gt;
== Command line flags ==&lt;br /&gt;
&lt;br /&gt;
'''-d ''': Draw a 1x1 cm grid on paper to help the placement of the elements of the map.&lt;br /&gt;
&lt;br /&gt;
'''-e''': Create an output file for embedding into another ''ps.out'' map&lt;br /&gt;
&lt;br /&gt;
'''-g''': Use the extended PostScript of Ghostscript (for transparent colors only)&lt;br /&gt;
&lt;br /&gt;
'''-s''': Draw the small digit in the coordinate numbers to lower instead upper position.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;100px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_grid.png|A4 paper with flag -d &lt;br /&gt;
File:ps_out_digit_upper.png|coordinate&lt;br /&gt;
File:ps_out_digit_lower.png|coordinate with flag -s&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generic Instructions ==&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== dimen ====&lt;br /&gt;
&lt;br /&gt;
Define a dimension. Accepted units are:&lt;br /&gt;
&lt;br /&gt;
*; ''unitless'' : e.g. 123. The dimension is the ''number'' by 1/72&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
*; inch : e.g. 1.2inch. &lt;br /&gt;
&lt;br /&gt;
*; milimeters : e.g. 2.3mm.&lt;br /&gt;
&lt;br /&gt;
*; centimeters : e.g. 1.4cm.&lt;br /&gt;
&lt;br /&gt;
*; percentage : e.g. 50%.&amp;lt;br&amp;gt;The position is relative to the size and position of the map in the paper being ''0%'' the left or bottom corner.&lt;br /&gt;
&lt;br /&gt;
==== color ====&lt;br /&gt;
&lt;br /&gt;
Define a color. Accepted formats are:&lt;br /&gt;
&lt;br /&gt;
*; standard GRASS name : e.g. indigo.&lt;br /&gt;
&lt;br /&gt;
*; R&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;G&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;B : e.g. 200:123:90&lt;br /&gt;
&lt;br /&gt;
*; user name : e.g. red5.&amp;lt;br&amp;gt;Defined in ''palette'' block&lt;br /&gt;
&lt;br /&gt;
All formats can add '$(0-1)' to define the opacity of the color (alpha channel); e.g., indigo$.75 or 200:120:120$.2&lt;br /&gt;
&lt;br /&gt;
==== number ====&lt;br /&gt;
&lt;br /&gt;
==== text ====&lt;br /&gt;
&lt;br /&gt;
=== Blocks of instructions ===&lt;br /&gt;
&lt;br /&gt;
A ''block'' begin with the keywords and finish with keyword ''end''&lt;br /&gt;
&lt;br /&gt;
==== font ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a font.&lt;br /&gt;
&lt;br /&gt;
; name (text) : Name of font.&lt;br /&gt;
&lt;br /&gt;
; size (dimen) : Size of font.&lt;br /&gt;
&lt;br /&gt;
; extend (dimen): Expand the width of font.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of font.&lt;br /&gt;
&lt;br /&gt;
; outline yes|no : Outline of the font.&lt;br /&gt;
&lt;br /&gt;
==== line ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a line.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of line.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of line.&lt;br /&gt;
&lt;br /&gt;
; style solid|dashed|dotted|dashdotted|(n1n2...) : Style of line.&lt;br /&gt;
&lt;br /&gt;
; cap butt|round|extended_butt : Cap&lt;br /&gt;
&lt;br /&gt;
; extended type step [voffset height width] : Extended style of line for use mainly with rects.&amp;lt;br&amp;gt; ''type'' = arrow, bar, circled_semi, double_bar, point, rombo, square, triangle, xcross, zigzag (you can use only the first char; and uppercase for filled version).&amp;lt;br&amp;gt;  ''step'' = (dimen).&amp;lt;br&amp;gt; ''voffset'' = (dimen).&amp;lt;br&amp;gt; ''height'' = (dimen).&amp;lt;br&amp;gt; ''width'' = (dimen).&lt;br /&gt;
&lt;br /&gt;
; baseline (y|n) : Work with the ''extended'' option to define if the baseline is drawn.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps.out_linex_A.png|extended arrow 1mm&lt;br /&gt;
File:ps.out_linex_B.png|extended bar 1mm&lt;br /&gt;
File:ps.out_linex_C.png|extended circled_semi 1mm&lt;br /&gt;
File:ps.out_linex_D.png|extended double_bar 1mm&lt;br /&gt;
File:ps.out_linex_P.png|extended point 1mm&lt;br /&gt;
File:ps.out_linex_R.png|extended rombo 1mm&lt;br /&gt;
File:ps.out_linex_S.png|extended square 1mm&lt;br /&gt;
File:ps.out_linex_X.png|extended xcros 1mm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== fill ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a fill area.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Fill color.&lt;br /&gt;
&lt;br /&gt;
; pat (file) : Fill pattern.&lt;br /&gt;
&lt;br /&gt;
; lwidth (dimen) : Line width of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; scale (number) : Scale of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; limit (dimen) : Limit the fill to the border with a width of ''dimen''.&lt;br /&gt;
&lt;br /&gt;
==== frame ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a frame.&lt;br /&gt;
&lt;br /&gt;
; where (dimen.1 dimen.2) : Position of frame.&lt;br /&gt;
&lt;br /&gt;
; offset (number.1 number.2) : Fine x and y adjust of the position of frame.&lt;br /&gt;
&lt;br /&gt;
; ref right|left|center upper|lower|center : Position is relative to the ''ref''.&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border line&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of the border line.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the frame.&lt;br /&gt;
&lt;br /&gt;
; rotate (dimen) : &amp;lt;u&amp;gt;todo&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== legend ====&lt;br /&gt;
&lt;br /&gt;
; lpos (number): Position in legend&amp;lt;br&amp;gt;Codes: -1, no show in legend; 0 automatic position; &amp;gt; 0 horizontal position.&lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]): Organize legend in ''number.1'' cols with a optional span of ''number.2''&lt;br /&gt;
&lt;br /&gt;
; interline (dimen): Set partial legend interline&lt;br /&gt;
&lt;br /&gt;
== Map paper ==&lt;br /&gt;
&lt;br /&gt;
=== paper ===&lt;br /&gt;
&lt;br /&gt;
Size of paper. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; paper [A0-6|B0-6|Legal|Ledger|Tabloid|Executive|Folio] : Type of paper (default A4).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; color (color) : Paper color.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Custom size of paper.&lt;br /&gt;
&lt;br /&gt;
; left (dimen), right (dimen), top (dimen), bottom (dimen) : Custom margins (default 0.5&amp;quot; left and right, and 1&amp;quot; top and bottom).&lt;br /&gt;
&lt;br /&gt;
; landscape yes|no : Paper orientation (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''. Set the default font of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''. Free draw as watermarks, before any feature of the map is drawn (see ''draw'').&lt;br /&gt;
&lt;br /&gt;
=== scale ===&lt;br /&gt;
&lt;br /&gt;
Scale of the map.&lt;br /&gt;
&lt;br /&gt;
Simple line command to define the scale of the map. The default is adjust map to the paper dimensions. If the remaining dimensions of the paper not permit the scale, ''ps.out'' adjust the scale to a new value that it fit in the paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scale 1&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;(number) : Scale of map.&amp;lt;br&amp;gt;For example, ''scale 1:500000'' to rescale maparea dimensions.&lt;br /&gt;
&lt;br /&gt;
=== maparea ===&lt;br /&gt;
Define specific dimensions of the map (default defined by command ''scale'')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; maparea : Define characteristics of the map area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border map.&amp;lt;br&amp;gt;Usefull with ''in'' and ''out'' formats of the ''grid'' and ''geogrid'', ignored in ''iho'' and ''can'' formats.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Border color-&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the map area.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Dimensions of the map.&lt;br /&gt;
&lt;br /&gt;
; top (dimen), bottom (dimen) : Position of the top-left corner of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''.&amp;lt;br&amp;gt;Draw onto the map but before the grid lines, vpoints and vlabels are drawn; i.e. this map elements are drawn over the draw elements.&lt;br /&gt;
&lt;br /&gt;
=== palette ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;testing&amp;lt;/U&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; palette&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; light (color text) :&lt;br /&gt;
&lt;br /&gt;
; dark (color text) :&lt;br /&gt;
&lt;br /&gt;
; wheel (number text) :&lt;br /&gt;
&lt;br /&gt;
; monochrome (color number text) :&lt;br /&gt;
&lt;br /&gt;
; complementary (color number text) :&lt;br /&gt;
&lt;br /&gt;
; analogous (color number text) :&lt;br /&gt;
&lt;br /&gt;
; gradient (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; binary (color name) :&lt;br /&gt;
&lt;br /&gt;
; sequential (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; qualitative (number text) :&lt;br /&gt;
&lt;br /&gt;
; diverging (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
== Common elements ==&lt;br /&gt;
&lt;br /&gt;
=== grid and geogrid ===&lt;br /&gt;
&lt;br /&gt;
Draw a border around the map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; grid|geogrid :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; format in|out|+out|can|iho : Type of border (see examples).&lt;br /&gt;
&lt;br /&gt;
; major (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; minor (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; subminor (number) : ''number'' of subdivisons of the minor divisions.&lt;br /&gt;
&lt;br /&gt;
; trim (number) : Cut trailing zeros.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Color of the border.&lt;br /&gt;
&lt;br /&gt;
; cross (number) : Replace lines by cross&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_iho.png|format iho&lt;br /&gt;
File:ps_out_can.png|format can&lt;br /&gt;
File:ps_out_in.png |format in&lt;br /&gt;
File:ps_out_out.png|format +out&lt;br /&gt;
File:ps_out_out1.png|typical map border&lt;br /&gt;
File:ps_out_out2.png|typical map border with ''subminor 5'' and ''fcolor blue''&lt;br /&gt;
File:ps_out_out3.png|''cross 500'', ''fcolor indigo'', ''color 200:200:200'' in '''maparea'''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== scalebar ===&lt;br /&gt;
&lt;br /&gt;
Set a scalebar on the map.&amp;lt;br&amp;gt;Maximun 5 scalebars in each map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scalebar I|l|s|S|f|F : Define the type of scalebar (I: inner, l: line, s/S: simple, f/F: fill).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; length (number) : Length of the scale.&lt;br /&gt;
&lt;br /&gt;
; units meters|m|kilometers|km|feet|ft|miles|mil|nautical_miles|nm ([text]) : Unit of the length and ''text' to label the units.&lt;br /&gt;
&lt;br /&gt;
; major (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; minor (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor.&lt;br /&gt;
&lt;br /&gt;
; height (dimen) : Height of the bar or ticks.&lt;br /&gt;
&lt;br /&gt;
; zero yes|no : Set position relative to zero value of the scalebar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Scalerbar styles&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;50px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_scalebar_s.png|scalebar s&lt;br /&gt;
File:ps_out_scalebar_S.png|scalebar S&lt;br /&gt;
File:ps_out_scalebar_I.png|scalebar I (uppercase i)&lt;br /&gt;
File:ps_out_scalebar_f.png|scalebar f&lt;br /&gt;
File:ps_out_scalebar_F.png|scalebar F&lt;br /&gt;
File:ps_out_scalebar_l.png|scalebar l (downcase L)&lt;br /&gt;
File:ps_out_scalebar_3.png|Multiple scalebars zero centered with ''zero yes''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== note ===&lt;br /&gt;
Write special text or free text on any place of the paper with frame (also ''draw'' permit write free-text in paper). &lt;br /&gt;
&lt;br /&gt;
Maximun 20 notes by map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; note &amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;file|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;maplimits|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;dimen|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;scale (text)|(text) : Type of note and text to show.&amp;lt;br&amp;gt;When free text, use '|' to break lines and '.' as first character to center line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; text (text) : Another roption to enter the same as inline note text;&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of note.&lt;br /&gt;
&lt;br /&gt;
; angle (number) : ''number'' of degrees to rotate (do not work fine).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Note keywords and free text&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_note_ml.png  |note :maplimits&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_dimen.png|note :dimen&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scale.png|note :scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_free.png|note free text|in multiple lines&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_freec.png|note .free text|.in multiple [...]&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scaler.png|note :scale scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br&amp;gt;&amp;amp;nbsp;angle 90&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== draw ===&lt;br /&gt;
&lt;br /&gt;
Simple script language to draw predefined postscript code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; draw [none|paper|maparea|free] :  &lt;br /&gt;
''paper'': before any map feature is drawn (equivalent to place inside ''paper'' block); &amp;lt;br&amp;gt;&lt;br /&gt;
''maparea'' before the last elements of the map (equivalent to place inside ''mapare'' block) ; &amp;lt;br&amp;gt;&lt;br /&gt;
''none'': draw over all elements of the map but only in the map area; and &amp;lt;br&amp;gt;&lt;br /&gt;
''free'': after all map features are drawn in any place of the paper; and ''none''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; --- : &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_north1.png   |&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;north 700000 4700000&amp;lt;/source&amp;gt;&lt;br /&gt;
File:ps_out_north2.png   |north 5cm 16.5cm -&lt;br /&gt;
File:ps_out_maplimits.png|maplimits&lt;br /&gt;
File:ps_out_compass.png  |compass 700000 4700000 10000 10.2345&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Raster maps ==&lt;br /&gt;
&lt;br /&gt;
=== raster ===&lt;br /&gt;
&lt;br /&gt;
Draw one or two raster maps on the maparea. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; raster (raster|raster.1 raster.2|raster.R raster.G raster.B|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;group) : The ''raster'' value is the raster mapname, two raster maps ''raster.1'' or color and ''raster.2'' or shade to draw as relief map, three maps ''raster.R'', ''raster.G'' and ''raster.B'' to draw as RGB, or a groupname (leader by ':') with tree RGB maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; grey yes|no : Store and draw the rasters in grey scale (small size of file).&amp;lt;br&amp;gt;The conversion follows the NTSC video standard.&lt;br /&gt;
&lt;br /&gt;
; maskcell (raster.1 [raster.2]) : Set the ''raster.1'' map to use as mask (independent of the mask set in GRASS with [[r.mask]]) and, optionally, the ''raster.2'' map uses as background.&amp;lt;br&amp;gt;The background ''raster.2'' is painted in grey scale (NTSC) and tinted with ''maskcolor''.&lt;br /&gt;
&lt;br /&gt;
; maskcolor (color|none) : Set the ''color'' of the mask area.&amp;lt;br&amp;gt;If a raster map as background is set then it's drawn with a scale white-maskcolor.&lt;br /&gt;
&lt;br /&gt;
; outline : Block ''line''. Outline of categories.&lt;br /&gt;
&lt;br /&gt;
; setcolor null|default|(number) (color) : Replace the color of the cat ''number'' area with a new color.&amp;lt;br&amp;gt;Multiple ''setcolor'' are possibles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_raster1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_outline.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;outline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width .2mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;end&amp;lt;br/&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_setcolor.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor white&amp;lt;br&amp;gt;&amp;amp;nbsp;setcolor 37 magenta&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_grey.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;grey yes&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Vector maps ==&lt;br /&gt;
&lt;br /&gt;
All vector map accept optionally the following commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; layer (number) : Layer number used with cats/where option.&lt;br /&gt;
&lt;br /&gt;
; cats (n1,n2,...) : List of ''cat''s to show.&lt;br /&gt;
&lt;br /&gt;
; where (text) : Argument of the SQL where clausule to filter the areas to show.&lt;br /&gt;
&lt;br /&gt;
; masked yes|no : Masked or not by raster mask (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; label (text) : For description or title in ''vlegend''.&lt;br /&gt;
&lt;br /&gt;
; legend [(number)]: Position in legend (-1, no legend) or enter in a block ''legend''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vareas ===&lt;br /&gt;
&lt;br /&gt;
Draw areas on the map.&amp;lt;br&amp;gt;&lt;br /&gt;
The areas always are drawn first, on the bottom of other type of maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vareas (vector) : ''vector'' is a vector of areas, except when ''lwidth'' is different to zero that ''vector'' is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type area|line : Default ''area''.&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Style of the boundary.&lt;br /&gt;
&lt;br /&gt;
; fill : Block ''fill''. Style of the area.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic fill color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Text label when default conditions.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color][|dimen] text) : Make a item of a sublegend with label the ''text'' and title the text of the ''label''.&amp;lt;br&amp;gt;The fillcolor of the areas is set to ''color'' and the line width is set to ''dimen'' when ''column.2'' &amp;gt;= n1 and ''column.2'' &amp;lt; n2  (''column.2'' from ''rgbcol'').&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; island yes|no : Draw island as normal areas (fill as normal area then hide it).&lt;br /&gt;
&lt;br /&gt;
; mirror (dimen [number]) : The line is drawn as an area with a copy of the line placed with polar coordinates: ''dimen' and ''angle''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vareas: sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vareas0.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;color indigo&lt;br /&gt;
File:ps_out_vareas4.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;color indigo&amp;lt;br&amp;gt;&amp;amp;nbsp;limit 3mm&lt;br /&gt;
File:ps_out_vareas3.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;pat patterns/diag_up.eps&lt;br /&gt;
File:ps_out_vareas1.png|rgbcol - cat&amp;lt;br&amp;gt;setrule 0-500:red A&amp;lt;br/&amp;gt;setrule 500-1000:green B&amp;lt;br/&amp;gt;setrule 1000-5000:blue C&lt;br /&gt;
File:ps_out_vareas2.png|island no&lt;br /&gt;
File:ps_out_vareas5.png|vareas roadsmajor&amp;lt;br&amp;gt;&amp;amp;nbsp;cat 24,28,32,38,53&amp;lt;br&amp;gt;&amp;amp;nbsp;mirror 5 90&amp;lt;br&amp;gt;[and fill with pat cruz.eps]&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlines ===&lt;br /&gt;
&lt;br /&gt;
Draw lines on the map.&amp;lt;br&amp;gt;The areas always are drawn second, after ''vareas'' and before ''vpoints''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlines (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of lines, except if ''type'' is boundary that ''vector'' is a vector of areas.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Optional commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type line|boundary : Draw boundaries of a vector of areas or lines of a vector of lines (default ''line'').&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Normal line.&lt;br /&gt;
&lt;br /&gt;
; hline : Block ''line''. Highlight line.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Works with ''hline'' to offset from the center of ''line''.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic line color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Label in legend when default values and ''setcolor'' rules.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with ''text'' as label and title the text of the ''label''. Also, the color of the normal line with column &amp;gt;= n1 and column &amp;lt; n2 (column from rgbcol), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlines: sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlines0.png|hline&lt;br /&gt;
File:ps_out_vlines1.png|line 0.05mm&amp;lt;br&amp;gt;setrule 100:brown|.25mm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vpoints ===&lt;br /&gt;
&lt;br /&gt;
Draw points on the map.&amp;lt;br&amp;gt;The points always are drawn last, after ''vareas'' and ''vlines''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vpoints (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of points, except when '''type''' is ''centroid'' or ''boundary'' that it is a vector of areas, or when '''type''' is ''line'' that it is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; type centroid|line|boundary|point : Type of draw (default ''point'').&lt;br /&gt;
&lt;br /&gt;
; symbol (epsfile) : Symbol to use (default: basic/circle).&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Type of line in the symbol.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color): Static fillcolor of the symbol.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Offset of the symbol.&lt;br /&gt;
&lt;br /&gt;
; rotate (number|column) : Angle to rotate the symbol, static ''number'' or dynamic in a ''column'' of the database.&lt;br /&gt;
&lt;br /&gt;
; size (number|column [number]) : Size of the symbol take from ''number'' or from a ''column'' of the database. In the last option, there is a optional ''number'' to define the static size of the symbol in the legend when the size of symbols are dynamic. &lt;br /&gt;
&lt;br /&gt;
; scale (dimen.1 [dimen.2]) : Rescale the size of the symbol by the ''dimen.1'' and, optionally, add a ''dimen.2''. i.e., ''resize = dimen.1 * size + dimen.2''.&lt;br /&gt;
&lt;br /&gt;
; setsize (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;size] text) : Variable size of symbols from data in ''column'' of database set in ''size''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands when type is line&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; dist (dimen) : Define the distance in paper between symbol over the line.&lt;br /&gt;
&lt;br /&gt;
; cline : Block ''line''. Type of line that connect symbols.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vpoints: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vpoints0.png|''Points with same size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size 5&lt;br /&gt;
File:ps_out_vpoints1.png|''Points with dynamic size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT 5&amp;lt;br&amp;gt;&amp;amp;nbsp;scale 0.01 2&lt;br /&gt;
File:ps_out_vpoints2.png|''Points with conditional size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 200-1000:3 &amp;lt; 1000&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 1000-2500:9 &amp;gt; 1000&lt;br /&gt;
File:ps_out_vpoints3.png|''Points on line ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;type line&amp;lt;br&amp;gt;&amp;amp;nbsp;dist 1cm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlabels ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;in progress&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlabels none|(vector) :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; font :&lt;br /&gt;
&lt;br /&gt;
; labelcol (column) :&lt;br /&gt;
&lt;br /&gt;
; decimals (number) :&lt;br /&gt;
&lt;br /&gt;
; circled yes|no :&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2 text)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlabels0.png|vpoints firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;[...]&amp;lt;br/n&amp;gt;end&amp;lt;br/&amp;gt;vlabels firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;labelcol PUMPERS&amp;lt;br/n&amp;gt;&amp;amp;nbsp;font&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;name Univers-Bold&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;size 10&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color yellow&amp;lt;br/n&amp;gt;&amp;amp;nbsp;end&amp;lt;br/n&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Legend of the maps ==&lt;br /&gt;
&lt;br /&gt;
=== rlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the raster map.&amp;lt;br&amp;gt;The units ''meters'' in the gradient legend is set with {{cmd|r.support}}.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; rlegend [text] : Text is the title of the legend. &lt;br /&gt;
&lt;br /&gt;
; raster (raster) : the ''raster'' map to take the data of legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commads are optionals&amp;lt;/U&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; titlefont : Block ''font'' for the legend header.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font'' for the normal text.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Width of the symbol area.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For category legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; cols (number) [(number)] : Number of columns with symbols and separation between columns (default ''1'').&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Vertical space between symbols (o to join symbols)&lt;br /&gt;
&lt;br /&gt;
; nodata yes|no : Remove category ''no data''.&lt;br /&gt;
&lt;br /&gt;
; order (n1,n2,...) : To reorder the items.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For gradient legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; height (dimen), width (dimen) : Dimension of the frame with the legend.&lt;br /&gt;
&lt;br /&gt;
; vertical yes|no : Orientation of the gradient legend (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; range (n1 n2) : Manual set of the data range for legend.&lt;br /&gt;
&lt;br /&gt;
; gradient yes|no : Forze draw gradient legend with category data.&lt;br /&gt;
&lt;br /&gt;
; tick (dimen) : Length of the ticks.&lt;br /&gt;
&lt;br /&gt;
; whiteframe (dimen) : Width of the white frame around the bar color.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;250px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_rlegend.png|rlegend Zip Codes (wake)&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster zipcodes_wake&amp;lt;br/&amp;gt;&amp;amp;nbsp;cols 2 0&amp;lt;br/&amp;gt;&amp;amp;nbsp;swidth 8mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;order 20,10,30,22,34&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend1.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;height 8cm&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend2.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;width 8cm&amp;lt;br/&amp;gt;&amp;amp;nbsp;vertical no&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the vector maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlegend [text] : Optional the title or head of the legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; title : Block ''font'' for title of legend.&lt;br /&gt;
&lt;br /&gt;
; font : Block font for normal text of legend.&lt;br /&gt;
&lt;br /&gt;
; frame : &lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]) : Distribution of the items in ''number.1'' cols. Optionaly, ''number.2'' of span between columns.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Symbol width.&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Space between lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlegend: sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_output_vlegend0.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conversion to PDF ==&lt;br /&gt;
&lt;br /&gt;
You can obtain good results with these settings:&lt;br /&gt;
  ps2pdf14 -dPDFSETTINGS=/prepress -dEmbedAllFonts=true map.ps map.pdf&lt;br /&gt;
&lt;br /&gt;
== Example for ps.output control script ==&lt;br /&gt;
&lt;br /&gt;
This is the content of a ps.output control file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
paper A4&lt;br /&gt;
 landscape y&lt;br /&gt;
end&lt;br /&gt;
maparea&lt;br /&gt;
 height 12cm&lt;br /&gt;
 border .8mm&lt;br /&gt;
 color grey&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
grid&lt;br /&gt;
 major 100000&lt;br /&gt;
  width .1mm&lt;br /&gt;
  color white&lt;br /&gt;
 end&lt;br /&gt;
 minor 50000&lt;br /&gt;
  width .1mm&lt;br /&gt;
  color white&lt;br /&gt;
  style 1&lt;br /&gt;
 end&lt;br /&gt;
 font&lt;br /&gt;
  name Univers&lt;br /&gt;
  size 6&lt;br /&gt;
  extend 1.2&lt;br /&gt;
  color black&lt;br /&gt;
 end&lt;br /&gt;
 fcolor black&lt;br /&gt;
 format +out&lt;br /&gt;
 trim 3&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
raster ortho.r ortho.g ortho.b&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: ps.map]]&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=File:Ps.out_scalebar_l.png&amp;diff=12929</id>
		<title>File:Ps.out scalebar l.png</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=File:Ps.out_scalebar_l.png&amp;diff=12929"/>
		<updated>2011-03-21T18:55:21Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12928</id>
		<title>Ps.output</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12928"/>
		<updated>2011-03-21T18:52:08Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: /* scalebar */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ps.out''' try to update the standard postscript output of Grass adding new features to design borders, graticules, categorized legends, etc&lt;br /&gt;
&lt;br /&gt;
'''This is in progress and not all features are yet uploaded in ''addons''. '''&lt;br /&gt;
&lt;br /&gt;
== Command line flags ==&lt;br /&gt;
&lt;br /&gt;
'''-d ''': Draw a 1x1 cm grid on paper to help the placement of the elements of the map.&lt;br /&gt;
&lt;br /&gt;
'''-e''': Create an output file for embedding into another ''ps.out'' map&lt;br /&gt;
&lt;br /&gt;
'''-g''': Use the extended PostScript of Ghostscript (for transparent colors only)&lt;br /&gt;
&lt;br /&gt;
'''-s''': Draw the small digit in the coordinate numbers to lower instead upper position.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;100px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_grid.png|A4 paper with flag -d &lt;br /&gt;
File:ps_out_digit_upper.png|coordinate&lt;br /&gt;
File:ps_out_digit_lower.png|coordinate with flag -s&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generic Instructions ==&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== dimen ====&lt;br /&gt;
&lt;br /&gt;
Define a dimension. Accepted units are:&lt;br /&gt;
&lt;br /&gt;
*; ''unitless'' : e.g. 123. The dimension is the ''number'' by 1/72&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
*; inch : e.g. 1.2inch. &lt;br /&gt;
&lt;br /&gt;
*; milimeters : e.g. 2.3mm.&lt;br /&gt;
&lt;br /&gt;
*; centimeters : e.g. 1.4cm.&lt;br /&gt;
&lt;br /&gt;
*; percentage : e.g. 50%.&amp;lt;br&amp;gt;The position is relative to the size and position of the map in the paper being ''0%'' the left or bottom corner.&lt;br /&gt;
&lt;br /&gt;
==== color ====&lt;br /&gt;
&lt;br /&gt;
Define a color. Accepted formats are:&lt;br /&gt;
&lt;br /&gt;
*; standard GRASS name : e.g. indigo.&lt;br /&gt;
&lt;br /&gt;
*; R&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;G&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;B : e.g. 200:123:90&lt;br /&gt;
&lt;br /&gt;
*; user name : e.g. red5.&amp;lt;br&amp;gt;Defined in ''palette'' block&lt;br /&gt;
&lt;br /&gt;
All formats can add '$(0-1)' to define the opacity of the color (alpha channel); e.g., indigo$.75 or 200:120:120$.2&lt;br /&gt;
&lt;br /&gt;
==== number ====&lt;br /&gt;
&lt;br /&gt;
==== text ====&lt;br /&gt;
&lt;br /&gt;
=== Blocks of instructions ===&lt;br /&gt;
&lt;br /&gt;
A ''block'' begin with the keywords and finish with keyword ''end''&lt;br /&gt;
&lt;br /&gt;
==== font ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a font.&lt;br /&gt;
&lt;br /&gt;
; name (text) : Name of font.&lt;br /&gt;
&lt;br /&gt;
; size (dimen) : Size of font.&lt;br /&gt;
&lt;br /&gt;
; extend (dimen): Expand the width of font.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of font.&lt;br /&gt;
&lt;br /&gt;
; outline yes|no : Outline of the font.&lt;br /&gt;
&lt;br /&gt;
==== line ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a line.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of line.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of line.&lt;br /&gt;
&lt;br /&gt;
; style solid|dashed|dotted|dashdotted|(n1n2...) : Style of line.&lt;br /&gt;
&lt;br /&gt;
; cap butt|round|extended_butt : Cap&lt;br /&gt;
&lt;br /&gt;
; extended type step [voffset height width] : Extended style of line for use mainly with rects.&amp;lt;br&amp;gt; ''type'' = arrow, bar, circled_semi, double_bar, point, rombo, square, triangle, xcross, zigzag (you can use only the first char; and uppercase for filled version).&amp;lt;br&amp;gt;  ''step'' = (dimen).&amp;lt;br&amp;gt; ''voffset'' = (dimen).&amp;lt;br&amp;gt; ''height'' = (dimen).&amp;lt;br&amp;gt; ''width'' = (dimen).&lt;br /&gt;
&lt;br /&gt;
; baseline (y|n) : Work with the ''extended'' option to define if the baseline is drawn.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps.out_linex_A.png|extended arrow 1mm&lt;br /&gt;
File:ps.out_linex_B.png|extended bar 1mm&lt;br /&gt;
File:ps.out_linex_C.png|extended circled_semi 1mm&lt;br /&gt;
File:ps.out_linex_D.png|extended double_bar 1mm&lt;br /&gt;
File:ps.out_linex_P.png|extended point 1mm&lt;br /&gt;
File:ps.out_linex_R.png|extended rombo 1mm&lt;br /&gt;
File:ps.out_linex_S.png|extended square 1mm&lt;br /&gt;
File:ps.out_linex_X.png|extended xcros 1mm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== fill ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a fill area.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Fill color.&lt;br /&gt;
&lt;br /&gt;
; pat (file) : Fill pattern.&lt;br /&gt;
&lt;br /&gt;
; lwidth (dimen) : Line width of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; scale (number) : Scale of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; limit (dimen) : Limit the fill to the border with a width of ''dimen''.&lt;br /&gt;
&lt;br /&gt;
==== frame ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a frame.&lt;br /&gt;
&lt;br /&gt;
; where (dimen.1 dimen.2) : Position of frame.&lt;br /&gt;
&lt;br /&gt;
; offset (number.1 number.2) : Fine x and y adjust of the position of frame.&lt;br /&gt;
&lt;br /&gt;
; ref right|left|center upper|lower|center : Position is relative to the ''ref''.&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border line&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of the border line.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the frame.&lt;br /&gt;
&lt;br /&gt;
; rotate (dimen) : &amp;lt;u&amp;gt;todo&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== legend ====&lt;br /&gt;
&lt;br /&gt;
; lpos (number): Position in legend&amp;lt;br&amp;gt;Codes: -1, no show in legend; 0 automatic position; &amp;gt; 0 horizontal position.&lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]): Organize legend in ''number.1'' cols with a optional span of ''number.2''&lt;br /&gt;
&lt;br /&gt;
; interline (dimen): Set partial legend interline&lt;br /&gt;
&lt;br /&gt;
== Map paper ==&lt;br /&gt;
&lt;br /&gt;
=== paper ===&lt;br /&gt;
&lt;br /&gt;
Size of paper. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; paper [A0-6|B0-6|Legal|Ledger|Tabloid|Executive|Folio] : Type of paper (default A4).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; color (color) : Paper color.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Custom size of paper.&lt;br /&gt;
&lt;br /&gt;
; left (dimen), right (dimen), top (dimen), bottom (dimen) : Custom margins (default 0.5&amp;quot; left and right, and 1&amp;quot; top and bottom).&lt;br /&gt;
&lt;br /&gt;
; landscape yes|no : Paper orientation (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''. Set the default font of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''. Free draw as watermarks, before any feature of the map is drawn (see ''draw'').&lt;br /&gt;
&lt;br /&gt;
=== scale ===&lt;br /&gt;
&lt;br /&gt;
Scale of the map.&lt;br /&gt;
&lt;br /&gt;
Simple line command to define the scale of the map. The default is adjust map to the paper dimensions. If the remaining dimensions of the paper not permit the scale, ''ps.out'' adjust the scale to a new value that it fit in the paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scale 1&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;(number) : Scale of map.&amp;lt;br&amp;gt;For example, ''scale 1:500000'' to rescale maparea dimensions.&lt;br /&gt;
&lt;br /&gt;
=== maparea ===&lt;br /&gt;
Define specific dimensions of the map (default defined by command ''scale'')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; maparea : Define characteristics of the map area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border map.&amp;lt;br&amp;gt;Usefull with ''in'' and ''out'' formats of the ''grid'' and ''geogrid'', ignored in ''iho'' and ''can'' formats.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Border color-&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the map area.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Dimensions of the map.&lt;br /&gt;
&lt;br /&gt;
; top (dimen), bottom (dimen) : Position of the top-left corner of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''.&amp;lt;br&amp;gt;Draw onto the map but before the grid lines, vpoints and vlabels are drawn; i.e. this map elements are drawn over the draw elements.&lt;br /&gt;
&lt;br /&gt;
=== palette ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;testing&amp;lt;/U&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; palette&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; light (color text) :&lt;br /&gt;
&lt;br /&gt;
; dark (color text) :&lt;br /&gt;
&lt;br /&gt;
; wheel (number text) :&lt;br /&gt;
&lt;br /&gt;
; monochrome (color number text) :&lt;br /&gt;
&lt;br /&gt;
; complementary (color number text) :&lt;br /&gt;
&lt;br /&gt;
; analogous (color number text) :&lt;br /&gt;
&lt;br /&gt;
; gradient (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; binary (color name) :&lt;br /&gt;
&lt;br /&gt;
; sequential (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; qualitative (number text) :&lt;br /&gt;
&lt;br /&gt;
; diverging (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
== Common elements ==&lt;br /&gt;
&lt;br /&gt;
=== grid and geogrid ===&lt;br /&gt;
&lt;br /&gt;
Draw a border around the map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; grid|geogrid :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; format in|out|+out|can|iho : Type of border (see examples).&lt;br /&gt;
&lt;br /&gt;
; major (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; minor (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; subminor (number) : ''number'' of subdivisons of the minor divisions.&lt;br /&gt;
&lt;br /&gt;
; trim (number) : Cut trailing zeros.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Color of the border.&lt;br /&gt;
&lt;br /&gt;
; cross (number) : Replace lines by cross&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_iho.png|format iho&lt;br /&gt;
File:ps_out_can.png|format can&lt;br /&gt;
File:ps_out_in.png |format in&lt;br /&gt;
File:ps_out_out.png|format +out&lt;br /&gt;
File:ps_out_out1.png|typical map border&lt;br /&gt;
File:ps_out_out2.png|typical map border with ''subminor 5'' and ''fcolor blue''&lt;br /&gt;
File:ps_out_out3.png|''cross 500'', ''fcolor indigo'', ''color 200:200:200'' in '''maparea'''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== scalebar ===&lt;br /&gt;
&lt;br /&gt;
Set a scalebar on the map.&amp;lt;br&amp;gt;Maximun 5 scalebars in each map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scalebar I|l|s|S|f|F : Define the type of scalebar (I: inner, l: line, s/S: simple, f/F: fill).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; length (number) : Length of the scale.&lt;br /&gt;
&lt;br /&gt;
; units meters|m|kilometers|km|feet|ft|miles|mil|nautical_miles|nm ([text]) : Unit of the length and ''text' to label the units.&lt;br /&gt;
&lt;br /&gt;
; major (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; minor (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor.&lt;br /&gt;
&lt;br /&gt;
; height (dimen) : Height of the bar or ticks.&lt;br /&gt;
&lt;br /&gt;
; zero yes|no : Set position relative to zero value of the scalebar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Scalerbar styles&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;50px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_scalebar_s.png|scalebar s&lt;br /&gt;
File:ps_out_scalebar_S.png|scalebar S&lt;br /&gt;
File:ps_out_scalebar_I.png|scalebar I (uppercase i)&lt;br /&gt;
File:ps_out_scalebar_f.png|scalebar f&lt;br /&gt;
File:ps_out_scalebar_F.png|scalebar F&lt;br /&gt;
File:ps_out_scalebar_3.png|Multiple scalebars zero centered with ''zero yes''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== note ===&lt;br /&gt;
Write special text or free text on any place of the paper with frame (also ''draw'' permit write free-text in paper). &lt;br /&gt;
&lt;br /&gt;
Maximun 20 notes by map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; note &amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;file|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;maplimits|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;dimen|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;scale (text)|(text) : Type of note and text to show.&amp;lt;br&amp;gt;When free text, use '|' to break lines and '.' as first character to center line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; text (text) : Another roption to enter the same as inline note text;&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of note.&lt;br /&gt;
&lt;br /&gt;
; angle (number) : ''number'' of degrees to rotate (do not work fine).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Note keywords and free text&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_note_ml.png  |note :maplimits&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_dimen.png|note :dimen&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scale.png|note :scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_free.png|note free text|in multiple lines&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_freec.png|note .free text|.in multiple [...]&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scaler.png|note :scale scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br&amp;gt;&amp;amp;nbsp;angle 90&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== draw ===&lt;br /&gt;
&lt;br /&gt;
Simple script language to draw predefined postscript code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; draw [none|paper|maparea|free] :  &lt;br /&gt;
''paper'': before any map feature is drawn (equivalent to place inside ''paper'' block); &amp;lt;br&amp;gt;&lt;br /&gt;
''maparea'' before the last elements of the map (equivalent to place inside ''mapare'' block) ; &amp;lt;br&amp;gt;&lt;br /&gt;
''none'': draw over all elements of the map but only in the map area; and &amp;lt;br&amp;gt;&lt;br /&gt;
''free'': after all map features are drawn in any place of the paper; and ''none''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; --- : &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_north1.png   |&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;north 700000 4700000&amp;lt;/source&amp;gt;&lt;br /&gt;
File:ps_out_north2.png   |north 5cm 16.5cm -&lt;br /&gt;
File:ps_out_maplimits.png|maplimits&lt;br /&gt;
File:ps_out_compass.png  |compass 700000 4700000 10000 10.2345&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Raster maps ==&lt;br /&gt;
&lt;br /&gt;
=== raster ===&lt;br /&gt;
&lt;br /&gt;
Draw one or two raster maps on the maparea. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; raster (raster|raster.1 raster.2|raster.R raster.G raster.B|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;group) : The ''raster'' value is the raster mapname, two raster maps ''raster.1'' or color and ''raster.2'' or shade to draw as relief map, three maps ''raster.R'', ''raster.G'' and ''raster.B'' to draw as RGB, or a groupname (leader by ':') with tree RGB maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; grey yes|no : Store and draw the rasters in grey scale (small size of file).&amp;lt;br&amp;gt;The conversion follows the NTSC video standard.&lt;br /&gt;
&lt;br /&gt;
; maskcell (raster.1 [raster.2]) : Set the ''raster.1'' map to use as mask (independent of the mask set in GRASS with [[r.mask]]) and, optionally, the ''raster.2'' map uses as background.&amp;lt;br&amp;gt;The background ''raster.2'' is painted in grey scale (NTSC) and tinted with ''maskcolor''.&lt;br /&gt;
&lt;br /&gt;
; maskcolor (color|none) : Set the ''color'' of the mask area.&amp;lt;br&amp;gt;If a raster map as background is set then it's drawn with a scale white-maskcolor.&lt;br /&gt;
&lt;br /&gt;
; outline : Block ''line''. Outline of categories.&lt;br /&gt;
&lt;br /&gt;
; setcolor null|default|(number) (color) : Replace the color of the cat ''number'' area with a new color.&amp;lt;br&amp;gt;Multiple ''setcolor'' are possibles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_raster1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_outline.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;outline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width .2mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;end&amp;lt;br/&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_setcolor.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor white&amp;lt;br&amp;gt;&amp;amp;nbsp;setcolor 37 magenta&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_grey.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;grey yes&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Vector maps ==&lt;br /&gt;
&lt;br /&gt;
All vector map accept optionally the following commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; layer (number) : Layer number used with cats/where option.&lt;br /&gt;
&lt;br /&gt;
; cats (n1,n2,...) : List of ''cat''s to show.&lt;br /&gt;
&lt;br /&gt;
; where (text) : Argument of the SQL where clausule to filter the areas to show.&lt;br /&gt;
&lt;br /&gt;
; masked yes|no : Masked or not by raster mask (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; label (text) : For description or title in ''vlegend''.&lt;br /&gt;
&lt;br /&gt;
; legend [(number)]: Position in legend (-1, no legend) or enter in a block ''legend''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vareas ===&lt;br /&gt;
&lt;br /&gt;
Draw areas on the map.&amp;lt;br&amp;gt;&lt;br /&gt;
The areas always are drawn first, on the bottom of other type of maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vareas (vector) : ''vector'' is a vector of areas, except when ''lwidth'' is different to zero that ''vector'' is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type area|line : Default ''area''.&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Style of the boundary.&lt;br /&gt;
&lt;br /&gt;
; fill : Block ''fill''. Style of the area.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic fill color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Text label when default conditions.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color][|dimen] text) : Make a item of a sublegend with label the ''text'' and title the text of the ''label''.&amp;lt;br&amp;gt;The fillcolor of the areas is set to ''color'' and the line width is set to ''dimen'' when ''column.2'' &amp;gt;= n1 and ''column.2'' &amp;lt; n2  (''column.2'' from ''rgbcol'').&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; island yes|no : Draw island as normal areas (fill as normal area then hide it).&lt;br /&gt;
&lt;br /&gt;
; mirror (dimen [number]) : The line is drawn as an area with a copy of the line placed with polar coordinates: ''dimen' and ''angle''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vareas: sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vareas0.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;color indigo&lt;br /&gt;
File:ps_out_vareas4.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;color indigo&amp;lt;br&amp;gt;&amp;amp;nbsp;limit 3mm&lt;br /&gt;
File:ps_out_vareas3.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;pat patterns/diag_up.eps&lt;br /&gt;
File:ps_out_vareas1.png|rgbcol - cat&amp;lt;br&amp;gt;setrule 0-500:red A&amp;lt;br/&amp;gt;setrule 500-1000:green B&amp;lt;br/&amp;gt;setrule 1000-5000:blue C&lt;br /&gt;
File:ps_out_vareas2.png|island no&lt;br /&gt;
File:ps_out_vareas5.png|vareas roadsmajor&amp;lt;br&amp;gt;&amp;amp;nbsp;cat 24,28,32,38,53&amp;lt;br&amp;gt;&amp;amp;nbsp;mirror 5 90&amp;lt;br&amp;gt;[and fill with pat cruz.eps]&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlines ===&lt;br /&gt;
&lt;br /&gt;
Draw lines on the map.&amp;lt;br&amp;gt;The areas always are drawn second, after ''vareas'' and before ''vpoints''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlines (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of lines, except if ''type'' is boundary that ''vector'' is a vector of areas.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Optional commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type line|boundary : Draw boundaries of a vector of areas or lines of a vector of lines (default ''line'').&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Normal line.&lt;br /&gt;
&lt;br /&gt;
; hline : Block ''line''. Highlight line.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Works with ''hline'' to offset from the center of ''line''.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic line color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Label in legend when default values and ''setcolor'' rules.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with ''text'' as label and title the text of the ''label''. Also, the color of the normal line with column &amp;gt;= n1 and column &amp;lt; n2 (column from rgbcol), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlines: sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlines0.png|hline&lt;br /&gt;
File:ps_out_vlines1.png|line 0.05mm&amp;lt;br&amp;gt;setrule 100:brown|.25mm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vpoints ===&lt;br /&gt;
&lt;br /&gt;
Draw points on the map.&amp;lt;br&amp;gt;The points always are drawn last, after ''vareas'' and ''vlines''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vpoints (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of points, except when '''type''' is ''centroid'' or ''boundary'' that it is a vector of areas, or when '''type''' is ''line'' that it is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; type centroid|line|boundary|point : Type of draw (default ''point'').&lt;br /&gt;
&lt;br /&gt;
; symbol (epsfile) : Symbol to use (default: basic/circle).&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Type of line in the symbol.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color): Static fillcolor of the symbol.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Offset of the symbol.&lt;br /&gt;
&lt;br /&gt;
; rotate (number|column) : Angle to rotate the symbol, static ''number'' or dynamic in a ''column'' of the database.&lt;br /&gt;
&lt;br /&gt;
; size (number|column [number]) : Size of the symbol take from ''number'' or from a ''column'' of the database. In the last option, there is a optional ''number'' to define the static size of the symbol in the legend when the size of symbols are dynamic. &lt;br /&gt;
&lt;br /&gt;
; scale (dimen.1 [dimen.2]) : Rescale the size of the symbol by the ''dimen.1'' and, optionally, add a ''dimen.2''. i.e., ''resize = dimen.1 * size + dimen.2''.&lt;br /&gt;
&lt;br /&gt;
; setsize (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;size] text) : Variable size of symbols from data in ''column'' of database set in ''size''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands when type is line&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; dist (dimen) : Define the distance in paper between symbol over the line.&lt;br /&gt;
&lt;br /&gt;
; cline : Block ''line''. Type of line that connect symbols.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vpoints: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vpoints0.png|''Points with same size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size 5&lt;br /&gt;
File:ps_out_vpoints1.png|''Points with dynamic size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT 5&amp;lt;br&amp;gt;&amp;amp;nbsp;scale 0.01 2&lt;br /&gt;
File:ps_out_vpoints2.png|''Points with conditional size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 200-1000:3 &amp;lt; 1000&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 1000-2500:9 &amp;gt; 1000&lt;br /&gt;
File:ps_out_vpoints3.png|''Points on line ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;type line&amp;lt;br&amp;gt;&amp;amp;nbsp;dist 1cm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlabels ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;in progress&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlabels none|(vector) :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; font :&lt;br /&gt;
&lt;br /&gt;
; labelcol (column) :&lt;br /&gt;
&lt;br /&gt;
; decimals (number) :&lt;br /&gt;
&lt;br /&gt;
; circled yes|no :&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2 text)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlabels0.png|vpoints firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;[...]&amp;lt;br/n&amp;gt;end&amp;lt;br/&amp;gt;vlabels firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;labelcol PUMPERS&amp;lt;br/n&amp;gt;&amp;amp;nbsp;font&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;name Univers-Bold&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;size 10&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color yellow&amp;lt;br/n&amp;gt;&amp;amp;nbsp;end&amp;lt;br/n&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Legend of the maps ==&lt;br /&gt;
&lt;br /&gt;
=== rlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the raster map.&amp;lt;br&amp;gt;The units ''meters'' in the gradient legend is set with {{cmd|r.support}}.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; rlegend [text] : Text is the title of the legend. &lt;br /&gt;
&lt;br /&gt;
; raster (raster) : the ''raster'' map to take the data of legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commads are optionals&amp;lt;/U&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; titlefont : Block ''font'' for the legend header.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font'' for the normal text.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Width of the symbol area.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For category legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; cols (number) [(number)] : Number of columns with symbols and separation between columns (default ''1'').&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Vertical space between symbols (o to join symbols)&lt;br /&gt;
&lt;br /&gt;
; nodata yes|no : Remove category ''no data''.&lt;br /&gt;
&lt;br /&gt;
; order (n1,n2,...) : To reorder the items.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For gradient legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; height (dimen), width (dimen) : Dimension of the frame with the legend.&lt;br /&gt;
&lt;br /&gt;
; vertical yes|no : Orientation of the gradient legend (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; range (n1 n2) : Manual set of the data range for legend.&lt;br /&gt;
&lt;br /&gt;
; gradient yes|no : Forze draw gradient legend with category data.&lt;br /&gt;
&lt;br /&gt;
; tick (dimen) : Length of the ticks.&lt;br /&gt;
&lt;br /&gt;
; whiteframe (dimen) : Width of the white frame around the bar color.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;250px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_rlegend.png|rlegend Zip Codes (wake)&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster zipcodes_wake&amp;lt;br/&amp;gt;&amp;amp;nbsp;cols 2 0&amp;lt;br/&amp;gt;&amp;amp;nbsp;swidth 8mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;order 20,10,30,22,34&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend1.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;height 8cm&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend2.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;width 8cm&amp;lt;br/&amp;gt;&amp;amp;nbsp;vertical no&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the vector maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlegend [text] : Optional the title or head of the legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; title : Block ''font'' for title of legend.&lt;br /&gt;
&lt;br /&gt;
; font : Block font for normal text of legend.&lt;br /&gt;
&lt;br /&gt;
; frame : &lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]) : Distribution of the items in ''number.1'' cols. Optionaly, ''number.2'' of span between columns.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Symbol width.&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Space between lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlegend: sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_output_vlegend0.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conversion to PDF ==&lt;br /&gt;
&lt;br /&gt;
You can obtain good results with these settings:&lt;br /&gt;
  ps2pdf14 -dPDFSETTINGS=/prepress -dEmbedAllFonts=true map.ps map.pdf&lt;br /&gt;
&lt;br /&gt;
== Example for ps.output control script ==&lt;br /&gt;
&lt;br /&gt;
This is the content of a ps.output control file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
paper A4&lt;br /&gt;
 landscape y&lt;br /&gt;
end&lt;br /&gt;
maparea&lt;br /&gt;
 height 12cm&lt;br /&gt;
 border .8mm&lt;br /&gt;
 color grey&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
grid&lt;br /&gt;
 major 100000&lt;br /&gt;
  width .1mm&lt;br /&gt;
  color white&lt;br /&gt;
 end&lt;br /&gt;
 minor 50000&lt;br /&gt;
  width .1mm&lt;br /&gt;
  color white&lt;br /&gt;
  style 1&lt;br /&gt;
 end&lt;br /&gt;
 font&lt;br /&gt;
  name Univers&lt;br /&gt;
  size 6&lt;br /&gt;
  extend 1.2&lt;br /&gt;
  color black&lt;br /&gt;
 end&lt;br /&gt;
 fcolor black&lt;br /&gt;
 format +out&lt;br /&gt;
 trim 3&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
raster ortho.r ortho.g ortho.b&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: ps.map]]&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12823</id>
		<title>Ps.output</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12823"/>
		<updated>2011-03-06T11:39:54Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: /* line */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ps.out''' try to update the standard postscript output of Grass adding new features to design borders, graticules, categorized legends, etc&lt;br /&gt;
&lt;br /&gt;
'''This is in progress and not all features are yet uploaded in ''addons''. '''&lt;br /&gt;
&lt;br /&gt;
== Command line flags ==&lt;br /&gt;
&lt;br /&gt;
'''-d ''': Draw a 1x1 cm grid on paper to help the placement of the elements of the map.&lt;br /&gt;
&lt;br /&gt;
'''-e''': Create an output file for embedding into another ''ps.out'' map&lt;br /&gt;
&lt;br /&gt;
'''-g''': Use the extended PostScript of Ghostscript (for transparent colors only)&lt;br /&gt;
&lt;br /&gt;
'''-s''': Draw the small digit in the coordinate numbers to lower instead upper position.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;100px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_grid.png|A4 paper with flag -d &lt;br /&gt;
File:ps_out_digit_upper.png|coordinate&lt;br /&gt;
File:ps_out_digit_lower.png|coordinate with flag -s&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generic Instructions ==&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== dimen ====&lt;br /&gt;
&lt;br /&gt;
Define a dimension. Accepted units are:&lt;br /&gt;
&lt;br /&gt;
*; ''unitless'' : e.g. 123. The dimension is the ''number'' by 1/72&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
*; inch : e.g. 1.2inch. &lt;br /&gt;
&lt;br /&gt;
*; milimeters : e.g. 2.3mm.&lt;br /&gt;
&lt;br /&gt;
*; centimeters : e.g. 1.4cm.&lt;br /&gt;
&lt;br /&gt;
*; percentage : e.g. 50%.&amp;lt;br&amp;gt;The position is relative to the size and position of the map in the paper being ''0%'' the left or bottom corner.&lt;br /&gt;
&lt;br /&gt;
==== color ====&lt;br /&gt;
&lt;br /&gt;
Define a color. Accepted formats are:&lt;br /&gt;
&lt;br /&gt;
*; standard GRASS name : e.g. indigo.&lt;br /&gt;
&lt;br /&gt;
*; R&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;G&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;B : e.g. 200:123:90&lt;br /&gt;
&lt;br /&gt;
*; user name : e.g. red5.&amp;lt;br&amp;gt;Defined in ''palette'' block&lt;br /&gt;
&lt;br /&gt;
All formats can add '$(0-1)' to define the opacity of the color (alpha channel); e.g., indigo$.75 or 200:120:120$.2&lt;br /&gt;
&lt;br /&gt;
==== number ====&lt;br /&gt;
&lt;br /&gt;
==== text ====&lt;br /&gt;
&lt;br /&gt;
=== Blocks of instructions ===&lt;br /&gt;
&lt;br /&gt;
A ''block'' begin with the keywords and finish with keyword ''end''&lt;br /&gt;
&lt;br /&gt;
==== font ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a font.&lt;br /&gt;
&lt;br /&gt;
; name (text) : Name of font.&lt;br /&gt;
&lt;br /&gt;
; size (dimen) : Size of font.&lt;br /&gt;
&lt;br /&gt;
; extend (dimen): Expand the width of font.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of font.&lt;br /&gt;
&lt;br /&gt;
; outline yes|no : Outline of the font.&lt;br /&gt;
&lt;br /&gt;
==== line ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a line.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of line.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of line.&lt;br /&gt;
&lt;br /&gt;
; style solid|dashed|dotted|dashdotted|(n1n2...) : Style of line.&lt;br /&gt;
&lt;br /&gt;
; cap butt|round|extended_butt : Cap&lt;br /&gt;
&lt;br /&gt;
; extended type step [voffset height width] : Extended style of line for use mainly with rects.&amp;lt;br&amp;gt; ''type'' = arrow, bar, circled_semi, double_bar, point, rombo, square, triangle, xcross, zigzag (you can use only the first char; and uppercase for filled version).&amp;lt;br&amp;gt;  ''step'' = (dimen).&amp;lt;br&amp;gt; ''voffset'' = (dimen).&amp;lt;br&amp;gt; ''height'' = (dimen).&amp;lt;br&amp;gt; ''width'' = (dimen).&lt;br /&gt;
&lt;br /&gt;
; baseline (y|n) : Work with the ''extended'' option to define if the baseline is drawn.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps.out_linex_A.png|extended arrow 1mm&lt;br /&gt;
File:ps.out_linex_B.png|extended bar 1mm&lt;br /&gt;
File:ps.out_linex_C.png|extended circled_semi 1mm&lt;br /&gt;
File:ps.out_linex_D.png|extended double_bar 1mm&lt;br /&gt;
File:ps.out_linex_P.png|extended point 1mm&lt;br /&gt;
File:ps.out_linex_R.png|extended rombo 1mm&lt;br /&gt;
File:ps.out_linex_S.png|extended square 1mm&lt;br /&gt;
File:ps.out_linex_X.png|extended xcros 1mm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== fill ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a fill area.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Fill color.&lt;br /&gt;
&lt;br /&gt;
; pat (file) : Fill pattern.&lt;br /&gt;
&lt;br /&gt;
; lwidth (dimen) : Line width of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; scale (number) : Scale of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; limit (dimen) : Limit the fill to the border with a width of ''dimen''.&lt;br /&gt;
&lt;br /&gt;
==== frame ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a frame.&lt;br /&gt;
&lt;br /&gt;
; where (dimen.1 dimen.2) : Position of frame.&lt;br /&gt;
&lt;br /&gt;
; offset (number.1 number.2) : Fine x and y adjust of the position of frame.&lt;br /&gt;
&lt;br /&gt;
; ref right|left|center upper|lower|center : Position is relative to the ''ref''.&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border line&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of the border line.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the frame.&lt;br /&gt;
&lt;br /&gt;
; rotate (dimen) : &amp;lt;u&amp;gt;todo&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== legend ====&lt;br /&gt;
&lt;br /&gt;
; lpos (number): Position in legend&amp;lt;br&amp;gt;Codes: -1, no show in legend; 0 automatic position; &amp;gt; 0 horizontal position.&lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]): Organize legend in ''number.1'' cols with a optional span of ''number.2''&lt;br /&gt;
&lt;br /&gt;
; interline (dimen): Set partial legend interline&lt;br /&gt;
&lt;br /&gt;
== Map paper ==&lt;br /&gt;
&lt;br /&gt;
=== paper ===&lt;br /&gt;
&lt;br /&gt;
Size of paper. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; paper [A0-6|B0-6|Legal|Ledger|Tabloid|Executive|Folio] : Type of paper (default A4).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; color (color) : Paper color.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Custom size of paper.&lt;br /&gt;
&lt;br /&gt;
; left (dimen), right (dimen), top (dimen), bottom (dimen) : Custom margins (default 0.5&amp;quot; left and right, and 1&amp;quot; top and bottom).&lt;br /&gt;
&lt;br /&gt;
; landscape yes|no : Paper orientation (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''. Set the default font of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''. Free draw as watermarks, before any feature of the map is drawn (see ''draw'').&lt;br /&gt;
&lt;br /&gt;
=== scale ===&lt;br /&gt;
&lt;br /&gt;
Scale of the map.&lt;br /&gt;
&lt;br /&gt;
Simple line command to define the scale of the map. The default is adjust map to the paper dimensions. If the remaining dimensions of the paper not permit the scale, ''ps.out'' adjust the scale to a new value that it fit in the paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scale 1&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;(number) : Scale of map.&amp;lt;br&amp;gt;For example, ''scale 1:500000'' to rescale maparea dimensions.&lt;br /&gt;
&lt;br /&gt;
=== maparea ===&lt;br /&gt;
Define specific dimensions of the map (default defined by command ''scale'')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; maparea : Define characteristics of the map area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border map.&amp;lt;br&amp;gt;Usefull with ''in'' and ''out'' formats of the ''grid'' and ''geogrid'', ignored in ''iho'' and ''can'' formats.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Border color-&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the map area.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Dimensions of the map.&lt;br /&gt;
&lt;br /&gt;
; top (dimen), bottom (dimen) : Position of the top-left corner of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''.&amp;lt;br&amp;gt;Draw onto the map but before the grid lines, vpoints and vlabels are drawn; i.e. this map elements are drawn over the draw elements.&lt;br /&gt;
&lt;br /&gt;
=== palette ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;testing&amp;lt;/U&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; palette&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; light (color text) :&lt;br /&gt;
&lt;br /&gt;
; dark (color text) :&lt;br /&gt;
&lt;br /&gt;
; wheel (number text) :&lt;br /&gt;
&lt;br /&gt;
; monochrome (color number text) :&lt;br /&gt;
&lt;br /&gt;
; complementary (color number text) :&lt;br /&gt;
&lt;br /&gt;
; analogous (color number text) :&lt;br /&gt;
&lt;br /&gt;
; gradient (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; binary (color name) :&lt;br /&gt;
&lt;br /&gt;
; sequential (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; qualitative (number text) :&lt;br /&gt;
&lt;br /&gt;
; diverging (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
== Common elements ==&lt;br /&gt;
&lt;br /&gt;
=== grid and geogrid ===&lt;br /&gt;
&lt;br /&gt;
Draw a border around the map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; grid|geogrid :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; format in|out|+out|can|iho : Type of border (see examples).&lt;br /&gt;
&lt;br /&gt;
; major (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; minor (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; subminor (number) : ''number'' of subdivisons of the minor divisions.&lt;br /&gt;
&lt;br /&gt;
; trim (number) : Cut trailing zeros.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Color of the border.&lt;br /&gt;
&lt;br /&gt;
; cross (number) : Replace lines by cross&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_iho.png|format iho&lt;br /&gt;
File:ps_out_can.png|format can&lt;br /&gt;
File:ps_out_in.png |format in&lt;br /&gt;
File:ps_out_out.png|format +out&lt;br /&gt;
File:ps_out_out1.png|typical map border&lt;br /&gt;
File:ps_out_out2.png|typical map border with ''subminor 5'' and ''fcolor blue''&lt;br /&gt;
File:ps_out_out3.png|''cross 500'', ''fcolor indigo'', ''color 200:200:200'' in '''maparea'''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== scalebar ===&lt;br /&gt;
&lt;br /&gt;
Set a scalebar on the map.&amp;lt;br&amp;gt;Maximun 5 scalebars in each map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scalebar I|s|S|f|F : Define the type of scalebar (I: inner, s/S: simple, f/F: fill).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; length (number) : Length of the scale.&lt;br /&gt;
&lt;br /&gt;
; units meters|m|kilometers|km|feet|ft|miles|mil|nautical_miles|nm ([text]) : Unit of the length and ''text' to label the units.&lt;br /&gt;
&lt;br /&gt;
; major (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; minor (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor.&lt;br /&gt;
&lt;br /&gt;
; height (dimen) : Height of the bar or ticks.&lt;br /&gt;
&lt;br /&gt;
; zero yes|no : Set position relative to zero value of the scalebar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Scalerbar styles&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;50px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_scalebar_s.png|scalebar s&lt;br /&gt;
File:ps_out_scalebar_S.png|scalebar S&lt;br /&gt;
File:ps_out_scalebar_I.png|scalebar I (uppercase i)&lt;br /&gt;
File:ps_out_scalebar_f.png|scalebar f&lt;br /&gt;
File:ps_out_scalebar_F.png|scalebar F&lt;br /&gt;
File:ps_out_scalebar_3.png|Multiple scalebars zero centered with ''zero yes''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== note ===&lt;br /&gt;
Write special text or free text on any place of the paper with frame (also ''draw'' permit write free-text in paper). &lt;br /&gt;
&lt;br /&gt;
Maximun 20 notes by map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; note &amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;file|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;maplimits|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;dimen|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;scale (text)|(text) : Type of note and text to show.&amp;lt;br&amp;gt;When free text, use '|' to break lines and '.' as first character to center line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; text (text) : Another roption to enter the same as inline note text;&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of note.&lt;br /&gt;
&lt;br /&gt;
; angle (number) : ''number'' of degrees to rotate (do not work fine).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Note keywords and free text&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_note_ml.png  |note :maplimits&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_dimen.png|note :dimen&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scale.png|note :scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_free.png|note free text|in multiple lines&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_freec.png|note .free text|.in multiple [...]&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scaler.png|note :scale scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br&amp;gt;&amp;amp;nbsp;angle 90&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== draw ===&lt;br /&gt;
&lt;br /&gt;
Simple script language to draw predefined postscript code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; draw [none|paper|maparea|free] :  &lt;br /&gt;
''paper'': before any map feature is drawn (equivalent to place inside ''paper'' block); &amp;lt;br&amp;gt;&lt;br /&gt;
''maparea'' before the last elements of the map (equivalent to place inside ''mapare'' block) ; &amp;lt;br&amp;gt;&lt;br /&gt;
''none'': draw over all elements of the map but only in the map area; and &amp;lt;br&amp;gt;&lt;br /&gt;
''free'': after all map features are drawn in any place of the paper; and ''none''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; --- : &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_north1.png   |&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;north 700000 4700000&amp;lt;/source&amp;gt;&lt;br /&gt;
File:ps_out_north2.png   |north 5cm 16.5cm -&lt;br /&gt;
File:ps_out_maplimits.png|maplimits&lt;br /&gt;
File:ps_out_compass.png  |compass 700000 4700000 10000 10.2345&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Raster maps ==&lt;br /&gt;
&lt;br /&gt;
=== raster ===&lt;br /&gt;
&lt;br /&gt;
Draw one or two raster maps on the maparea. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; raster (raster|raster.1 raster.2|raster.R raster.G raster.B|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;group) : The ''raster'' value is the raster mapname, two raster maps ''raster.1'' or color and ''raster.2'' or shade to draw as relief map, three maps ''raster.R'', ''raster.G'' and ''raster.B'' to draw as RGB, or a groupname (leader by ':') with tree RGB maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; grey yes|no : Store and draw the rasters in grey scale (small size of file).&amp;lt;br&amp;gt;The conversion follows the NTSC video standard.&lt;br /&gt;
&lt;br /&gt;
; maskcell (raster.1 [raster.2]) : Set the ''raster.1'' map to use as mask (independent of the mask set in GRASS with [[r.mask]]) and, optionally, the ''raster.2'' map uses as background.&amp;lt;br&amp;gt;The background ''raster.2'' is painted in grey scale (NTSC) and tinted with ''maskcolor''.&lt;br /&gt;
&lt;br /&gt;
; maskcolor (color|none) : Set the ''color'' of the mask area.&amp;lt;br&amp;gt;If a raster map as background is set then it's drawn with a scale white-maskcolor.&lt;br /&gt;
&lt;br /&gt;
; outline : Block ''line''. Outline of categories.&lt;br /&gt;
&lt;br /&gt;
; setcolor null|default|(number) (color) : Replace the color of the cat ''number'' area with a new color.&amp;lt;br&amp;gt;Multiple ''setcolor'' are possibles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_raster1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_outline.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;outline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width .2mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;end&amp;lt;br/&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_setcolor.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor white&amp;lt;br&amp;gt;&amp;amp;nbsp;setcolor 37 magenta&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_grey.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;grey yes&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Vector maps ==&lt;br /&gt;
&lt;br /&gt;
All vector map accept optionally the following commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; layer (number) : Layer number used with cats/where option.&lt;br /&gt;
&lt;br /&gt;
; cats (n1,n2,...) : List of ''cat''s to show.&lt;br /&gt;
&lt;br /&gt;
; where (text) : Argument of the SQL where clausule to filter the areas to show.&lt;br /&gt;
&lt;br /&gt;
; masked yes|no : Masked or not by raster mask (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; label (text) : For description or title in ''vlegend''.&lt;br /&gt;
&lt;br /&gt;
; legend [(number)]: Position in legend (-1, no legend) or enter in a block ''legend''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vareas ===&lt;br /&gt;
&lt;br /&gt;
Draw areas on the map.&amp;lt;br&amp;gt;&lt;br /&gt;
The areas always are drawn first, on the bottom of other type of maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vareas (vector) : ''vector'' is a vector of areas, except when ''lwidth'' is different to zero that ''vector'' is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type area|line : Default ''area''.&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Style of the boundary.&lt;br /&gt;
&lt;br /&gt;
; fill : Block ''fill''. Style of the area.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic fill color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Text label when default conditions.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color][|dimen] text) : Make a item of a sublegend with label the ''text'' and title the text of the ''label''.&amp;lt;br&amp;gt;The fillcolor of the areas is set to ''color'' and the line width is set to ''dimen'' when ''column.2'' &amp;gt;= n1 and ''column.2'' &amp;lt; n2  (''column.2'' from ''rgbcol'').&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; island yes|no : Draw island as normal areas (fill as normal area then hide it).&lt;br /&gt;
&lt;br /&gt;
; mirror (dimen [number]) : The line is drawn as an area with a copy of the line placed with polar coordinates: ''dimen' and ''angle''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vareas: sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vareas0.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;color indigo&lt;br /&gt;
File:ps_out_vareas4.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;color indigo&amp;lt;br&amp;gt;&amp;amp;nbsp;limit 3mm&lt;br /&gt;
File:ps_out_vareas3.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;pat patterns/diag_up.eps&lt;br /&gt;
File:ps_out_vareas1.png|rgbcol - cat&amp;lt;br&amp;gt;setrule 0-500:red A&amp;lt;br/&amp;gt;setrule 500-1000:green B&amp;lt;br/&amp;gt;setrule 1000-5000:blue C&lt;br /&gt;
File:ps_out_vareas2.png|island no&lt;br /&gt;
File:ps_out_vareas5.png|vareas roadsmajor&amp;lt;br&amp;gt;&amp;amp;nbsp;cat 24,28,32,38,53&amp;lt;br&amp;gt;&amp;amp;nbsp;mirror 5 90&amp;lt;br&amp;gt;[and fill with pat cruz.eps]&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlines ===&lt;br /&gt;
&lt;br /&gt;
Draw lines on the map.&amp;lt;br&amp;gt;The areas always are drawn second, after ''vareas'' and before ''vpoints''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlines (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of lines, except if ''type'' is boundary that ''vector'' is a vector of areas.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Optional commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type line|boundary : Draw boundaries of a vector of areas or lines of a vector of lines (default ''line'').&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Normal line.&lt;br /&gt;
&lt;br /&gt;
; hline : Block ''line''. Highlight line.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Works with ''hline'' to offset from the center of ''line''.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic line color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Label in legend when default values and ''setcolor'' rules.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with ''text'' as label and title the text of the ''label''. Also, the color of the normal line with column &amp;gt;= n1 and column &amp;lt; n2 (column from rgbcol), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlines: sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlines0.png|hline&lt;br /&gt;
File:ps_out_vlines1.png|line 0.05mm&amp;lt;br&amp;gt;setrule 100:brown|.25mm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vpoints ===&lt;br /&gt;
&lt;br /&gt;
Draw points on the map.&amp;lt;br&amp;gt;The points always are drawn last, after ''vareas'' and ''vlines''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vpoints (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of points, except when '''type''' is ''centroid'' or ''boundary'' that it is a vector of areas, or when '''type''' is ''line'' that it is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; type centroid|line|boundary|point : Type of draw (default ''point'').&lt;br /&gt;
&lt;br /&gt;
; symbol (epsfile) : Symbol to use (default: basic/circle).&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Type of line in the symbol.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color): Static fillcolor of the symbol.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Offset of the symbol.&lt;br /&gt;
&lt;br /&gt;
; rotate (number|column) : Angle to rotate the symbol, static ''number'' or dynamic in a ''column'' of the database.&lt;br /&gt;
&lt;br /&gt;
; size (number|column [number]) : Size of the symbol take from ''number'' or from a ''column'' of the database. In the last option, there is a optional ''number'' to define the static size of the symbol in the legend when the size of symbols are dynamic. &lt;br /&gt;
&lt;br /&gt;
; scale (dimen.1 [dimen.2]) : Rescale the size of the symbol by the ''dimen.1'' and, optionally, add a ''dimen.2''. i.e., ''resize = dimen.1 * size + dimen.2''.&lt;br /&gt;
&lt;br /&gt;
; setsize (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;size] text) : Variable size of symbols from data in ''column'' of database set in ''size''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands when type is line&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; dist (dimen) : Define the distance in paper between symbol over the line.&lt;br /&gt;
&lt;br /&gt;
; cline : Block ''line''. Type of line that connect symbols.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vpoints: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vpoints0.png|''Points with same size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size 5&lt;br /&gt;
File:ps_out_vpoints1.png|''Points with dynamic size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT 5&amp;lt;br&amp;gt;&amp;amp;nbsp;scale 0.01 2&lt;br /&gt;
File:ps_out_vpoints2.png|''Points with conditional size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 200-1000:3 &amp;lt; 1000&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 1000-2500:9 &amp;gt; 1000&lt;br /&gt;
File:ps_out_vpoints3.png|''Points on line ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;type line&amp;lt;br&amp;gt;&amp;amp;nbsp;dist 1cm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlabels ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;in progress&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlabels none|(vector) :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; font :&lt;br /&gt;
&lt;br /&gt;
; labelcol (column) :&lt;br /&gt;
&lt;br /&gt;
; decimals (number) :&lt;br /&gt;
&lt;br /&gt;
; circled yes|no :&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2 text)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlabels0.png|vpoints firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;[...]&amp;lt;br/n&amp;gt;end&amp;lt;br/&amp;gt;vlabels firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;labelcol PUMPERS&amp;lt;br/n&amp;gt;&amp;amp;nbsp;font&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;name Univers-Bold&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;size 10&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color yellow&amp;lt;br/n&amp;gt;&amp;amp;nbsp;end&amp;lt;br/n&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Legend of the maps ==&lt;br /&gt;
&lt;br /&gt;
=== rlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the raster map.&amp;lt;br&amp;gt;The units ''meters'' in the gradient legend is set with {{cmd|r.support}}.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; rlegend [text] : Text is the title of the legend. &lt;br /&gt;
&lt;br /&gt;
; raster (raster) : the ''raster'' map to take the data of legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commads are optionals&amp;lt;/U&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; titlefont : Block ''font'' for the legend header.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font'' for the normal text.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Width of the symbol area.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For category legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; cols (number) [(number)] : Number of columns with symbols and separation between columns (default ''1'').&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Vertical space between symbols (o to join symbols)&lt;br /&gt;
&lt;br /&gt;
; nodata yes|no : Remove category ''no data''.&lt;br /&gt;
&lt;br /&gt;
; order (n1,n2,...) : To reorder the items.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For gradient legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; height (dimen), width (dimen) : Dimension of the frame with the legend.&lt;br /&gt;
&lt;br /&gt;
; vertical yes|no : Orientation of the gradient legend (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; range (n1 n2) : Manual set of the data range for legend.&lt;br /&gt;
&lt;br /&gt;
; gradient yes|no : Forze draw gradient legend with category data.&lt;br /&gt;
&lt;br /&gt;
; tick (dimen) : Length of the ticks.&lt;br /&gt;
&lt;br /&gt;
; whiteframe (dimen) : Width of the white frame around the bar color.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;250px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_rlegend.png|rlegend Zip Codes (wake)&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster zipcodes_wake&amp;lt;br/&amp;gt;&amp;amp;nbsp;cols 2 0&amp;lt;br/&amp;gt;&amp;amp;nbsp;swidth 8mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;order 20,10,30,22,34&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend1.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;height 8cm&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend2.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;width 8cm&amp;lt;br/&amp;gt;&amp;amp;nbsp;vertical no&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the vector maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlegend [text] : Optional the title or head of the legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; title : Block ''font'' for title of legend.&lt;br /&gt;
&lt;br /&gt;
; font : Block font for normal text of legend.&lt;br /&gt;
&lt;br /&gt;
; frame : &lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]) : Distribution of the items in ''number.1'' cols. Optionaly, ''number.2'' of span between columns.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Symbol width.&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Space between lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlegend: sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_output_vlegend0.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conversion to PDF ==&lt;br /&gt;
&lt;br /&gt;
You can obtain good results with these settings:&lt;br /&gt;
  ps2pdf14 -dPDFSETTINGS=/prepress -dEmbedAllFonts=true map.ps map.pdf&lt;br /&gt;
&lt;br /&gt;
== Example for ps.output control script ==&lt;br /&gt;
&lt;br /&gt;
This is the content of a ps.output control file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
paper A4&lt;br /&gt;
 landscape y&lt;br /&gt;
end&lt;br /&gt;
maparea&lt;br /&gt;
 height 12cm&lt;br /&gt;
 border .8mm&lt;br /&gt;
 color grey&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
grid&lt;br /&gt;
 major 100000&lt;br /&gt;
  width .1mm&lt;br /&gt;
  color white&lt;br /&gt;
 end&lt;br /&gt;
 minor 50000&lt;br /&gt;
  width .1mm&lt;br /&gt;
  color white&lt;br /&gt;
  style 1&lt;br /&gt;
 end&lt;br /&gt;
 font&lt;br /&gt;
  name Univers&lt;br /&gt;
  size 6&lt;br /&gt;
  extend 1.2&lt;br /&gt;
  color black&lt;br /&gt;
 end&lt;br /&gt;
 fcolor black&lt;br /&gt;
 format +out&lt;br /&gt;
 trim 3&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
raster ortho.r ortho.g ortho.b&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: ps.map]]&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=File:Ps.out_linex_X.png&amp;diff=12822</id>
		<title>File:Ps.out linex X.png</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=File:Ps.out_linex_X.png&amp;diff=12822"/>
		<updated>2011-03-06T11:37:46Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12821</id>
		<title>Ps.output</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12821"/>
		<updated>2011-03-06T11:37:09Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: /* line */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ps.out''' try to update the standard postscript output of Grass adding new features to design borders, graticules, categorized legends, etc&lt;br /&gt;
&lt;br /&gt;
'''This is in progress and not all features are yet uploaded in ''addons''. '''&lt;br /&gt;
&lt;br /&gt;
== Command line flags ==&lt;br /&gt;
&lt;br /&gt;
'''-d ''': Draw a 1x1 cm grid on paper to help the placement of the elements of the map.&lt;br /&gt;
&lt;br /&gt;
'''-e''': Create an output file for embedding into another ''ps.out'' map&lt;br /&gt;
&lt;br /&gt;
'''-g''': Use the extended PostScript of Ghostscript (for transparent colors only)&lt;br /&gt;
&lt;br /&gt;
'''-s''': Draw the small digit in the coordinate numbers to lower instead upper position.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;100px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_grid.png|A4 paper with flag -d &lt;br /&gt;
File:ps_out_digit_upper.png|coordinate&lt;br /&gt;
File:ps_out_digit_lower.png|coordinate with flag -s&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generic Instructions ==&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== dimen ====&lt;br /&gt;
&lt;br /&gt;
Define a dimension. Accepted units are:&lt;br /&gt;
&lt;br /&gt;
*; ''unitless'' : e.g. 123. The dimension is the ''number'' by 1/72&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
*; inch : e.g. 1.2inch. &lt;br /&gt;
&lt;br /&gt;
*; milimeters : e.g. 2.3mm.&lt;br /&gt;
&lt;br /&gt;
*; centimeters : e.g. 1.4cm.&lt;br /&gt;
&lt;br /&gt;
*; percentage : e.g. 50%.&amp;lt;br&amp;gt;The position is relative to the size and position of the map in the paper being ''0%'' the left or bottom corner.&lt;br /&gt;
&lt;br /&gt;
==== color ====&lt;br /&gt;
&lt;br /&gt;
Define a color. Accepted formats are:&lt;br /&gt;
&lt;br /&gt;
*; standard GRASS name : e.g. indigo.&lt;br /&gt;
&lt;br /&gt;
*; R&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;G&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;B : e.g. 200:123:90&lt;br /&gt;
&lt;br /&gt;
*; user name : e.g. red5.&amp;lt;br&amp;gt;Defined in ''palette'' block&lt;br /&gt;
&lt;br /&gt;
All formats can add '$(0-1)' to define the opacity of the color (alpha channel); e.g., indigo$.75 or 200:120:120$.2&lt;br /&gt;
&lt;br /&gt;
==== number ====&lt;br /&gt;
&lt;br /&gt;
==== text ====&lt;br /&gt;
&lt;br /&gt;
=== Blocks of instructions ===&lt;br /&gt;
&lt;br /&gt;
A ''block'' begin with the keywords and finish with keyword ''end''&lt;br /&gt;
&lt;br /&gt;
==== font ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a font.&lt;br /&gt;
&lt;br /&gt;
; name (text) : Name of font.&lt;br /&gt;
&lt;br /&gt;
; size (dimen) : Size of font.&lt;br /&gt;
&lt;br /&gt;
; extend (dimen): Expand the width of font.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of font.&lt;br /&gt;
&lt;br /&gt;
; outline yes|no : Outline of the font.&lt;br /&gt;
&lt;br /&gt;
==== line ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a line.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of line.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of line.&lt;br /&gt;
&lt;br /&gt;
; style solid|dashed|dotted|dashdotted|(n1n2...) : Style of line.&lt;br /&gt;
&lt;br /&gt;
; cap butt|round|extended_butt : Cap&lt;br /&gt;
&lt;br /&gt;
; extended (type step voffset height width) : Extended style of line for use mainly with rects.&amp;lt;br&amp;gt; ''type'' = arrow, bar, circled_semi, double_bar, point, rombo, square, triangle, xcross, zigzag (you can use only the first char; and uppercase for filled version).&amp;lt;br&amp;gt; ''voffset'' = (dimen).&amp;lt;br&amp;gt; ''step'' = (dimen).&amp;lt;br&amp;gt; ''height'' = (dimen).&amp;lt;br&amp;gt; ''width'' = (dimen).&lt;br /&gt;
&lt;br /&gt;
; baseline (y|n) : Work with the ''extended'' option to define if the baseline is drawn.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps.out_linex_A.png|extended arrow 1mm&lt;br /&gt;
File:ps.out_linex_B.png|extended bar 1mm&lt;br /&gt;
File:ps.out_linex_C.png|extended circled_semi 1mm&lt;br /&gt;
File:ps.out_linex_D.png|extended double_bar 1mm&lt;br /&gt;
File:ps.out_linex_P.png|extended point 1mm&lt;br /&gt;
File:ps.out_linex_R.png|extended rombo 1mm&lt;br /&gt;
File:ps.out_linex_S.png|extended square 1mm&lt;br /&gt;
File:ps.out_linex_X.png|extended xcros 1mm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== fill ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a fill area.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Fill color.&lt;br /&gt;
&lt;br /&gt;
; pat (file) : Fill pattern.&lt;br /&gt;
&lt;br /&gt;
; lwidth (dimen) : Line width of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; scale (number) : Scale of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; limit (dimen) : Limit the fill to the border with a width of ''dimen''.&lt;br /&gt;
&lt;br /&gt;
==== frame ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a frame.&lt;br /&gt;
&lt;br /&gt;
; where (dimen.1 dimen.2) : Position of frame.&lt;br /&gt;
&lt;br /&gt;
; offset (number.1 number.2) : Fine x and y adjust of the position of frame.&lt;br /&gt;
&lt;br /&gt;
; ref right|left|center upper|lower|center : Position is relative to the ''ref''.&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border line&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of the border line.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the frame.&lt;br /&gt;
&lt;br /&gt;
; rotate (dimen) : &amp;lt;u&amp;gt;todo&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== legend ====&lt;br /&gt;
&lt;br /&gt;
; lpos (number): Position in legend&amp;lt;br&amp;gt;Codes: -1, no show in legend; 0 automatic position; &amp;gt; 0 horizontal position.&lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]): Organize legend in ''number.1'' cols with a optional span of ''number.2''&lt;br /&gt;
&lt;br /&gt;
; interline (dimen): Set partial legend interline&lt;br /&gt;
&lt;br /&gt;
== Map paper ==&lt;br /&gt;
&lt;br /&gt;
=== paper ===&lt;br /&gt;
&lt;br /&gt;
Size of paper. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; paper [A0-6|B0-6|Legal|Ledger|Tabloid|Executive|Folio] : Type of paper (default A4).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; color (color) : Paper color.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Custom size of paper.&lt;br /&gt;
&lt;br /&gt;
; left (dimen), right (dimen), top (dimen), bottom (dimen) : Custom margins (default 0.5&amp;quot; left and right, and 1&amp;quot; top and bottom).&lt;br /&gt;
&lt;br /&gt;
; landscape yes|no : Paper orientation (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''. Set the default font of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''. Free draw as watermarks, before any feature of the map is drawn (see ''draw'').&lt;br /&gt;
&lt;br /&gt;
=== scale ===&lt;br /&gt;
&lt;br /&gt;
Scale of the map.&lt;br /&gt;
&lt;br /&gt;
Simple line command to define the scale of the map. The default is adjust map to the paper dimensions. If the remaining dimensions of the paper not permit the scale, ''ps.out'' adjust the scale to a new value that it fit in the paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scale 1&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;(number) : Scale of map.&amp;lt;br&amp;gt;For example, ''scale 1:500000'' to rescale maparea dimensions.&lt;br /&gt;
&lt;br /&gt;
=== maparea ===&lt;br /&gt;
Define specific dimensions of the map (default defined by command ''scale'')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; maparea : Define characteristics of the map area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border map.&amp;lt;br&amp;gt;Usefull with ''in'' and ''out'' formats of the ''grid'' and ''geogrid'', ignored in ''iho'' and ''can'' formats.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Border color-&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the map area.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Dimensions of the map.&lt;br /&gt;
&lt;br /&gt;
; top (dimen), bottom (dimen) : Position of the top-left corner of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''.&amp;lt;br&amp;gt;Draw onto the map but before the grid lines, vpoints and vlabels are drawn; i.e. this map elements are drawn over the draw elements.&lt;br /&gt;
&lt;br /&gt;
=== palette ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;testing&amp;lt;/U&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; palette&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; light (color text) :&lt;br /&gt;
&lt;br /&gt;
; dark (color text) :&lt;br /&gt;
&lt;br /&gt;
; wheel (number text) :&lt;br /&gt;
&lt;br /&gt;
; monochrome (color number text) :&lt;br /&gt;
&lt;br /&gt;
; complementary (color number text) :&lt;br /&gt;
&lt;br /&gt;
; analogous (color number text) :&lt;br /&gt;
&lt;br /&gt;
; gradient (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; binary (color name) :&lt;br /&gt;
&lt;br /&gt;
; sequential (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; qualitative (number text) :&lt;br /&gt;
&lt;br /&gt;
; diverging (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
== Common elements ==&lt;br /&gt;
&lt;br /&gt;
=== grid and geogrid ===&lt;br /&gt;
&lt;br /&gt;
Draw a border around the map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; grid|geogrid :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; format in|out|+out|can|iho : Type of border (see examples).&lt;br /&gt;
&lt;br /&gt;
; major (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; minor (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; subminor (number) : ''number'' of subdivisons of the minor divisions.&lt;br /&gt;
&lt;br /&gt;
; trim (number) : Cut trailing zeros.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Color of the border.&lt;br /&gt;
&lt;br /&gt;
; cross (number) : Replace lines by cross&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_iho.png|format iho&lt;br /&gt;
File:ps_out_can.png|format can&lt;br /&gt;
File:ps_out_in.png |format in&lt;br /&gt;
File:ps_out_out.png|format +out&lt;br /&gt;
File:ps_out_out1.png|typical map border&lt;br /&gt;
File:ps_out_out2.png|typical map border with ''subminor 5'' and ''fcolor blue''&lt;br /&gt;
File:ps_out_out3.png|''cross 500'', ''fcolor indigo'', ''color 200:200:200'' in '''maparea'''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== scalebar ===&lt;br /&gt;
&lt;br /&gt;
Set a scalebar on the map.&amp;lt;br&amp;gt;Maximun 5 scalebars in each map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scalebar I|s|S|f|F : Define the type of scalebar (I: inner, s/S: simple, f/F: fill).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; length (number) : Length of the scale.&lt;br /&gt;
&lt;br /&gt;
; units meters|m|kilometers|km|feet|ft|miles|mil|nautical_miles|nm ([text]) : Unit of the length and ''text' to label the units.&lt;br /&gt;
&lt;br /&gt;
; major (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; minor (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor.&lt;br /&gt;
&lt;br /&gt;
; height (dimen) : Height of the bar or ticks.&lt;br /&gt;
&lt;br /&gt;
; zero yes|no : Set position relative to zero value of the scalebar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Scalerbar styles&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;50px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_scalebar_s.png|scalebar s&lt;br /&gt;
File:ps_out_scalebar_S.png|scalebar S&lt;br /&gt;
File:ps_out_scalebar_I.png|scalebar I (uppercase i)&lt;br /&gt;
File:ps_out_scalebar_f.png|scalebar f&lt;br /&gt;
File:ps_out_scalebar_F.png|scalebar F&lt;br /&gt;
File:ps_out_scalebar_3.png|Multiple scalebars zero centered with ''zero yes''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== note ===&lt;br /&gt;
Write special text or free text on any place of the paper with frame (also ''draw'' permit write free-text in paper). &lt;br /&gt;
&lt;br /&gt;
Maximun 20 notes by map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; note &amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;file|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;maplimits|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;dimen|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;scale (text)|(text) : Type of note and text to show.&amp;lt;br&amp;gt;When free text, use '|' to break lines and '.' as first character to center line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; text (text) : Another roption to enter the same as inline note text;&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of note.&lt;br /&gt;
&lt;br /&gt;
; angle (number) : ''number'' of degrees to rotate (do not work fine).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Note keywords and free text&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_note_ml.png  |note :maplimits&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_dimen.png|note :dimen&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scale.png|note :scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_free.png|note free text|in multiple lines&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_freec.png|note .free text|.in multiple [...]&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scaler.png|note :scale scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br&amp;gt;&amp;amp;nbsp;angle 90&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== draw ===&lt;br /&gt;
&lt;br /&gt;
Simple script language to draw predefined postscript code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; draw [none|paper|maparea|free] :  &lt;br /&gt;
''paper'': before any map feature is drawn (equivalent to place inside ''paper'' block); &amp;lt;br&amp;gt;&lt;br /&gt;
''maparea'' before the last elements of the map (equivalent to place inside ''mapare'' block) ; &amp;lt;br&amp;gt;&lt;br /&gt;
''none'': draw over all elements of the map but only in the map area; and &amp;lt;br&amp;gt;&lt;br /&gt;
''free'': after all map features are drawn in any place of the paper; and ''none''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; --- : &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_north1.png   |&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;north 700000 4700000&amp;lt;/source&amp;gt;&lt;br /&gt;
File:ps_out_north2.png   |north 5cm 16.5cm -&lt;br /&gt;
File:ps_out_maplimits.png|maplimits&lt;br /&gt;
File:ps_out_compass.png  |compass 700000 4700000 10000 10.2345&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Raster maps ==&lt;br /&gt;
&lt;br /&gt;
=== raster ===&lt;br /&gt;
&lt;br /&gt;
Draw one or two raster maps on the maparea. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; raster (raster|raster.1 raster.2|raster.R raster.G raster.B|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;group) : The ''raster'' value is the raster mapname, two raster maps ''raster.1'' or color and ''raster.2'' or shade to draw as relief map, three maps ''raster.R'', ''raster.G'' and ''raster.B'' to draw as RGB, or a groupname (leader by ':') with tree RGB maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; grey yes|no : Store and draw the rasters in grey scale (small size of file).&amp;lt;br&amp;gt;The conversion follows the NTSC video standard.&lt;br /&gt;
&lt;br /&gt;
; maskcell (raster.1 [raster.2]) : Set the ''raster.1'' map to use as mask (independent of the mask set in GRASS with [[r.mask]]) and, optionally, the ''raster.2'' map uses as background.&amp;lt;br&amp;gt;The background ''raster.2'' is painted in grey scale (NTSC) and tinted with ''maskcolor''.&lt;br /&gt;
&lt;br /&gt;
; maskcolor (color|none) : Set the ''color'' of the mask area.&amp;lt;br&amp;gt;If a raster map as background is set then it's drawn with a scale white-maskcolor.&lt;br /&gt;
&lt;br /&gt;
; outline : Block ''line''. Outline of categories.&lt;br /&gt;
&lt;br /&gt;
; setcolor null|default|(number) (color) : Replace the color of the cat ''number'' area with a new color.&amp;lt;br&amp;gt;Multiple ''setcolor'' are possibles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_raster1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_outline.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;outline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width .2mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;end&amp;lt;br/&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_setcolor.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor white&amp;lt;br&amp;gt;&amp;amp;nbsp;setcolor 37 magenta&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_grey.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;grey yes&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Vector maps ==&lt;br /&gt;
&lt;br /&gt;
All vector map accept optionally the following commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; layer (number) : Layer number used with cats/where option.&lt;br /&gt;
&lt;br /&gt;
; cats (n1,n2,...) : List of ''cat''s to show.&lt;br /&gt;
&lt;br /&gt;
; where (text) : Argument of the SQL where clausule to filter the areas to show.&lt;br /&gt;
&lt;br /&gt;
; masked yes|no : Masked or not by raster mask (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; label (text) : For description or title in ''vlegend''.&lt;br /&gt;
&lt;br /&gt;
; legend [(number)]: Position in legend (-1, no legend) or enter in a block ''legend''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vareas ===&lt;br /&gt;
&lt;br /&gt;
Draw areas on the map.&amp;lt;br&amp;gt;&lt;br /&gt;
The areas always are drawn first, on the bottom of other type of maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vareas (vector) : ''vector'' is a vector of areas, except when ''lwidth'' is different to zero that ''vector'' is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type area|line : Default ''area''.&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Style of the boundary.&lt;br /&gt;
&lt;br /&gt;
; fill : Block ''fill''. Style of the area.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic fill color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Text label when default conditions.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color][|dimen] text) : Make a item of a sublegend with label the ''text'' and title the text of the ''label''.&amp;lt;br&amp;gt;The fillcolor of the areas is set to ''color'' and the line width is set to ''dimen'' when ''column.2'' &amp;gt;= n1 and ''column.2'' &amp;lt; n2  (''column.2'' from ''rgbcol'').&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; island yes|no : Draw island as normal areas (fill as normal area then hide it).&lt;br /&gt;
&lt;br /&gt;
; mirror (dimen [number]) : The line is drawn as an area with a copy of the line placed with polar coordinates: ''dimen' and ''angle''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vareas: sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vareas0.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;color indigo&lt;br /&gt;
File:ps_out_vareas4.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;color indigo&amp;lt;br&amp;gt;&amp;amp;nbsp;limit 3mm&lt;br /&gt;
File:ps_out_vareas3.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;pat patterns/diag_up.eps&lt;br /&gt;
File:ps_out_vareas1.png|rgbcol - cat&amp;lt;br&amp;gt;setrule 0-500:red A&amp;lt;br/&amp;gt;setrule 500-1000:green B&amp;lt;br/&amp;gt;setrule 1000-5000:blue C&lt;br /&gt;
File:ps_out_vareas2.png|island no&lt;br /&gt;
File:ps_out_vareas5.png|vareas roadsmajor&amp;lt;br&amp;gt;&amp;amp;nbsp;cat 24,28,32,38,53&amp;lt;br&amp;gt;&amp;amp;nbsp;mirror 5 90&amp;lt;br&amp;gt;[and fill with pat cruz.eps]&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlines ===&lt;br /&gt;
&lt;br /&gt;
Draw lines on the map.&amp;lt;br&amp;gt;The areas always are drawn second, after ''vareas'' and before ''vpoints''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlines (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of lines, except if ''type'' is boundary that ''vector'' is a vector of areas.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Optional commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type line|boundary : Draw boundaries of a vector of areas or lines of a vector of lines (default ''line'').&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Normal line.&lt;br /&gt;
&lt;br /&gt;
; hline : Block ''line''. Highlight line.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Works with ''hline'' to offset from the center of ''line''.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic line color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Label in legend when default values and ''setcolor'' rules.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with ''text'' as label and title the text of the ''label''. Also, the color of the normal line with column &amp;gt;= n1 and column &amp;lt; n2 (column from rgbcol), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlines: sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlines0.png|hline&lt;br /&gt;
File:ps_out_vlines1.png|line 0.05mm&amp;lt;br&amp;gt;setrule 100:brown|.25mm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vpoints ===&lt;br /&gt;
&lt;br /&gt;
Draw points on the map.&amp;lt;br&amp;gt;The points always are drawn last, after ''vareas'' and ''vlines''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vpoints (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of points, except when '''type''' is ''centroid'' or ''boundary'' that it is a vector of areas, or when '''type''' is ''line'' that it is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; type centroid|line|boundary|point : Type of draw (default ''point'').&lt;br /&gt;
&lt;br /&gt;
; symbol (epsfile) : Symbol to use (default: basic/circle).&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Type of line in the symbol.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color): Static fillcolor of the symbol.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Offset of the symbol.&lt;br /&gt;
&lt;br /&gt;
; rotate (number|column) : Angle to rotate the symbol, static ''number'' or dynamic in a ''column'' of the database.&lt;br /&gt;
&lt;br /&gt;
; size (number|column [number]) : Size of the symbol take from ''number'' or from a ''column'' of the database. In the last option, there is a optional ''number'' to define the static size of the symbol in the legend when the size of symbols are dynamic. &lt;br /&gt;
&lt;br /&gt;
; scale (dimen.1 [dimen.2]) : Rescale the size of the symbol by the ''dimen.1'' and, optionally, add a ''dimen.2''. i.e., ''resize = dimen.1 * size + dimen.2''.&lt;br /&gt;
&lt;br /&gt;
; setsize (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;size] text) : Variable size of symbols from data in ''column'' of database set in ''size''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands when type is line&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; dist (dimen) : Define the distance in paper between symbol over the line.&lt;br /&gt;
&lt;br /&gt;
; cline : Block ''line''. Type of line that connect symbols.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vpoints: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vpoints0.png|''Points with same size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size 5&lt;br /&gt;
File:ps_out_vpoints1.png|''Points with dynamic size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT 5&amp;lt;br&amp;gt;&amp;amp;nbsp;scale 0.01 2&lt;br /&gt;
File:ps_out_vpoints2.png|''Points with conditional size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 200-1000:3 &amp;lt; 1000&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 1000-2500:9 &amp;gt; 1000&lt;br /&gt;
File:ps_out_vpoints3.png|''Points on line ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;type line&amp;lt;br&amp;gt;&amp;amp;nbsp;dist 1cm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlabels ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;in progress&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlabels none|(vector) :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; font :&lt;br /&gt;
&lt;br /&gt;
; labelcol (column) :&lt;br /&gt;
&lt;br /&gt;
; decimals (number) :&lt;br /&gt;
&lt;br /&gt;
; circled yes|no :&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2 text)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlabels0.png|vpoints firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;[...]&amp;lt;br/n&amp;gt;end&amp;lt;br/&amp;gt;vlabels firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;labelcol PUMPERS&amp;lt;br/n&amp;gt;&amp;amp;nbsp;font&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;name Univers-Bold&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;size 10&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color yellow&amp;lt;br/n&amp;gt;&amp;amp;nbsp;end&amp;lt;br/n&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Legend of the maps ==&lt;br /&gt;
&lt;br /&gt;
=== rlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the raster map.&amp;lt;br&amp;gt;The units ''meters'' in the gradient legend is set with {{cmd|r.support}}.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; rlegend [text] : Text is the title of the legend. &lt;br /&gt;
&lt;br /&gt;
; raster (raster) : the ''raster'' map to take the data of legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commads are optionals&amp;lt;/U&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; titlefont : Block ''font'' for the legend header.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font'' for the normal text.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Width of the symbol area.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For category legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; cols (number) [(number)] : Number of columns with symbols and separation between columns (default ''1'').&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Vertical space between symbols (o to join symbols)&lt;br /&gt;
&lt;br /&gt;
; nodata yes|no : Remove category ''no data''.&lt;br /&gt;
&lt;br /&gt;
; order (n1,n2,...) : To reorder the items.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For gradient legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; height (dimen), width (dimen) : Dimension of the frame with the legend.&lt;br /&gt;
&lt;br /&gt;
; vertical yes|no : Orientation of the gradient legend (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; range (n1 n2) : Manual set of the data range for legend.&lt;br /&gt;
&lt;br /&gt;
; gradient yes|no : Forze draw gradient legend with category data.&lt;br /&gt;
&lt;br /&gt;
; tick (dimen) : Length of the ticks.&lt;br /&gt;
&lt;br /&gt;
; whiteframe (dimen) : Width of the white frame around the bar color.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;250px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_rlegend.png|rlegend Zip Codes (wake)&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster zipcodes_wake&amp;lt;br/&amp;gt;&amp;amp;nbsp;cols 2 0&amp;lt;br/&amp;gt;&amp;amp;nbsp;swidth 8mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;order 20,10,30,22,34&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend1.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;height 8cm&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend2.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;width 8cm&amp;lt;br/&amp;gt;&amp;amp;nbsp;vertical no&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the vector maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlegend [text] : Optional the title or head of the legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; title : Block ''font'' for title of legend.&lt;br /&gt;
&lt;br /&gt;
; font : Block font for normal text of legend.&lt;br /&gt;
&lt;br /&gt;
; frame : &lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]) : Distribution of the items in ''number.1'' cols. Optionaly, ''number.2'' of span between columns.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Symbol width.&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Space between lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlegend: sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_output_vlegend0.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conversion to PDF ==&lt;br /&gt;
&lt;br /&gt;
You can obtain good results with these settings:&lt;br /&gt;
  ps2pdf14 -dPDFSETTINGS=/prepress -dEmbedAllFonts=true map.ps map.pdf&lt;br /&gt;
&lt;br /&gt;
== Example for ps.output control script ==&lt;br /&gt;
&lt;br /&gt;
This is the content of a ps.output control file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
paper A4&lt;br /&gt;
 landscape y&lt;br /&gt;
end&lt;br /&gt;
maparea&lt;br /&gt;
 height 12cm&lt;br /&gt;
 border .8mm&lt;br /&gt;
 color grey&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
grid&lt;br /&gt;
 major 100000&lt;br /&gt;
  width .1mm&lt;br /&gt;
  color white&lt;br /&gt;
 end&lt;br /&gt;
 minor 50000&lt;br /&gt;
  width .1mm&lt;br /&gt;
  color white&lt;br /&gt;
  style 1&lt;br /&gt;
 end&lt;br /&gt;
 font&lt;br /&gt;
  name Univers&lt;br /&gt;
  size 6&lt;br /&gt;
  extend 1.2&lt;br /&gt;
  color black&lt;br /&gt;
 end&lt;br /&gt;
 fcolor black&lt;br /&gt;
 format +out&lt;br /&gt;
 trim 3&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
raster ortho.r ortho.g ortho.b&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: ps.map]]&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12820</id>
		<title>Ps.output</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12820"/>
		<updated>2011-03-06T11:35:57Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: /* line */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ps.out''' try to update the standard postscript output of Grass adding new features to design borders, graticules, categorized legends, etc&lt;br /&gt;
&lt;br /&gt;
'''This is in progress and not all features are yet uploaded in ''addons''. '''&lt;br /&gt;
&lt;br /&gt;
== Command line flags ==&lt;br /&gt;
&lt;br /&gt;
'''-d ''': Draw a 1x1 cm grid on paper to help the placement of the elements of the map.&lt;br /&gt;
&lt;br /&gt;
'''-e''': Create an output file for embedding into another ''ps.out'' map&lt;br /&gt;
&lt;br /&gt;
'''-g''': Use the extended PostScript of Ghostscript (for transparent colors only)&lt;br /&gt;
&lt;br /&gt;
'''-s''': Draw the small digit in the coordinate numbers to lower instead upper position.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;100px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_grid.png|A4 paper with flag -d &lt;br /&gt;
File:ps_out_digit_upper.png|coordinate&lt;br /&gt;
File:ps_out_digit_lower.png|coordinate with flag -s&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generic Instructions ==&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== dimen ====&lt;br /&gt;
&lt;br /&gt;
Define a dimension. Accepted units are:&lt;br /&gt;
&lt;br /&gt;
*; ''unitless'' : e.g. 123. The dimension is the ''number'' by 1/72&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
*; inch : e.g. 1.2inch. &lt;br /&gt;
&lt;br /&gt;
*; milimeters : e.g. 2.3mm.&lt;br /&gt;
&lt;br /&gt;
*; centimeters : e.g. 1.4cm.&lt;br /&gt;
&lt;br /&gt;
*; percentage : e.g. 50%.&amp;lt;br&amp;gt;The position is relative to the size and position of the map in the paper being ''0%'' the left or bottom corner.&lt;br /&gt;
&lt;br /&gt;
==== color ====&lt;br /&gt;
&lt;br /&gt;
Define a color. Accepted formats are:&lt;br /&gt;
&lt;br /&gt;
*; standard GRASS name : e.g. indigo.&lt;br /&gt;
&lt;br /&gt;
*; R&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;G&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;B : e.g. 200:123:90&lt;br /&gt;
&lt;br /&gt;
*; user name : e.g. red5.&amp;lt;br&amp;gt;Defined in ''palette'' block&lt;br /&gt;
&lt;br /&gt;
All formats can add '$(0-1)' to define the opacity of the color (alpha channel); e.g., indigo$.75 or 200:120:120$.2&lt;br /&gt;
&lt;br /&gt;
==== number ====&lt;br /&gt;
&lt;br /&gt;
==== text ====&lt;br /&gt;
&lt;br /&gt;
=== Blocks of instructions ===&lt;br /&gt;
&lt;br /&gt;
A ''block'' begin with the keywords and finish with keyword ''end''&lt;br /&gt;
&lt;br /&gt;
==== font ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a font.&lt;br /&gt;
&lt;br /&gt;
; name (text) : Name of font.&lt;br /&gt;
&lt;br /&gt;
; size (dimen) : Size of font.&lt;br /&gt;
&lt;br /&gt;
; extend (dimen): Expand the width of font.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of font.&lt;br /&gt;
&lt;br /&gt;
; outline yes|no : Outline of the font.&lt;br /&gt;
&lt;br /&gt;
==== line ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a line.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of line.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of line.&lt;br /&gt;
&lt;br /&gt;
; style solid|dashed|dotted|dashdotted|(n1n2...) : Style of line.&lt;br /&gt;
&lt;br /&gt;
; cap butt|round|extended_butt : Cap&lt;br /&gt;
&lt;br /&gt;
; extended (type step voffset height width) : Extended style of line for use mainly with rects.&amp;lt;br&amp;gt; ''type'' = arrow, bar, circled_semi, double_bar, point, rombo, square, triangle, xcross, zigzag (you can use only the first char; and uppercase for filled version).&amp;lt;br&amp;gt; ''voffset'' = (dimen).&amp;lt;br&amp;gt; ''step'' = (dimen).&amp;lt;br&amp;gt; ''height'' = (dimen).&amp;lt;br&amp;gt; ''width'' = (dimen).&lt;br /&gt;
&lt;br /&gt;
; baseline (y|n) : Work with the ''extended'' option to define if the baseline is drawn.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;100px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps.out_linex_A.png|extended arrow 1mm&lt;br /&gt;
File:ps.out_linex_B.png|extended arrow 1mm&lt;br /&gt;
File:ps.out_linex_C.png|extended arrow 1mm&lt;br /&gt;
File:ps.out_linex_D.png|extended arrow 1mm&lt;br /&gt;
File:ps.out_linex_P.png|extended arrow 1mm&lt;br /&gt;
File:ps.out_linex_R.png|extended arrow 1mm&lt;br /&gt;
File:ps.out_linex_S.png|extended arrow 1mm&lt;br /&gt;
File:ps.out_linex_X.png|extended arrow 1mm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== fill ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a fill area.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Fill color.&lt;br /&gt;
&lt;br /&gt;
; pat (file) : Fill pattern.&lt;br /&gt;
&lt;br /&gt;
; lwidth (dimen) : Line width of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; scale (number) : Scale of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; limit (dimen) : Limit the fill to the border with a width of ''dimen''.&lt;br /&gt;
&lt;br /&gt;
==== frame ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a frame.&lt;br /&gt;
&lt;br /&gt;
; where (dimen.1 dimen.2) : Position of frame.&lt;br /&gt;
&lt;br /&gt;
; offset (number.1 number.2) : Fine x and y adjust of the position of frame.&lt;br /&gt;
&lt;br /&gt;
; ref right|left|center upper|lower|center : Position is relative to the ''ref''.&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border line&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of the border line.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the frame.&lt;br /&gt;
&lt;br /&gt;
; rotate (dimen) : &amp;lt;u&amp;gt;todo&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== legend ====&lt;br /&gt;
&lt;br /&gt;
; lpos (number): Position in legend&amp;lt;br&amp;gt;Codes: -1, no show in legend; 0 automatic position; &amp;gt; 0 horizontal position.&lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]): Organize legend in ''number.1'' cols with a optional span of ''number.2''&lt;br /&gt;
&lt;br /&gt;
; interline (dimen): Set partial legend interline&lt;br /&gt;
&lt;br /&gt;
== Map paper ==&lt;br /&gt;
&lt;br /&gt;
=== paper ===&lt;br /&gt;
&lt;br /&gt;
Size of paper. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; paper [A0-6|B0-6|Legal|Ledger|Tabloid|Executive|Folio] : Type of paper (default A4).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; color (color) : Paper color.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Custom size of paper.&lt;br /&gt;
&lt;br /&gt;
; left (dimen), right (dimen), top (dimen), bottom (dimen) : Custom margins (default 0.5&amp;quot; left and right, and 1&amp;quot; top and bottom).&lt;br /&gt;
&lt;br /&gt;
; landscape yes|no : Paper orientation (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''. Set the default font of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''. Free draw as watermarks, before any feature of the map is drawn (see ''draw'').&lt;br /&gt;
&lt;br /&gt;
=== scale ===&lt;br /&gt;
&lt;br /&gt;
Scale of the map.&lt;br /&gt;
&lt;br /&gt;
Simple line command to define the scale of the map. The default is adjust map to the paper dimensions. If the remaining dimensions of the paper not permit the scale, ''ps.out'' adjust the scale to a new value that it fit in the paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scale 1&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;(number) : Scale of map.&amp;lt;br&amp;gt;For example, ''scale 1:500000'' to rescale maparea dimensions.&lt;br /&gt;
&lt;br /&gt;
=== maparea ===&lt;br /&gt;
Define specific dimensions of the map (default defined by command ''scale'')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; maparea : Define characteristics of the map area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border map.&amp;lt;br&amp;gt;Usefull with ''in'' and ''out'' formats of the ''grid'' and ''geogrid'', ignored in ''iho'' and ''can'' formats.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Border color-&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the map area.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Dimensions of the map.&lt;br /&gt;
&lt;br /&gt;
; top (dimen), bottom (dimen) : Position of the top-left corner of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''.&amp;lt;br&amp;gt;Draw onto the map but before the grid lines, vpoints and vlabels are drawn; i.e. this map elements are drawn over the draw elements.&lt;br /&gt;
&lt;br /&gt;
=== palette ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;testing&amp;lt;/U&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; palette&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; light (color text) :&lt;br /&gt;
&lt;br /&gt;
; dark (color text) :&lt;br /&gt;
&lt;br /&gt;
; wheel (number text) :&lt;br /&gt;
&lt;br /&gt;
; monochrome (color number text) :&lt;br /&gt;
&lt;br /&gt;
; complementary (color number text) :&lt;br /&gt;
&lt;br /&gt;
; analogous (color number text) :&lt;br /&gt;
&lt;br /&gt;
; gradient (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; binary (color name) :&lt;br /&gt;
&lt;br /&gt;
; sequential (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; qualitative (number text) :&lt;br /&gt;
&lt;br /&gt;
; diverging (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
== Common elements ==&lt;br /&gt;
&lt;br /&gt;
=== grid and geogrid ===&lt;br /&gt;
&lt;br /&gt;
Draw a border around the map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; grid|geogrid :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; format in|out|+out|can|iho : Type of border (see examples).&lt;br /&gt;
&lt;br /&gt;
; major (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; minor (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; subminor (number) : ''number'' of subdivisons of the minor divisions.&lt;br /&gt;
&lt;br /&gt;
; trim (number) : Cut trailing zeros.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Color of the border.&lt;br /&gt;
&lt;br /&gt;
; cross (number) : Replace lines by cross&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_iho.png|format iho&lt;br /&gt;
File:ps_out_can.png|format can&lt;br /&gt;
File:ps_out_in.png |format in&lt;br /&gt;
File:ps_out_out.png|format +out&lt;br /&gt;
File:ps_out_out1.png|typical map border&lt;br /&gt;
File:ps_out_out2.png|typical map border with ''subminor 5'' and ''fcolor blue''&lt;br /&gt;
File:ps_out_out3.png|''cross 500'', ''fcolor indigo'', ''color 200:200:200'' in '''maparea'''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== scalebar ===&lt;br /&gt;
&lt;br /&gt;
Set a scalebar on the map.&amp;lt;br&amp;gt;Maximun 5 scalebars in each map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scalebar I|s|S|f|F : Define the type of scalebar (I: inner, s/S: simple, f/F: fill).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; length (number) : Length of the scale.&lt;br /&gt;
&lt;br /&gt;
; units meters|m|kilometers|km|feet|ft|miles|mil|nautical_miles|nm ([text]) : Unit of the length and ''text' to label the units.&lt;br /&gt;
&lt;br /&gt;
; major (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; minor (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor.&lt;br /&gt;
&lt;br /&gt;
; height (dimen) : Height of the bar or ticks.&lt;br /&gt;
&lt;br /&gt;
; zero yes|no : Set position relative to zero value of the scalebar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Scalerbar styles&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;50px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_scalebar_s.png|scalebar s&lt;br /&gt;
File:ps_out_scalebar_S.png|scalebar S&lt;br /&gt;
File:ps_out_scalebar_I.png|scalebar I (uppercase i)&lt;br /&gt;
File:ps_out_scalebar_f.png|scalebar f&lt;br /&gt;
File:ps_out_scalebar_F.png|scalebar F&lt;br /&gt;
File:ps_out_scalebar_3.png|Multiple scalebars zero centered with ''zero yes''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== note ===&lt;br /&gt;
Write special text or free text on any place of the paper with frame (also ''draw'' permit write free-text in paper). &lt;br /&gt;
&lt;br /&gt;
Maximun 20 notes by map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; note &amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;file|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;maplimits|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;dimen|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;scale (text)|(text) : Type of note and text to show.&amp;lt;br&amp;gt;When free text, use '|' to break lines and '.' as first character to center line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; text (text) : Another roption to enter the same as inline note text;&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of note.&lt;br /&gt;
&lt;br /&gt;
; angle (number) : ''number'' of degrees to rotate (do not work fine).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Note keywords and free text&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_note_ml.png  |note :maplimits&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_dimen.png|note :dimen&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scale.png|note :scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_free.png|note free text|in multiple lines&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_freec.png|note .free text|.in multiple [...]&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scaler.png|note :scale scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br&amp;gt;&amp;amp;nbsp;angle 90&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== draw ===&lt;br /&gt;
&lt;br /&gt;
Simple script language to draw predefined postscript code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; draw [none|paper|maparea|free] :  &lt;br /&gt;
''paper'': before any map feature is drawn (equivalent to place inside ''paper'' block); &amp;lt;br&amp;gt;&lt;br /&gt;
''maparea'' before the last elements of the map (equivalent to place inside ''mapare'' block) ; &amp;lt;br&amp;gt;&lt;br /&gt;
''none'': draw over all elements of the map but only in the map area; and &amp;lt;br&amp;gt;&lt;br /&gt;
''free'': after all map features are drawn in any place of the paper; and ''none''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; --- : &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_north1.png   |&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;north 700000 4700000&amp;lt;/source&amp;gt;&lt;br /&gt;
File:ps_out_north2.png   |north 5cm 16.5cm -&lt;br /&gt;
File:ps_out_maplimits.png|maplimits&lt;br /&gt;
File:ps_out_compass.png  |compass 700000 4700000 10000 10.2345&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Raster maps ==&lt;br /&gt;
&lt;br /&gt;
=== raster ===&lt;br /&gt;
&lt;br /&gt;
Draw one or two raster maps on the maparea. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; raster (raster|raster.1 raster.2|raster.R raster.G raster.B|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;group) : The ''raster'' value is the raster mapname, two raster maps ''raster.1'' or color and ''raster.2'' or shade to draw as relief map, three maps ''raster.R'', ''raster.G'' and ''raster.B'' to draw as RGB, or a groupname (leader by ':') with tree RGB maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; grey yes|no : Store and draw the rasters in grey scale (small size of file).&amp;lt;br&amp;gt;The conversion follows the NTSC video standard.&lt;br /&gt;
&lt;br /&gt;
; maskcell (raster.1 [raster.2]) : Set the ''raster.1'' map to use as mask (independent of the mask set in GRASS with [[r.mask]]) and, optionally, the ''raster.2'' map uses as background.&amp;lt;br&amp;gt;The background ''raster.2'' is painted in grey scale (NTSC) and tinted with ''maskcolor''.&lt;br /&gt;
&lt;br /&gt;
; maskcolor (color|none) : Set the ''color'' of the mask area.&amp;lt;br&amp;gt;If a raster map as background is set then it's drawn with a scale white-maskcolor.&lt;br /&gt;
&lt;br /&gt;
; outline : Block ''line''. Outline of categories.&lt;br /&gt;
&lt;br /&gt;
; setcolor null|default|(number) (color) : Replace the color of the cat ''number'' area with a new color.&amp;lt;br&amp;gt;Multiple ''setcolor'' are possibles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_raster1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_outline.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;outline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width .2mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;end&amp;lt;br/&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_setcolor.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor white&amp;lt;br&amp;gt;&amp;amp;nbsp;setcolor 37 magenta&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_grey.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;grey yes&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Vector maps ==&lt;br /&gt;
&lt;br /&gt;
All vector map accept optionally the following commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; layer (number) : Layer number used with cats/where option.&lt;br /&gt;
&lt;br /&gt;
; cats (n1,n2,...) : List of ''cat''s to show.&lt;br /&gt;
&lt;br /&gt;
; where (text) : Argument of the SQL where clausule to filter the areas to show.&lt;br /&gt;
&lt;br /&gt;
; masked yes|no : Masked or not by raster mask (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; label (text) : For description or title in ''vlegend''.&lt;br /&gt;
&lt;br /&gt;
; legend [(number)]: Position in legend (-1, no legend) or enter in a block ''legend''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vareas ===&lt;br /&gt;
&lt;br /&gt;
Draw areas on the map.&amp;lt;br&amp;gt;&lt;br /&gt;
The areas always are drawn first, on the bottom of other type of maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vareas (vector) : ''vector'' is a vector of areas, except when ''lwidth'' is different to zero that ''vector'' is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type area|line : Default ''area''.&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Style of the boundary.&lt;br /&gt;
&lt;br /&gt;
; fill : Block ''fill''. Style of the area.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic fill color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Text label when default conditions.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color][|dimen] text) : Make a item of a sublegend with label the ''text'' and title the text of the ''label''.&amp;lt;br&amp;gt;The fillcolor of the areas is set to ''color'' and the line width is set to ''dimen'' when ''column.2'' &amp;gt;= n1 and ''column.2'' &amp;lt; n2  (''column.2'' from ''rgbcol'').&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; island yes|no : Draw island as normal areas (fill as normal area then hide it).&lt;br /&gt;
&lt;br /&gt;
; mirror (dimen [number]) : The line is drawn as an area with a copy of the line placed with polar coordinates: ''dimen' and ''angle''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vareas: sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vareas0.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;color indigo&lt;br /&gt;
File:ps_out_vareas4.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;color indigo&amp;lt;br&amp;gt;&amp;amp;nbsp;limit 3mm&lt;br /&gt;
File:ps_out_vareas3.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;pat patterns/diag_up.eps&lt;br /&gt;
File:ps_out_vareas1.png|rgbcol - cat&amp;lt;br&amp;gt;setrule 0-500:red A&amp;lt;br/&amp;gt;setrule 500-1000:green B&amp;lt;br/&amp;gt;setrule 1000-5000:blue C&lt;br /&gt;
File:ps_out_vareas2.png|island no&lt;br /&gt;
File:ps_out_vareas5.png|vareas roadsmajor&amp;lt;br&amp;gt;&amp;amp;nbsp;cat 24,28,32,38,53&amp;lt;br&amp;gt;&amp;amp;nbsp;mirror 5 90&amp;lt;br&amp;gt;[and fill with pat cruz.eps]&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlines ===&lt;br /&gt;
&lt;br /&gt;
Draw lines on the map.&amp;lt;br&amp;gt;The areas always are drawn second, after ''vareas'' and before ''vpoints''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlines (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of lines, except if ''type'' is boundary that ''vector'' is a vector of areas.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Optional commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type line|boundary : Draw boundaries of a vector of areas or lines of a vector of lines (default ''line'').&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Normal line.&lt;br /&gt;
&lt;br /&gt;
; hline : Block ''line''. Highlight line.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Works with ''hline'' to offset from the center of ''line''.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic line color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Label in legend when default values and ''setcolor'' rules.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with ''text'' as label and title the text of the ''label''. Also, the color of the normal line with column &amp;gt;= n1 and column &amp;lt; n2 (column from rgbcol), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlines: sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlines0.png|hline&lt;br /&gt;
File:ps_out_vlines1.png|line 0.05mm&amp;lt;br&amp;gt;setrule 100:brown|.25mm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vpoints ===&lt;br /&gt;
&lt;br /&gt;
Draw points on the map.&amp;lt;br&amp;gt;The points always are drawn last, after ''vareas'' and ''vlines''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vpoints (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of points, except when '''type''' is ''centroid'' or ''boundary'' that it is a vector of areas, or when '''type''' is ''line'' that it is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; type centroid|line|boundary|point : Type of draw (default ''point'').&lt;br /&gt;
&lt;br /&gt;
; symbol (epsfile) : Symbol to use (default: basic/circle).&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Type of line in the symbol.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color): Static fillcolor of the symbol.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Offset of the symbol.&lt;br /&gt;
&lt;br /&gt;
; rotate (number|column) : Angle to rotate the symbol, static ''number'' or dynamic in a ''column'' of the database.&lt;br /&gt;
&lt;br /&gt;
; size (number|column [number]) : Size of the symbol take from ''number'' or from a ''column'' of the database. In the last option, there is a optional ''number'' to define the static size of the symbol in the legend when the size of symbols are dynamic. &lt;br /&gt;
&lt;br /&gt;
; scale (dimen.1 [dimen.2]) : Rescale the size of the symbol by the ''dimen.1'' and, optionally, add a ''dimen.2''. i.e., ''resize = dimen.1 * size + dimen.2''.&lt;br /&gt;
&lt;br /&gt;
; setsize (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;size] text) : Variable size of symbols from data in ''column'' of database set in ''size''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands when type is line&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; dist (dimen) : Define the distance in paper between symbol over the line.&lt;br /&gt;
&lt;br /&gt;
; cline : Block ''line''. Type of line that connect symbols.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vpoints: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vpoints0.png|''Points with same size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size 5&lt;br /&gt;
File:ps_out_vpoints1.png|''Points with dynamic size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT 5&amp;lt;br&amp;gt;&amp;amp;nbsp;scale 0.01 2&lt;br /&gt;
File:ps_out_vpoints2.png|''Points with conditional size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 200-1000:3 &amp;lt; 1000&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 1000-2500:9 &amp;gt; 1000&lt;br /&gt;
File:ps_out_vpoints3.png|''Points on line ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;type line&amp;lt;br&amp;gt;&amp;amp;nbsp;dist 1cm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlabels ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;in progress&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlabels none|(vector) :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; font :&lt;br /&gt;
&lt;br /&gt;
; labelcol (column) :&lt;br /&gt;
&lt;br /&gt;
; decimals (number) :&lt;br /&gt;
&lt;br /&gt;
; circled yes|no :&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2 text)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlabels0.png|vpoints firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;[...]&amp;lt;br/n&amp;gt;end&amp;lt;br/&amp;gt;vlabels firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;labelcol PUMPERS&amp;lt;br/n&amp;gt;&amp;amp;nbsp;font&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;name Univers-Bold&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;size 10&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color yellow&amp;lt;br/n&amp;gt;&amp;amp;nbsp;end&amp;lt;br/n&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Legend of the maps ==&lt;br /&gt;
&lt;br /&gt;
=== rlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the raster map.&amp;lt;br&amp;gt;The units ''meters'' in the gradient legend is set with {{cmd|r.support}}.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; rlegend [text] : Text is the title of the legend. &lt;br /&gt;
&lt;br /&gt;
; raster (raster) : the ''raster'' map to take the data of legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commads are optionals&amp;lt;/U&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; titlefont : Block ''font'' for the legend header.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font'' for the normal text.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Width of the symbol area.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For category legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; cols (number) [(number)] : Number of columns with symbols and separation between columns (default ''1'').&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Vertical space between symbols (o to join symbols)&lt;br /&gt;
&lt;br /&gt;
; nodata yes|no : Remove category ''no data''.&lt;br /&gt;
&lt;br /&gt;
; order (n1,n2,...) : To reorder the items.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For gradient legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; height (dimen), width (dimen) : Dimension of the frame with the legend.&lt;br /&gt;
&lt;br /&gt;
; vertical yes|no : Orientation of the gradient legend (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; range (n1 n2) : Manual set of the data range for legend.&lt;br /&gt;
&lt;br /&gt;
; gradient yes|no : Forze draw gradient legend with category data.&lt;br /&gt;
&lt;br /&gt;
; tick (dimen) : Length of the ticks.&lt;br /&gt;
&lt;br /&gt;
; whiteframe (dimen) : Width of the white frame around the bar color.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;250px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_rlegend.png|rlegend Zip Codes (wake)&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster zipcodes_wake&amp;lt;br/&amp;gt;&amp;amp;nbsp;cols 2 0&amp;lt;br/&amp;gt;&amp;amp;nbsp;swidth 8mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;order 20,10,30,22,34&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend1.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;height 8cm&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend2.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;width 8cm&amp;lt;br/&amp;gt;&amp;amp;nbsp;vertical no&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the vector maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlegend [text] : Optional the title or head of the legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; title : Block ''font'' for title of legend.&lt;br /&gt;
&lt;br /&gt;
; font : Block font for normal text of legend.&lt;br /&gt;
&lt;br /&gt;
; frame : &lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]) : Distribution of the items in ''number.1'' cols. Optionaly, ''number.2'' of span between columns.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Symbol width.&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Space between lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlegend: sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_output_vlegend0.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conversion to PDF ==&lt;br /&gt;
&lt;br /&gt;
You can obtain good results with these settings:&lt;br /&gt;
  ps2pdf14 -dPDFSETTINGS=/prepress -dEmbedAllFonts=true map.ps map.pdf&lt;br /&gt;
&lt;br /&gt;
== Example for ps.output control script ==&lt;br /&gt;
&lt;br /&gt;
This is the content of a ps.output control file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
paper A4&lt;br /&gt;
 landscape y&lt;br /&gt;
end&lt;br /&gt;
maparea&lt;br /&gt;
 height 12cm&lt;br /&gt;
 border .8mm&lt;br /&gt;
 color grey&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
grid&lt;br /&gt;
 major 100000&lt;br /&gt;
  width .1mm&lt;br /&gt;
  color white&lt;br /&gt;
 end&lt;br /&gt;
 minor 50000&lt;br /&gt;
  width .1mm&lt;br /&gt;
  color white&lt;br /&gt;
  style 1&lt;br /&gt;
 end&lt;br /&gt;
 font&lt;br /&gt;
  name Univers&lt;br /&gt;
  size 6&lt;br /&gt;
  extend 1.2&lt;br /&gt;
  color black&lt;br /&gt;
 end&lt;br /&gt;
 fcolor black&lt;br /&gt;
 format +out&lt;br /&gt;
 trim 3&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
raster ortho.r ortho.g ortho.b&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: ps.map]]&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=File:Ps.out_linex_S.png&amp;diff=12817</id>
		<title>File:Ps.out linex S.png</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=File:Ps.out_linex_S.png&amp;diff=12817"/>
		<updated>2011-03-06T11:15:20Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: Extended line S&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Extended line S&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=File:Ps.out_linex_R.png&amp;diff=12816</id>
		<title>File:Ps.out linex R.png</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=File:Ps.out_linex_R.png&amp;diff=12816"/>
		<updated>2011-03-06T11:14:49Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: Extended line R&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Extended line R&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=File:Ps.out_linex_P.png&amp;diff=12814</id>
		<title>File:Ps.out linex P.png</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=File:Ps.out_linex_P.png&amp;diff=12814"/>
		<updated>2011-03-06T11:14:27Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: Extended line P&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Extended line P&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=File:Ps.out_linex_D.png&amp;diff=12813</id>
		<title>File:Ps.out linex D.png</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=File:Ps.out_linex_D.png&amp;diff=12813"/>
		<updated>2011-03-06T11:14:02Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: Extended line D&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Extended line D&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=File:Ps.out_linex_C.png&amp;diff=12812</id>
		<title>File:Ps.out linex C.png</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=File:Ps.out_linex_C.png&amp;diff=12812"/>
		<updated>2011-03-06T11:13:27Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: Extended line C&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Extended line C&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=File:Ps.out_linex_B.png&amp;diff=12811</id>
		<title>File:Ps.out linex B.png</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=File:Ps.out_linex_B.png&amp;diff=12811"/>
		<updated>2011-03-06T11:13:06Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: Extended line B&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Extended line B&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=File:Ps.out_linex_A.png&amp;diff=12810</id>
		<title>File:Ps.out linex A.png</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=File:Ps.out_linex_A.png&amp;diff=12810"/>
		<updated>2011-03-06T11:12:24Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: Extended line&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Extended line&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12319</id>
		<title>Ps.output</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12319"/>
		<updated>2011-01-14T18:27:16Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: /* line */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ps.out''' try to update the standard postscript output of Grass adding new features to design borders, graticules, categorized legends, etc&lt;br /&gt;
&lt;br /&gt;
'''This is in progress and not all features are yet uploaded in ''addons''. '''&lt;br /&gt;
&lt;br /&gt;
== Command line flags ==&lt;br /&gt;
&lt;br /&gt;
'''-d ''': Draw a 1x1 cm grid on paper to help the placement of the elements of the map.&lt;br /&gt;
&lt;br /&gt;
'''-e''': Create an output file for embedding into another ''ps.out'' map&lt;br /&gt;
&lt;br /&gt;
'''-g''': Use the extended PostScript of Ghostscript (for transparent colors only)&lt;br /&gt;
&lt;br /&gt;
'''-s''': Draw the small digit in the coordinate numbers to lower instead upper position.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;100px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_grid.png|A4 paper with flag -d &lt;br /&gt;
File:ps_out_digit_upper.png|coordinate&lt;br /&gt;
File:ps_out_digit_lower.png|coordinate with flag -s&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generic Instructions ==&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== dimen ====&lt;br /&gt;
&lt;br /&gt;
Define a dimension. Accepted units are:&lt;br /&gt;
&lt;br /&gt;
*; ''unitless'' : e.g. 123. The dimension is the ''number'' by 1/72&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
*; inch : e.g. 1.2inch. &lt;br /&gt;
&lt;br /&gt;
*; milimeters : e.g. 2.3mm.&lt;br /&gt;
&lt;br /&gt;
*; centimeters : e.g. 1.4cm.&lt;br /&gt;
&lt;br /&gt;
*; percentage : e.g. 50%.&amp;lt;br&amp;gt;The position is relative to the size and position of the map in the paper being ''0%'' the left or bottom corner.&lt;br /&gt;
&lt;br /&gt;
==== color ====&lt;br /&gt;
&lt;br /&gt;
Define a color. Accepted formats are:&lt;br /&gt;
&lt;br /&gt;
*; standard GRASS name : e.g. indigo.&lt;br /&gt;
&lt;br /&gt;
*; R&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;G&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;B : e.g. 200:123:90&lt;br /&gt;
&lt;br /&gt;
*; user name : e.g. red5.&amp;lt;br&amp;gt;Defined in ''palette'' block&lt;br /&gt;
&lt;br /&gt;
All formats can add '$(0-1)' to define the opacity of the color (alpha channel); e.g., indigo$.75 or 200:120:120$.2&lt;br /&gt;
&lt;br /&gt;
==== number ====&lt;br /&gt;
&lt;br /&gt;
==== text ====&lt;br /&gt;
&lt;br /&gt;
=== Blocks of instructions ===&lt;br /&gt;
&lt;br /&gt;
A ''block'' begin with the keywords and finish with keyword ''end''&lt;br /&gt;
&lt;br /&gt;
==== font ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a font.&lt;br /&gt;
&lt;br /&gt;
; name (text) : Name of font.&lt;br /&gt;
&lt;br /&gt;
; size (dimen) : Size of font.&lt;br /&gt;
&lt;br /&gt;
; extend (dimen): Expand the width of font.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of font.&lt;br /&gt;
&lt;br /&gt;
; outline yes|no : Outline of the font.&lt;br /&gt;
&lt;br /&gt;
==== line ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a line.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of line.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of line.&lt;br /&gt;
&lt;br /&gt;
; style solid|dashed|dotted|dashdotted|(n1n2...) : Style of line.&lt;br /&gt;
&lt;br /&gt;
; cap butt|round|extended_butt : Cap&lt;br /&gt;
&lt;br /&gt;
; extended (type step voffset height width) : Extended style of line for use mainly with rects.&amp;lt;br&amp;gt; ''type'' = arrow, bar, circled_semi, double_bar, point, rombo, square, triangle, xcross, zigzag (you can use only the first char; and uppercase for filled version).&amp;lt;br&amp;gt; ''voffset'' = (dimen).&amp;lt;br&amp;gt; ''step'' = (dimen).&amp;lt;br&amp;gt; ''height'' = (dimen).&amp;lt;br&amp;gt; ''width'' = (dimen).&lt;br /&gt;
&lt;br /&gt;
; baseline (y|n) : Work with the ''extended'' option to define if the baseline is drawn.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;100px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:|extended arrow 1mm&lt;br /&gt;
File:|&lt;br /&gt;
File:|&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;File:ps.out_linex_A.png&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== fill ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a fill area.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Fill color.&lt;br /&gt;
&lt;br /&gt;
; pat (file) : Fill pattern.&lt;br /&gt;
&lt;br /&gt;
; lwidth (dimen) : Line width of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; scale (number) : Scale of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; limit (dimen) : Limit the fill to the border with a width of ''dimen''.&lt;br /&gt;
&lt;br /&gt;
==== frame ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a frame.&lt;br /&gt;
&lt;br /&gt;
; where (dimen.1 dimen.2) : Position of frame.&lt;br /&gt;
&lt;br /&gt;
; offset (number.1 number.2) : Fine x and y adjust of the position of frame.&lt;br /&gt;
&lt;br /&gt;
; ref right|left|center upper|lower|center : Position is relative to the ''ref''.&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border line&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of the border line.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the frame.&lt;br /&gt;
&lt;br /&gt;
; rotate (dimen) : &amp;lt;u&amp;gt;todo&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== legend ====&lt;br /&gt;
&lt;br /&gt;
; lpos (number): Position in legend&amp;lt;br&amp;gt;Codes: -1, no show in legend; 0 automatic position; &amp;gt; 0 horizontal position.&lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]): Organize legend in ''number.1'' cols with a optional span of ''number.2''&lt;br /&gt;
&lt;br /&gt;
; interline (dimen): Set partial legend interline&lt;br /&gt;
&lt;br /&gt;
== Map paper ==&lt;br /&gt;
&lt;br /&gt;
=== paper ===&lt;br /&gt;
&lt;br /&gt;
Size of paper. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; paper [A0-6|B0-6|Legal|Ledger|Tabloid|Executive|Folio] : Type of paper (default A4).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; color (color) : Paper color.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Custom size of paper.&lt;br /&gt;
&lt;br /&gt;
; left (dimen), right (dimen), top (dimen), bottom (dimen) : Custom margins (default 0.5&amp;quot; left and right, and 1&amp;quot; top and bottom).&lt;br /&gt;
&lt;br /&gt;
; landscape yes|no : Paper orientation (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''. Set the default font of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''. Free draw as watermarks, before any feature of the map is drawn (see ''draw'').&lt;br /&gt;
&lt;br /&gt;
=== scale ===&lt;br /&gt;
&lt;br /&gt;
Scale of the map.&lt;br /&gt;
&lt;br /&gt;
Simple line command to define the scale of the map. The default is adjust map to the paper dimensions. If the remaining dimensions of the paper not permit the scale, ''ps.out'' adjust the scale to a new value that it fit in the paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scale 1&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;(number) : Scale of map.&amp;lt;br&amp;gt;For example, ''scale 1:500000'' to rescale maparea dimensions.&lt;br /&gt;
&lt;br /&gt;
=== maparea ===&lt;br /&gt;
Define specific dimensions of the map (default defined by command ''scale'')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; maparea : Define characteristics of the map area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border map.&amp;lt;br&amp;gt;Usefull with ''in'' and ''out'' formats of the ''grid'' and ''geogrid'', ignored in ''iho'' and ''can'' formats.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Border color-&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the map area.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Dimensions of the map.&lt;br /&gt;
&lt;br /&gt;
; top (dimen), bottom (dimen) : Position of the top-left corner of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''.&amp;lt;br&amp;gt;Draw onto the map but before the grid lines, vpoints and vlabels are drawn; i.e. this map elements are drawn over the draw elements.&lt;br /&gt;
&lt;br /&gt;
=== palette ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;testing&amp;lt;/U&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; palette&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; light (color text) :&lt;br /&gt;
&lt;br /&gt;
; dark (color text) :&lt;br /&gt;
&lt;br /&gt;
; wheel (number text) :&lt;br /&gt;
&lt;br /&gt;
; monochrome (color number text) :&lt;br /&gt;
&lt;br /&gt;
; complementary (color number text) :&lt;br /&gt;
&lt;br /&gt;
; analogous (color number text) :&lt;br /&gt;
&lt;br /&gt;
; gradient (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; binary (color name) :&lt;br /&gt;
&lt;br /&gt;
; sequential (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; qualitative (number text) :&lt;br /&gt;
&lt;br /&gt;
; diverging (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
== Common elements ==&lt;br /&gt;
&lt;br /&gt;
=== grid and geogrid ===&lt;br /&gt;
&lt;br /&gt;
Draw a border around the map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; grid|geogrid :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; format in|out|+out|can|iho : Type of border (see examples).&lt;br /&gt;
&lt;br /&gt;
; major (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; minor (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; subminor (number) : ''number'' of subdivisons of the minor divisions.&lt;br /&gt;
&lt;br /&gt;
; trim (number) : Cut trailing zeros.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Color of the border.&lt;br /&gt;
&lt;br /&gt;
; cross (number) : Replace lines by cross&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_iho.png|format iho&lt;br /&gt;
File:ps_out_can.png|format can&lt;br /&gt;
File:ps_out_in.png |format in&lt;br /&gt;
File:ps_out_out.png|format +out&lt;br /&gt;
File:ps_out_out1.png|typical map border&lt;br /&gt;
File:ps_out_out2.png|typical map border with ''subminor 5'' and ''fcolor blue''&lt;br /&gt;
File:ps_out_out3.png|''cross 500'', ''fcolor indigo'', ''color 200:200:200'' in '''maparea'''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== scalebar ===&lt;br /&gt;
&lt;br /&gt;
Set a scalebar on the map.&amp;lt;br&amp;gt;Maximun 5 scalebars in each map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scalebar I|s|S|f|F : Define the type of scalebar (I: inner, s/S: simple, f/F: fill).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; length (number) : Length of the scale.&lt;br /&gt;
&lt;br /&gt;
; units meters|m|kilometers|km|feet|ft|miles|mil|nautical_miles|nm ([text]) : Unit of the length and ''text' to label the units.&lt;br /&gt;
&lt;br /&gt;
; major (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; minor (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor.&lt;br /&gt;
&lt;br /&gt;
; height (dimen) : Height of the bar or ticks.&lt;br /&gt;
&lt;br /&gt;
; zero yes|no : Set position relative to zero value of the scalebar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Scalerbar styles&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;50px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_scalebar_s.png|scalebar s&lt;br /&gt;
File:ps_out_scalebar_S.png|scalebar S&lt;br /&gt;
File:ps_out_scalebar_I.png|scalebar I (uppercase i)&lt;br /&gt;
File:ps_out_scalebar_f.png|scalebar f&lt;br /&gt;
File:ps_out_scalebar_F.png|scalebar F&lt;br /&gt;
File:ps_out_scalebar_3.png|Multiple scalebars zero centered with ''zero yes''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== note ===&lt;br /&gt;
Write special text or free text on any place of the paper with frame (also ''draw'' permit write free-text in paper). &lt;br /&gt;
&lt;br /&gt;
Maximun 20 notes by map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; note &amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;file|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;maplimits|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;dimen|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;scale (text)|(text) : Type of note and text to show.&amp;lt;br&amp;gt;When free text, use '|' to break lines and '.' as first character to center line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; text (text) : Another roption to enter the same as inline note text;&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of note.&lt;br /&gt;
&lt;br /&gt;
; angle (number) : ''number'' of degrees to rotate (do not work fine).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Note keywords and free text&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_note_ml.png  |note :maplimits&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_dimen.png|note :dimen&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scale.png|note :scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_free.png|note free text|in multiple lines&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_freec.png|note .free text|.in multiple [...]&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scaler.png|note :scale scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br&amp;gt;&amp;amp;nbsp;angle 90&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== draw ===&lt;br /&gt;
&lt;br /&gt;
Simple script language to draw predefined postscript code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; draw [none|paper|maparea|free] :  &lt;br /&gt;
''paper'': before any map feature is drawn (equivalent to place inside ''paper'' block); &amp;lt;br&amp;gt;&lt;br /&gt;
''maparea'' before the last elements of the map (equivalent to place inside ''mapare'' block) ; &amp;lt;br&amp;gt;&lt;br /&gt;
''none'': draw over all elements of the map but only in the map area; and &amp;lt;br&amp;gt;&lt;br /&gt;
''free'': after all map features are drawn in any place of the paper; and ''none''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; --- : &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_north1.png   |&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;north 700000 4700000&amp;lt;/source&amp;gt;&lt;br /&gt;
File:ps_out_north2.png   |north 5cm 16.5cm -&lt;br /&gt;
File:ps_out_maplimits.png|maplimits&lt;br /&gt;
File:ps_out_compass.png  |compass 700000 4700000 10000 10.2345&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Raster maps ==&lt;br /&gt;
&lt;br /&gt;
=== raster ===&lt;br /&gt;
&lt;br /&gt;
Draw one or two raster maps on the maparea. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; raster (raster|raster.1 raster.2|raster.R raster.G raster.B|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;group) : The ''raster'' value is the raster mapname, two raster maps ''raster.1'' or color and ''raster.2'' or shade to draw as relief map, three maps ''raster.R'', ''raster.G'' and ''raster.B'' to draw as RGB, or a groupname (leader by ':') with tree RGB maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; grey yes|no : Store and draw the rasters in grey scale (small size of file).&amp;lt;br&amp;gt;The conversion follows the NTSC video standard.&lt;br /&gt;
&lt;br /&gt;
; maskcell (raster.1 [raster.2]) : Set the ''raster.1'' map to use as mask (independent of the mask set in GRASS with [[r.mask]]) and, optionally, the ''raster.2'' map uses as background.&amp;lt;br&amp;gt;The background ''raster.2'' is painted in grey scale (NTSC) and tinted with ''maskcolor''.&lt;br /&gt;
&lt;br /&gt;
; maskcolor (color|none) : Set the ''color'' of the mask area.&amp;lt;br&amp;gt;If a raster map as background is set then it's drawn with a scale white-maskcolor.&lt;br /&gt;
&lt;br /&gt;
; outline : Block ''line''. Outline of categories.&lt;br /&gt;
&lt;br /&gt;
; setcolor null|default|(number) (color) : Replace the color of the cat ''number'' area with a new color.&amp;lt;br&amp;gt;Multiple ''setcolor'' are possibles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_raster1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_outline.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;outline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width .2mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;end&amp;lt;br/&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_setcolor.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor white&amp;lt;br&amp;gt;&amp;amp;nbsp;setcolor 37 magenta&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_grey.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;grey yes&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Vector maps ==&lt;br /&gt;
&lt;br /&gt;
All vector map accept optionally the following commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; layer (number) : Layer number used with cats/where option.&lt;br /&gt;
&lt;br /&gt;
; cats (n1,n2,...) : List of ''cat''s to show.&lt;br /&gt;
&lt;br /&gt;
; where (text) : Argument of the SQL where clausule to filter the areas to show.&lt;br /&gt;
&lt;br /&gt;
; masked yes|no : Masked or not by raster mask (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; label (text) : For description or title in ''vlegend''.&lt;br /&gt;
&lt;br /&gt;
; legend [(number)]: Position in legend (-1, no legend) or enter in a block ''legend''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vareas ===&lt;br /&gt;
&lt;br /&gt;
Draw areas on the map.&amp;lt;br&amp;gt;&lt;br /&gt;
The areas always are drawn first, on the bottom of other type of maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vareas (vector) : ''vector'' is a vector of areas, except when ''lwidth'' is different to zero that ''vector'' is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type area|line : Default ''area''.&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Style of the boundary.&lt;br /&gt;
&lt;br /&gt;
; fill : Block ''fill''. Style of the area.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic fill color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Text label when default conditions.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color][|dimen] text) : Make a item of a sublegend with label the ''text'' and title the text of the ''label''.&amp;lt;br&amp;gt;The fillcolor of the areas is set to ''color'' and the line width is set to ''dimen'' when ''column.2'' &amp;gt;= n1 and ''column.2'' &amp;lt; n2  (''column.2'' from ''rgbcol'').&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; island yes|no : Draw island as normal areas (fill as normal area then hide it).&lt;br /&gt;
&lt;br /&gt;
; mirror (dimen [number]) : The line is drawn as an area with a copy of the line placed with polar coordinates: ''dimen' and ''angle''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vareas: sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vareas0.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;color indigo&lt;br /&gt;
File:ps_out_vareas4.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;color indigo&amp;lt;br&amp;gt;&amp;amp;nbsp;limit 3mm&lt;br /&gt;
File:ps_out_vareas3.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;pat patterns/diag_up.eps&lt;br /&gt;
File:ps_out_vareas1.png|rgbcol - cat&amp;lt;br&amp;gt;setrule 0-500:red A&amp;lt;br/&amp;gt;setrule 500-1000:green B&amp;lt;br/&amp;gt;setrule 1000-5000:blue C&lt;br /&gt;
File:ps_out_vareas2.png|island no&lt;br /&gt;
File:ps_out_vareas5.png|vareas roadsmajor&amp;lt;br&amp;gt;&amp;amp;nbsp;cat 24,28,32,38,53&amp;lt;br&amp;gt;&amp;amp;nbsp;mirror 5 90&amp;lt;br&amp;gt;[and fill with pat cruz.eps]&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlines ===&lt;br /&gt;
&lt;br /&gt;
Draw lines on the map.&amp;lt;br&amp;gt;The areas always are drawn second, after ''vareas'' and before ''vpoints''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlines (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of lines, except if ''type'' is boundary that ''vector'' is a vector of areas.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Optional commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type line|boundary : Draw boundaries of a vector of areas or lines of a vector of lines (default ''line'').&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Normal line.&lt;br /&gt;
&lt;br /&gt;
; hline : Block ''line''. Highlight line.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Works with ''hline'' to offset from the center of ''line''.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic line color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Label in legend when default values and ''setcolor'' rules.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with ''text'' as label and title the text of the ''label''. Also, the color of the normal line with column &amp;gt;= n1 and column &amp;lt; n2 (column from rgbcol), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlines: sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlines0.png|hline&lt;br /&gt;
File:ps_out_vlines1.png|line 0.05mm&amp;lt;br&amp;gt;setrule 100:brown|.25mm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vpoints ===&lt;br /&gt;
&lt;br /&gt;
Draw points on the map.&amp;lt;br&amp;gt;The points always are drawn last, after ''vareas'' and ''vlines''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vpoints (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of points, except when '''type''' is ''centroid'' or ''boundary'' that it is a vector of areas, or when '''type''' is ''line'' that it is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; type centroid|line|boundary|point : Type of draw (default ''point'').&lt;br /&gt;
&lt;br /&gt;
; symbol (epsfile) : Symbol to use (default: basic/circle).&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Type of line in the symbol.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color): Static fillcolor of the symbol.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Offset of the symbol.&lt;br /&gt;
&lt;br /&gt;
; rotate (number|column) : Angle to rotate the symbol, static ''number'' or dynamic in a ''column'' of the database.&lt;br /&gt;
&lt;br /&gt;
; size (number|column [number]) : Size of the symbol take from ''number'' or from a ''column'' of the database. In the last option, there is a optional ''number'' to define the static size of the symbol in the legend when the size of symbols are dynamic. &lt;br /&gt;
&lt;br /&gt;
; scale (dimen.1 [dimen.2]) : Rescale the size of the symbol by the ''dimen.1'' and, optionally, add a ''dimen.2''. i.e., ''resize = dimen.1 * size + dimen.2''.&lt;br /&gt;
&lt;br /&gt;
; setsize (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;size] text) : Variable size of symbols from data in ''column'' of database set in ''size''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands when type is line&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; dist (dimen) : Define the distance in paper between symbol over the line.&lt;br /&gt;
&lt;br /&gt;
; cline : Block ''line''. Type of line that connect symbols.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vpoints: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vpoints0.png|''Points with same size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size 5&lt;br /&gt;
File:ps_out_vpoints1.png|''Points with dynamic size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT 5&amp;lt;br&amp;gt;&amp;amp;nbsp;scale 0.01 2&lt;br /&gt;
File:ps_out_vpoints2.png|''Points with conditional size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 200-1000:3 &amp;lt; 1000&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 1000-2500:9 &amp;gt; 1000&lt;br /&gt;
File:ps_out_vpoints3.png|''Points on line ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;type line&amp;lt;br&amp;gt;&amp;amp;nbsp;dist 1cm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlabels ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;in progress&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlabels none|(vector) :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; font :&lt;br /&gt;
&lt;br /&gt;
; labelcol (column) :&lt;br /&gt;
&lt;br /&gt;
; decimals (number) :&lt;br /&gt;
&lt;br /&gt;
; circled yes|no :&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2 text)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlabels0.png|vpoints firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;[...]&amp;lt;br/n&amp;gt;end&amp;lt;br/&amp;gt;vlabels firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;labelcol PUMPERS&amp;lt;br/n&amp;gt;&amp;amp;nbsp;font&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;name Univers-Bold&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;size 10&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color yellow&amp;lt;br/n&amp;gt;&amp;amp;nbsp;end&amp;lt;br/n&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Legend of the maps ==&lt;br /&gt;
&lt;br /&gt;
=== rlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the raster map.&amp;lt;br&amp;gt;The units ''meters'' in the gradient legend is set with {{cmd|r.support}}.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; rlegend [text] : Text is the title of the legend. &lt;br /&gt;
&lt;br /&gt;
; raster (raster) : the ''raster'' map to take the data of legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commads are optionals&amp;lt;/U&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; titlefont : Block ''font'' for the legend header.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font'' for the normal text.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Width of the symbol area.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For category legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; cols (number) [(number)] : Number of columns with symbols and separation between columns (default ''1'').&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Vertical space between symbols (o to join symbols)&lt;br /&gt;
&lt;br /&gt;
; nodata yes|no : Remove category ''no data''.&lt;br /&gt;
&lt;br /&gt;
; order (n1,n2,...) : To reorder the items.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For gradient legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; height (dimen), width (dimen) : Dimension of the frame with the legend.&lt;br /&gt;
&lt;br /&gt;
; vertical yes|no : Orientation of the gradient legend (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; range (n1 n2) : Manual set of the data range for legend.&lt;br /&gt;
&lt;br /&gt;
; gradient yes|no : Forze draw gradient legend with category data.&lt;br /&gt;
&lt;br /&gt;
; tick (dimen) : Length of the ticks.&lt;br /&gt;
&lt;br /&gt;
; whiteframe (dimen) : Width of the white frame around the bar color.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;250px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_rlegend.png|rlegend Zip Codes (wake)&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster zipcodes_wake&amp;lt;br/&amp;gt;&amp;amp;nbsp;cols 2 0&amp;lt;br/&amp;gt;&amp;amp;nbsp;swidth 8mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;order 20,10,30,22,34&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend1.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;height 8cm&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend2.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;width 8cm&amp;lt;br/&amp;gt;&amp;amp;nbsp;vertical no&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the vector maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlegend [text] : Optional the title or head of the legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; title : Block ''font'' for title of legend.&lt;br /&gt;
&lt;br /&gt;
; font : Block font for normal text of legend.&lt;br /&gt;
&lt;br /&gt;
; frame : &lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]) : Distribution of the items in ''number.1'' cols. Optionaly, ''number.2'' of span between columns.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Symbol width.&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Space between lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlegend: sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_output_vlegend0.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conversion to PDF ==&lt;br /&gt;
&lt;br /&gt;
You can obtain good results with these settings:&lt;br /&gt;
  ps2pdf14 -dPDFSETTINGS=/prepress -dEmbedAllFonts=true map.ps map.pdf&lt;br /&gt;
&lt;br /&gt;
== Example for ps.output control script ==&lt;br /&gt;
&lt;br /&gt;
This is the content of a ps.output control file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
paper A4&lt;br /&gt;
 landscape y&lt;br /&gt;
end&lt;br /&gt;
maparea&lt;br /&gt;
 height 12cm&lt;br /&gt;
 border .8mm&lt;br /&gt;
 color grey&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
grid&lt;br /&gt;
 major 100000&lt;br /&gt;
  width .1mm&lt;br /&gt;
  color white&lt;br /&gt;
 end&lt;br /&gt;
 minor 50000&lt;br /&gt;
  width .1mm&lt;br /&gt;
  color white&lt;br /&gt;
  style 1&lt;br /&gt;
 end&lt;br /&gt;
 font&lt;br /&gt;
  name Univers&lt;br /&gt;
  size 6&lt;br /&gt;
  extend 1.2&lt;br /&gt;
  color black&lt;br /&gt;
 end&lt;br /&gt;
 fcolor black&lt;br /&gt;
 format +out&lt;br /&gt;
 trim 3&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
raster ortho.r ortho.g ortho.b&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: ps.map]]&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12318</id>
		<title>Ps.output</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12318"/>
		<updated>2011-01-14T17:50:16Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: /* line */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ps.out''' try to update the standard postscript output of Grass adding new features to design borders, graticules, categorized legends, etc&lt;br /&gt;
&lt;br /&gt;
'''This is in progress and not all features are yet uploaded in ''addons''. '''&lt;br /&gt;
&lt;br /&gt;
== Command line flags ==&lt;br /&gt;
&lt;br /&gt;
'''-d ''': Draw a 1x1 cm grid on paper to help the placement of the elements of the map.&lt;br /&gt;
&lt;br /&gt;
'''-e''': Create an output file for embedding into another ''ps.out'' map&lt;br /&gt;
&lt;br /&gt;
'''-g''': Use the extended PostScript of Ghostscript (for transparent colors only)&lt;br /&gt;
&lt;br /&gt;
'''-s''': Draw the small digit in the coordinate numbers to lower instead upper position.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;100px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_grid.png|A4 paper with flag -d &lt;br /&gt;
File:ps_out_digit_upper.png|coordinate&lt;br /&gt;
File:ps_out_digit_lower.png|coordinate with flag -s&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generic Instructions ==&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== dimen ====&lt;br /&gt;
&lt;br /&gt;
Define a dimension. Accepted units are:&lt;br /&gt;
&lt;br /&gt;
*; ''unitless'' : e.g. 123. The dimension is the ''number'' by 1/72&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
*; inch : e.g. 1.2inch. &lt;br /&gt;
&lt;br /&gt;
*; milimeters : e.g. 2.3mm.&lt;br /&gt;
&lt;br /&gt;
*; centimeters : e.g. 1.4cm.&lt;br /&gt;
&lt;br /&gt;
*; percentage : e.g. 50%.&amp;lt;br&amp;gt;The position is relative to the size and position of the map in the paper being ''0%'' the left or bottom corner.&lt;br /&gt;
&lt;br /&gt;
==== color ====&lt;br /&gt;
&lt;br /&gt;
Define a color. Accepted formats are:&lt;br /&gt;
&lt;br /&gt;
*; standard GRASS name : e.g. indigo.&lt;br /&gt;
&lt;br /&gt;
*; R&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;G&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;B : e.g. 200:123:90&lt;br /&gt;
&lt;br /&gt;
*; user name : e.g. red5.&amp;lt;br&amp;gt;Defined in ''palette'' block&lt;br /&gt;
&lt;br /&gt;
All formats can add '$(0-1)' to define the opacity of the color (alpha channel); e.g., indigo$.75 or 200:120:120$.2&lt;br /&gt;
&lt;br /&gt;
==== number ====&lt;br /&gt;
&lt;br /&gt;
==== text ====&lt;br /&gt;
&lt;br /&gt;
=== Blocks of instructions ===&lt;br /&gt;
&lt;br /&gt;
A ''block'' begin with the keywords and finish with keyword ''end''&lt;br /&gt;
&lt;br /&gt;
==== font ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a font.&lt;br /&gt;
&lt;br /&gt;
; name (text) : Name of font.&lt;br /&gt;
&lt;br /&gt;
; size (dimen) : Size of font.&lt;br /&gt;
&lt;br /&gt;
; extend (dimen): Expand the width of font.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of font.&lt;br /&gt;
&lt;br /&gt;
; outline yes|no : Outline of the font.&lt;br /&gt;
&lt;br /&gt;
==== line ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a line.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of line.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of line.&lt;br /&gt;
&lt;br /&gt;
; style solid|dashed|dotted|dashdotted|(n1n2...) : Style of line.&lt;br /&gt;
&lt;br /&gt;
; cap butt|round|extended_butt : Cap&lt;br /&gt;
&lt;br /&gt;
; extended (type step height width) : Extended style of line.&amp;lt;br&amp;gt;''type'' = bar, double_bar, line, mark, point, round, square, triangle, xcross.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;100px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:|&lt;br /&gt;
File:|&lt;br /&gt;
File:|&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== fill ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a fill area.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Fill color.&lt;br /&gt;
&lt;br /&gt;
; pat (file) : Fill pattern.&lt;br /&gt;
&lt;br /&gt;
; lwidth (dimen) : Line width of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; scale (number) : Scale of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; limit (dimen) : Limit the fill to the border with a width of ''dimen''.&lt;br /&gt;
&lt;br /&gt;
==== frame ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a frame.&lt;br /&gt;
&lt;br /&gt;
; where (dimen.1 dimen.2) : Position of frame.&lt;br /&gt;
&lt;br /&gt;
; offset (number.1 number.2) : Fine x and y adjust of the position of frame.&lt;br /&gt;
&lt;br /&gt;
; ref right|left|center upper|lower|center : Position is relative to the ''ref''.&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border line&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of the border line.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the frame.&lt;br /&gt;
&lt;br /&gt;
; rotate (dimen) : &amp;lt;u&amp;gt;todo&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== legend ====&lt;br /&gt;
&lt;br /&gt;
; lpos (number): Position in legend&amp;lt;br&amp;gt;Codes: -1, no show in legend; 0 automatic position; &amp;gt; 0 horizontal position.&lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]): Organize legend in ''number.1'' cols with a optional span of ''number.2''&lt;br /&gt;
&lt;br /&gt;
; interline (dimen): Set partial legend interline&lt;br /&gt;
&lt;br /&gt;
== Map paper ==&lt;br /&gt;
&lt;br /&gt;
=== paper ===&lt;br /&gt;
&lt;br /&gt;
Size of paper. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; paper [A0-6|B0-6|Legal|Ledger|Tabloid|Executive|Folio] : Type of paper (default A4).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; color (color) : Paper color.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Custom size of paper.&lt;br /&gt;
&lt;br /&gt;
; left (dimen), right (dimen), top (dimen), bottom (dimen) : Custom margins (default 0.5&amp;quot; left and right, and 1&amp;quot; top and bottom).&lt;br /&gt;
&lt;br /&gt;
; landscape yes|no : Paper orientation (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''. Set the default font of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''. Free draw as watermarks, before any feature of the map is drawn (see ''draw'').&lt;br /&gt;
&lt;br /&gt;
=== scale ===&lt;br /&gt;
&lt;br /&gt;
Scale of the map.&lt;br /&gt;
&lt;br /&gt;
Simple line command to define the scale of the map. The default is adjust map to the paper dimensions. If the remaining dimensions of the paper not permit the scale, ''ps.out'' adjust the scale to a new value that it fit in the paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scale 1&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;(number) : Scale of map.&amp;lt;br&amp;gt;For example, ''scale 1:500000'' to rescale maparea dimensions.&lt;br /&gt;
&lt;br /&gt;
=== maparea ===&lt;br /&gt;
Define specific dimensions of the map (default defined by command ''scale'')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; maparea : Define characteristics of the map area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border map.&amp;lt;br&amp;gt;Usefull with ''in'' and ''out'' formats of the ''grid'' and ''geogrid'', ignored in ''iho'' and ''can'' formats.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Border color-&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the map area.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Dimensions of the map.&lt;br /&gt;
&lt;br /&gt;
; top (dimen), bottom (dimen) : Position of the top-left corner of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''.&amp;lt;br&amp;gt;Draw onto the map but before the grid lines, vpoints and vlabels are drawn; i.e. this map elements are drawn over the draw elements.&lt;br /&gt;
&lt;br /&gt;
=== palette ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;testing&amp;lt;/U&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; palette&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; light (color text) :&lt;br /&gt;
&lt;br /&gt;
; dark (color text) :&lt;br /&gt;
&lt;br /&gt;
; wheel (number text) :&lt;br /&gt;
&lt;br /&gt;
; monochrome (color number text) :&lt;br /&gt;
&lt;br /&gt;
; complementary (color number text) :&lt;br /&gt;
&lt;br /&gt;
; analogous (color number text) :&lt;br /&gt;
&lt;br /&gt;
; gradient (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; binary (color name) :&lt;br /&gt;
&lt;br /&gt;
; sequential (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; qualitative (number text) :&lt;br /&gt;
&lt;br /&gt;
; diverging (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
== Common elements ==&lt;br /&gt;
&lt;br /&gt;
=== grid and geogrid ===&lt;br /&gt;
&lt;br /&gt;
Draw a border around the map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; grid|geogrid :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; format in|out|+out|can|iho : Type of border (see examples).&lt;br /&gt;
&lt;br /&gt;
; major (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; minor (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; subminor (number) : ''number'' of subdivisons of the minor divisions.&lt;br /&gt;
&lt;br /&gt;
; trim (number) : Cut trailing zeros.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Color of the border.&lt;br /&gt;
&lt;br /&gt;
; cross (number) : Replace lines by cross&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_iho.png|format iho&lt;br /&gt;
File:ps_out_can.png|format can&lt;br /&gt;
File:ps_out_in.png |format in&lt;br /&gt;
File:ps_out_out.png|format +out&lt;br /&gt;
File:ps_out_out1.png|typical map border&lt;br /&gt;
File:ps_out_out2.png|typical map border with ''subminor 5'' and ''fcolor blue''&lt;br /&gt;
File:ps_out_out3.png|''cross 500'', ''fcolor indigo'', ''color 200:200:200'' in '''maparea'''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== scalebar ===&lt;br /&gt;
&lt;br /&gt;
Set a scalebar on the map.&amp;lt;br&amp;gt;Maximun 5 scalebars in each map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scalebar I|s|S|f|F : Define the type of scalebar (I: inner, s/S: simple, f/F: fill).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; length (number) : Length of the scale.&lt;br /&gt;
&lt;br /&gt;
; units meters|m|kilometers|km|feet|ft|miles|mil|nautical_miles|nm ([text]) : Unit of the length and ''text' to label the units.&lt;br /&gt;
&lt;br /&gt;
; major (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; minor (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor.&lt;br /&gt;
&lt;br /&gt;
; height (dimen) : Height of the bar or ticks.&lt;br /&gt;
&lt;br /&gt;
; zero yes|no : Set position relative to zero value of the scalebar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Scalerbar styles&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;50px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_scalebar_s.png|scalebar s&lt;br /&gt;
File:ps_out_scalebar_S.png|scalebar S&lt;br /&gt;
File:ps_out_scalebar_I.png|scalebar I (uppercase i)&lt;br /&gt;
File:ps_out_scalebar_f.png|scalebar f&lt;br /&gt;
File:ps_out_scalebar_F.png|scalebar F&lt;br /&gt;
File:ps_out_scalebar_3.png|Multiple scalebars zero centered with ''zero yes''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== note ===&lt;br /&gt;
Write special text or free text on any place of the paper with frame (also ''draw'' permit write free-text in paper). &lt;br /&gt;
&lt;br /&gt;
Maximun 20 notes by map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; note &amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;file|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;maplimits|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;dimen|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;scale (text)|(text) : Type of note and text to show.&amp;lt;br&amp;gt;When free text, use '|' to break lines and '.' as first character to center line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; text (text) : Another roption to enter the same as inline note text;&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of note.&lt;br /&gt;
&lt;br /&gt;
; angle (number) : ''number'' of degrees to rotate (do not work fine).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Note keywords and free text&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_note_ml.png  |note :maplimits&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_dimen.png|note :dimen&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scale.png|note :scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_free.png|note free text|in multiple lines&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_freec.png|note .free text|.in multiple [...]&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scaler.png|note :scale scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br&amp;gt;&amp;amp;nbsp;angle 90&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== draw ===&lt;br /&gt;
&lt;br /&gt;
Simple script language to draw predefined postscript code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; draw [none|paper|maparea|free] :  &lt;br /&gt;
''paper'': before any map feature is drawn (equivalent to place inside ''paper'' block); &amp;lt;br&amp;gt;&lt;br /&gt;
''maparea'' before the last elements of the map (equivalent to place inside ''mapare'' block) ; &amp;lt;br&amp;gt;&lt;br /&gt;
''none'': draw over all elements of the map but only in the map area; and &amp;lt;br&amp;gt;&lt;br /&gt;
''free'': after all map features are drawn in any place of the paper; and ''none''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; --- : &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_north1.png   |&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;north 700000 4700000&amp;lt;/source&amp;gt;&lt;br /&gt;
File:ps_out_north2.png   |north 5cm 16.5cm -&lt;br /&gt;
File:ps_out_maplimits.png|maplimits&lt;br /&gt;
File:ps_out_compass.png  |compass 700000 4700000 10000 10.2345&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Raster maps ==&lt;br /&gt;
&lt;br /&gt;
=== raster ===&lt;br /&gt;
&lt;br /&gt;
Draw one or two raster maps on the maparea. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; raster (raster|raster.1 raster.2|raster.R raster.G raster.B|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;group) : The ''raster'' value is the raster mapname, two raster maps ''raster.1'' or color and ''raster.2'' or shade to draw as relief map, three maps ''raster.R'', ''raster.G'' and ''raster.B'' to draw as RGB, or a groupname (leader by ':') with tree RGB maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; grey yes|no : Store and draw the rasters in grey scale (small size of file).&amp;lt;br&amp;gt;The conversion follows the NTSC video standard.&lt;br /&gt;
&lt;br /&gt;
; maskcell (raster.1 [raster.2]) : Set the ''raster.1'' map to use as mask (independent of the mask set in GRASS with [[r.mask]]) and, optionally, the ''raster.2'' map uses as background.&amp;lt;br&amp;gt;The background ''raster.2'' is painted in grey scale (NTSC) and tinted with ''maskcolor''.&lt;br /&gt;
&lt;br /&gt;
; maskcolor (color|none) : Set the ''color'' of the mask area.&amp;lt;br&amp;gt;If a raster map as background is set then it's drawn with a scale white-maskcolor.&lt;br /&gt;
&lt;br /&gt;
; outline : Block ''line''. Outline of categories.&lt;br /&gt;
&lt;br /&gt;
; setcolor null|default|(number) (color) : Replace the color of the cat ''number'' area with a new color.&amp;lt;br&amp;gt;Multiple ''setcolor'' are possibles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_raster1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_outline.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;outline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width .2mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;end&amp;lt;br/&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_setcolor.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor white&amp;lt;br&amp;gt;&amp;amp;nbsp;setcolor 37 magenta&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_grey.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;grey yes&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Vector maps ==&lt;br /&gt;
&lt;br /&gt;
All vector map accept optionally the following commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; layer (number) : Layer number used with cats/where option.&lt;br /&gt;
&lt;br /&gt;
; cats (n1,n2,...) : List of ''cat''s to show.&lt;br /&gt;
&lt;br /&gt;
; where (text) : Argument of the SQL where clausule to filter the areas to show.&lt;br /&gt;
&lt;br /&gt;
; masked yes|no : Masked or not by raster mask (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; label (text) : For description or title in ''vlegend''.&lt;br /&gt;
&lt;br /&gt;
; legend [(number)]: Position in legend (-1, no legend) or enter in a block ''legend''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vareas ===&lt;br /&gt;
&lt;br /&gt;
Draw areas on the map.&amp;lt;br&amp;gt;&lt;br /&gt;
The areas always are drawn first, on the bottom of other type of maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vareas (vector) : ''vector'' is a vector of areas, except when ''lwidth'' is different to zero that ''vector'' is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type area|line : Default ''area''.&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Style of the boundary.&lt;br /&gt;
&lt;br /&gt;
; fill : Block ''fill''. Style of the area.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic fill color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Text label when default conditions.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color][|dimen] text) : Make a item of a sublegend with label the ''text'' and title the text of the ''label''.&amp;lt;br&amp;gt;The fillcolor of the areas is set to ''color'' and the line width is set to ''dimen'' when ''column.2'' &amp;gt;= n1 and ''column.2'' &amp;lt; n2  (''column.2'' from ''rgbcol'').&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; island yes|no : Draw island as normal areas (fill as normal area then hide it).&lt;br /&gt;
&lt;br /&gt;
; mirror (dimen [number]) : The line is drawn as an area with a copy of the line placed with polar coordinates: ''dimen' and ''angle''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vareas: sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vareas0.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;color indigo&lt;br /&gt;
File:ps_out_vareas4.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;color indigo&amp;lt;br&amp;gt;&amp;amp;nbsp;limit 3mm&lt;br /&gt;
File:ps_out_vareas3.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;pat patterns/diag_up.eps&lt;br /&gt;
File:ps_out_vareas1.png|rgbcol - cat&amp;lt;br&amp;gt;setrule 0-500:red A&amp;lt;br/&amp;gt;setrule 500-1000:green B&amp;lt;br/&amp;gt;setrule 1000-5000:blue C&lt;br /&gt;
File:ps_out_vareas2.png|island no&lt;br /&gt;
File:ps_out_vareas5.png|vareas roadsmajor&amp;lt;br&amp;gt;&amp;amp;nbsp;cat 24,28,32,38,53&amp;lt;br&amp;gt;&amp;amp;nbsp;mirror 5 90&amp;lt;br&amp;gt;[and fill with pat cruz.eps]&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlines ===&lt;br /&gt;
&lt;br /&gt;
Draw lines on the map.&amp;lt;br&amp;gt;The areas always are drawn second, after ''vareas'' and before ''vpoints''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlines (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of lines, except if ''type'' is boundary that ''vector'' is a vector of areas.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Optional commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type line|boundary : Draw boundaries of a vector of areas or lines of a vector of lines (default ''line'').&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Normal line.&lt;br /&gt;
&lt;br /&gt;
; hline : Block ''line''. Highlight line.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Works with ''hline'' to offset from the center of ''line''.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic line color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Label in legend when default values and ''setcolor'' rules.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with ''text'' as label and title the text of the ''label''. Also, the color of the normal line with column &amp;gt;= n1 and column &amp;lt; n2 (column from rgbcol), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlines: sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlines0.png|hline&lt;br /&gt;
File:ps_out_vlines1.png|line 0.05mm&amp;lt;br&amp;gt;setrule 100:brown|.25mm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vpoints ===&lt;br /&gt;
&lt;br /&gt;
Draw points on the map.&amp;lt;br&amp;gt;The points always are drawn last, after ''vareas'' and ''vlines''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vpoints (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of points, except when '''type''' is ''centroid'' or ''boundary'' that it is a vector of areas, or when '''type''' is ''line'' that it is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; type centroid|line|boundary|point : Type of draw (default ''point'').&lt;br /&gt;
&lt;br /&gt;
; symbol (epsfile) : Symbol to use (default: basic/circle).&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Type of line in the symbol.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color): Static fillcolor of the symbol.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Offset of the symbol.&lt;br /&gt;
&lt;br /&gt;
; rotate (number|column) : Angle to rotate the symbol, static ''number'' or dynamic in a ''column'' of the database.&lt;br /&gt;
&lt;br /&gt;
; size (number|column [number]) : Size of the symbol take from ''number'' or from a ''column'' of the database. In the last option, there is a optional ''number'' to define the static size of the symbol in the legend when the size of symbols are dynamic. &lt;br /&gt;
&lt;br /&gt;
; scale (dimen.1 [dimen.2]) : Rescale the size of the symbol by the ''dimen.1'' and, optionally, add a ''dimen.2''. i.e., ''resize = dimen.1 * size + dimen.2''.&lt;br /&gt;
&lt;br /&gt;
; setsize (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;size] text) : Variable size of symbols from data in ''column'' of database set in ''size''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands when type is line&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; dist (dimen) : Define the distance in paper between symbol over the line.&lt;br /&gt;
&lt;br /&gt;
; cline : Block ''line''. Type of line that connect symbols.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vpoints: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vpoints0.png|''Points with same size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size 5&lt;br /&gt;
File:ps_out_vpoints1.png|''Points with dynamic size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT 5&amp;lt;br&amp;gt;&amp;amp;nbsp;scale 0.01 2&lt;br /&gt;
File:ps_out_vpoints2.png|''Points with conditional size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 200-1000:3 &amp;lt; 1000&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 1000-2500:9 &amp;gt; 1000&lt;br /&gt;
File:ps_out_vpoints3.png|''Points on line ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;type line&amp;lt;br&amp;gt;&amp;amp;nbsp;dist 1cm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlabels ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;in progress&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlabels none|(vector) :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; font :&lt;br /&gt;
&lt;br /&gt;
; labelcol (column) :&lt;br /&gt;
&lt;br /&gt;
; decimals (number) :&lt;br /&gt;
&lt;br /&gt;
; circled yes|no :&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2 text)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlabels0.png|vpoints firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;[...]&amp;lt;br/n&amp;gt;end&amp;lt;br/&amp;gt;vlabels firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;labelcol PUMPERS&amp;lt;br/n&amp;gt;&amp;amp;nbsp;font&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;name Univers-Bold&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;size 10&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color yellow&amp;lt;br/n&amp;gt;&amp;amp;nbsp;end&amp;lt;br/n&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Legend of the maps ==&lt;br /&gt;
&lt;br /&gt;
=== rlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the raster map.&amp;lt;br&amp;gt;The units ''meters'' in the gradient legend is set with {{cmd|r.support}}.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; rlegend [text] : Text is the title of the legend. &lt;br /&gt;
&lt;br /&gt;
; raster (raster) : the ''raster'' map to take the data of legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commads are optionals&amp;lt;/U&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; titlefont : Block ''font'' for the legend header.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font'' for the normal text.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Width of the symbol area.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For category legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; cols (number) [(number)] : Number of columns with symbols and separation between columns (default ''1'').&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Vertical space between symbols (o to join symbols)&lt;br /&gt;
&lt;br /&gt;
; nodata yes|no : Remove category ''no data''.&lt;br /&gt;
&lt;br /&gt;
; order (n1,n2,...) : To reorder the items.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For gradient legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; height (dimen), width (dimen) : Dimension of the frame with the legend.&lt;br /&gt;
&lt;br /&gt;
; vertical yes|no : Orientation of the gradient legend (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; range (n1 n2) : Manual set of the data range for legend.&lt;br /&gt;
&lt;br /&gt;
; gradient yes|no : Forze draw gradient legend with category data.&lt;br /&gt;
&lt;br /&gt;
; tick (dimen) : Length of the ticks.&lt;br /&gt;
&lt;br /&gt;
; whiteframe (dimen) : Width of the white frame around the bar color.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;250px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_rlegend.png|rlegend Zip Codes (wake)&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster zipcodes_wake&amp;lt;br/&amp;gt;&amp;amp;nbsp;cols 2 0&amp;lt;br/&amp;gt;&amp;amp;nbsp;swidth 8mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;order 20,10,30,22,34&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend1.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;height 8cm&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend2.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;width 8cm&amp;lt;br/&amp;gt;&amp;amp;nbsp;vertical no&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the vector maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlegend [text] : Optional the title or head of the legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; title : Block ''font'' for title of legend.&lt;br /&gt;
&lt;br /&gt;
; font : Block font for normal text of legend.&lt;br /&gt;
&lt;br /&gt;
; frame : &lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]) : Distribution of the items in ''number.1'' cols. Optionaly, ''number.2'' of span between columns.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Symbol width.&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Space between lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlegend: sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_output_vlegend0.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conversion to PDF ==&lt;br /&gt;
&lt;br /&gt;
You can obtain good results with these settings:&lt;br /&gt;
  ps2pdf14 -dPDFSETTINGS=/prepress -dEmbedAllFonts=true map.ps map.pdf&lt;br /&gt;
&lt;br /&gt;
== Example for ps.output control script ==&lt;br /&gt;
&lt;br /&gt;
This is the content of a ps.output control file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
paper A4&lt;br /&gt;
 landscape y&lt;br /&gt;
end&lt;br /&gt;
maparea&lt;br /&gt;
 height 12cm&lt;br /&gt;
 border .8mm&lt;br /&gt;
 color grey&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
grid&lt;br /&gt;
 major 100000&lt;br /&gt;
  width .1mm&lt;br /&gt;
  color white&lt;br /&gt;
 end&lt;br /&gt;
 minor 50000&lt;br /&gt;
  width .1mm&lt;br /&gt;
  color white&lt;br /&gt;
  style 1&lt;br /&gt;
 end&lt;br /&gt;
 font&lt;br /&gt;
  name Univers&lt;br /&gt;
  size 6&lt;br /&gt;
  extend 1.2&lt;br /&gt;
  color black&lt;br /&gt;
 end&lt;br /&gt;
 fcolor black&lt;br /&gt;
 format +out&lt;br /&gt;
 trim 3&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
raster ortho.r ortho.g ortho.b&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: ps.map]]&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12317</id>
		<title>Ps.output</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12317"/>
		<updated>2011-01-14T17:48:20Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: /* Command line flags */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ps.out''' try to update the standard postscript output of Grass adding new features to design borders, graticules, categorized legends, etc&lt;br /&gt;
&lt;br /&gt;
'''This is in progress and not all features are yet uploaded in ''addons''. '''&lt;br /&gt;
&lt;br /&gt;
== Command line flags ==&lt;br /&gt;
&lt;br /&gt;
'''-d ''': Draw a 1x1 cm grid on paper to help the placement of the elements of the map.&lt;br /&gt;
&lt;br /&gt;
'''-e''': Create an output file for embedding into another ''ps.out'' map&lt;br /&gt;
&lt;br /&gt;
'''-g''': Use the extended PostScript of Ghostscript (for transparent colors only)&lt;br /&gt;
&lt;br /&gt;
'''-s''': Draw the small digit in the coordinate numbers to lower instead upper position.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;100px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_grid.png|A4 paper with flag -d &lt;br /&gt;
File:ps_out_digit_upper.png|coordinate&lt;br /&gt;
File:ps_out_digit_lower.png|coordinate with flag -s&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generic Instructions ==&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== dimen ====&lt;br /&gt;
&lt;br /&gt;
Define a dimension. Accepted units are:&lt;br /&gt;
&lt;br /&gt;
*; ''unitless'' : e.g. 123. The dimension is the ''number'' by 1/72&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
*; inch : e.g. 1.2inch. &lt;br /&gt;
&lt;br /&gt;
*; milimeters : e.g. 2.3mm.&lt;br /&gt;
&lt;br /&gt;
*; centimeters : e.g. 1.4cm.&lt;br /&gt;
&lt;br /&gt;
*; percentage : e.g. 50%.&amp;lt;br&amp;gt;The position is relative to the size and position of the map in the paper being ''0%'' the left or bottom corner.&lt;br /&gt;
&lt;br /&gt;
==== color ====&lt;br /&gt;
&lt;br /&gt;
Define a color. Accepted formats are:&lt;br /&gt;
&lt;br /&gt;
*; standard GRASS name : e.g. indigo.&lt;br /&gt;
&lt;br /&gt;
*; R&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;G&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;B : e.g. 200:123:90&lt;br /&gt;
&lt;br /&gt;
*; user name : e.g. red5.&amp;lt;br&amp;gt;Defined in ''palette'' block&lt;br /&gt;
&lt;br /&gt;
All formats can add '$(0-1)' to define the opacity of the color (alpha channel); e.g., indigo$.75 or 200:120:120$.2&lt;br /&gt;
&lt;br /&gt;
==== number ====&lt;br /&gt;
&lt;br /&gt;
==== text ====&lt;br /&gt;
&lt;br /&gt;
=== Blocks of instructions ===&lt;br /&gt;
&lt;br /&gt;
A ''block'' begin with the keywords and finish with keyword ''end''&lt;br /&gt;
&lt;br /&gt;
==== font ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a font.&lt;br /&gt;
&lt;br /&gt;
; name (text) : Name of font.&lt;br /&gt;
&lt;br /&gt;
; size (dimen) : Size of font.&lt;br /&gt;
&lt;br /&gt;
; extend (dimen): Expand the width of font.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of font.&lt;br /&gt;
&lt;br /&gt;
; outline yes|no : Outline of the font.&lt;br /&gt;
&lt;br /&gt;
==== line ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a line.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of line.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of line.&lt;br /&gt;
&lt;br /&gt;
; style solid|dashed|dotted|dashdotted|(n1n2...) : Style of line.&lt;br /&gt;
&lt;br /&gt;
; cap butt|round|extended_butt : Cap&lt;br /&gt;
&lt;br /&gt;
; extended (type step height width) : Extended style of line.&amp;lt;br&amp;gt;''type'' = bar, double_bar, line, mark, point, round, square, triangle, xcross.&lt;br /&gt;
&lt;br /&gt;
==== fill ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a fill area.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Fill color.&lt;br /&gt;
&lt;br /&gt;
; pat (file) : Fill pattern.&lt;br /&gt;
&lt;br /&gt;
; lwidth (dimen) : Line width of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; scale (number) : Scale of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; limit (dimen) : Limit the fill to the border with a width of ''dimen''.&lt;br /&gt;
&lt;br /&gt;
==== frame ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a frame.&lt;br /&gt;
&lt;br /&gt;
; where (dimen.1 dimen.2) : Position of frame.&lt;br /&gt;
&lt;br /&gt;
; offset (number.1 number.2) : Fine x and y adjust of the position of frame.&lt;br /&gt;
&lt;br /&gt;
; ref right|left|center upper|lower|center : Position is relative to the ''ref''.&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border line&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of the border line.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the frame.&lt;br /&gt;
&lt;br /&gt;
; rotate (dimen) : &amp;lt;u&amp;gt;todo&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== legend ====&lt;br /&gt;
&lt;br /&gt;
; lpos (number): Position in legend&amp;lt;br&amp;gt;Codes: -1, no show in legend; 0 automatic position; &amp;gt; 0 horizontal position.&lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]): Organize legend in ''number.1'' cols with a optional span of ''number.2''&lt;br /&gt;
&lt;br /&gt;
; interline (dimen): Set partial legend interline&lt;br /&gt;
&lt;br /&gt;
== Map paper ==&lt;br /&gt;
&lt;br /&gt;
=== paper ===&lt;br /&gt;
&lt;br /&gt;
Size of paper. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; paper [A0-6|B0-6|Legal|Ledger|Tabloid|Executive|Folio] : Type of paper (default A4).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; color (color) : Paper color.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Custom size of paper.&lt;br /&gt;
&lt;br /&gt;
; left (dimen), right (dimen), top (dimen), bottom (dimen) : Custom margins (default 0.5&amp;quot; left and right, and 1&amp;quot; top and bottom).&lt;br /&gt;
&lt;br /&gt;
; landscape yes|no : Paper orientation (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''. Set the default font of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''. Free draw as watermarks, before any feature of the map is drawn (see ''draw'').&lt;br /&gt;
&lt;br /&gt;
=== scale ===&lt;br /&gt;
&lt;br /&gt;
Scale of the map.&lt;br /&gt;
&lt;br /&gt;
Simple line command to define the scale of the map. The default is adjust map to the paper dimensions. If the remaining dimensions of the paper not permit the scale, ''ps.out'' adjust the scale to a new value that it fit in the paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scale 1&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;(number) : Scale of map.&amp;lt;br&amp;gt;For example, ''scale 1:500000'' to rescale maparea dimensions.&lt;br /&gt;
&lt;br /&gt;
=== maparea ===&lt;br /&gt;
Define specific dimensions of the map (default defined by command ''scale'')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; maparea : Define characteristics of the map area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border map.&amp;lt;br&amp;gt;Usefull with ''in'' and ''out'' formats of the ''grid'' and ''geogrid'', ignored in ''iho'' and ''can'' formats.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Border color-&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the map area.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Dimensions of the map.&lt;br /&gt;
&lt;br /&gt;
; top (dimen), bottom (dimen) : Position of the top-left corner of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''.&amp;lt;br&amp;gt;Draw onto the map but before the grid lines, vpoints and vlabels are drawn; i.e. this map elements are drawn over the draw elements.&lt;br /&gt;
&lt;br /&gt;
=== palette ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;testing&amp;lt;/U&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; palette&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; light (color text) :&lt;br /&gt;
&lt;br /&gt;
; dark (color text) :&lt;br /&gt;
&lt;br /&gt;
; wheel (number text) :&lt;br /&gt;
&lt;br /&gt;
; monochrome (color number text) :&lt;br /&gt;
&lt;br /&gt;
; complementary (color number text) :&lt;br /&gt;
&lt;br /&gt;
; analogous (color number text) :&lt;br /&gt;
&lt;br /&gt;
; gradient (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; binary (color name) :&lt;br /&gt;
&lt;br /&gt;
; sequential (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; qualitative (number text) :&lt;br /&gt;
&lt;br /&gt;
; diverging (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
== Common elements ==&lt;br /&gt;
&lt;br /&gt;
=== grid and geogrid ===&lt;br /&gt;
&lt;br /&gt;
Draw a border around the map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; grid|geogrid :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; format in|out|+out|can|iho : Type of border (see examples).&lt;br /&gt;
&lt;br /&gt;
; major (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; minor (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; subminor (number) : ''number'' of subdivisons of the minor divisions.&lt;br /&gt;
&lt;br /&gt;
; trim (number) : Cut trailing zeros.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Color of the border.&lt;br /&gt;
&lt;br /&gt;
; cross (number) : Replace lines by cross&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_iho.png|format iho&lt;br /&gt;
File:ps_out_can.png|format can&lt;br /&gt;
File:ps_out_in.png |format in&lt;br /&gt;
File:ps_out_out.png|format +out&lt;br /&gt;
File:ps_out_out1.png|typical map border&lt;br /&gt;
File:ps_out_out2.png|typical map border with ''subminor 5'' and ''fcolor blue''&lt;br /&gt;
File:ps_out_out3.png|''cross 500'', ''fcolor indigo'', ''color 200:200:200'' in '''maparea'''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== scalebar ===&lt;br /&gt;
&lt;br /&gt;
Set a scalebar on the map.&amp;lt;br&amp;gt;Maximun 5 scalebars in each map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scalebar I|s|S|f|F : Define the type of scalebar (I: inner, s/S: simple, f/F: fill).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; length (number) : Length of the scale.&lt;br /&gt;
&lt;br /&gt;
; units meters|m|kilometers|km|feet|ft|miles|mil|nautical_miles|nm ([text]) : Unit of the length and ''text' to label the units.&lt;br /&gt;
&lt;br /&gt;
; major (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; minor (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor.&lt;br /&gt;
&lt;br /&gt;
; height (dimen) : Height of the bar or ticks.&lt;br /&gt;
&lt;br /&gt;
; zero yes|no : Set position relative to zero value of the scalebar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Scalerbar styles&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;50px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_scalebar_s.png|scalebar s&lt;br /&gt;
File:ps_out_scalebar_S.png|scalebar S&lt;br /&gt;
File:ps_out_scalebar_I.png|scalebar I (uppercase i)&lt;br /&gt;
File:ps_out_scalebar_f.png|scalebar f&lt;br /&gt;
File:ps_out_scalebar_F.png|scalebar F&lt;br /&gt;
File:ps_out_scalebar_3.png|Multiple scalebars zero centered with ''zero yes''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== note ===&lt;br /&gt;
Write special text or free text on any place of the paper with frame (also ''draw'' permit write free-text in paper). &lt;br /&gt;
&lt;br /&gt;
Maximun 20 notes by map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; note &amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;file|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;maplimits|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;dimen|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;scale (text)|(text) : Type of note and text to show.&amp;lt;br&amp;gt;When free text, use '|' to break lines and '.' as first character to center line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; text (text) : Another roption to enter the same as inline note text;&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of note.&lt;br /&gt;
&lt;br /&gt;
; angle (number) : ''number'' of degrees to rotate (do not work fine).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Note keywords and free text&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_note_ml.png  |note :maplimits&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_dimen.png|note :dimen&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scale.png|note :scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_free.png|note free text|in multiple lines&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_freec.png|note .free text|.in multiple [...]&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scaler.png|note :scale scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br&amp;gt;&amp;amp;nbsp;angle 90&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== draw ===&lt;br /&gt;
&lt;br /&gt;
Simple script language to draw predefined postscript code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; draw [none|paper|maparea|free] :  &lt;br /&gt;
''paper'': before any map feature is drawn (equivalent to place inside ''paper'' block); &amp;lt;br&amp;gt;&lt;br /&gt;
''maparea'' before the last elements of the map (equivalent to place inside ''mapare'' block) ; &amp;lt;br&amp;gt;&lt;br /&gt;
''none'': draw over all elements of the map but only in the map area; and &amp;lt;br&amp;gt;&lt;br /&gt;
''free'': after all map features are drawn in any place of the paper; and ''none''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; --- : &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_north1.png   |&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;north 700000 4700000&amp;lt;/source&amp;gt;&lt;br /&gt;
File:ps_out_north2.png   |north 5cm 16.5cm -&lt;br /&gt;
File:ps_out_maplimits.png|maplimits&lt;br /&gt;
File:ps_out_compass.png  |compass 700000 4700000 10000 10.2345&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Raster maps ==&lt;br /&gt;
&lt;br /&gt;
=== raster ===&lt;br /&gt;
&lt;br /&gt;
Draw one or two raster maps on the maparea. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; raster (raster|raster.1 raster.2|raster.R raster.G raster.B|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;group) : The ''raster'' value is the raster mapname, two raster maps ''raster.1'' or color and ''raster.2'' or shade to draw as relief map, three maps ''raster.R'', ''raster.G'' and ''raster.B'' to draw as RGB, or a groupname (leader by ':') with tree RGB maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; grey yes|no : Store and draw the rasters in grey scale (small size of file).&amp;lt;br&amp;gt;The conversion follows the NTSC video standard.&lt;br /&gt;
&lt;br /&gt;
; maskcell (raster.1 [raster.2]) : Set the ''raster.1'' map to use as mask (independent of the mask set in GRASS with [[r.mask]]) and, optionally, the ''raster.2'' map uses as background.&amp;lt;br&amp;gt;The background ''raster.2'' is painted in grey scale (NTSC) and tinted with ''maskcolor''.&lt;br /&gt;
&lt;br /&gt;
; maskcolor (color|none) : Set the ''color'' of the mask area.&amp;lt;br&amp;gt;If a raster map as background is set then it's drawn with a scale white-maskcolor.&lt;br /&gt;
&lt;br /&gt;
; outline : Block ''line''. Outline of categories.&lt;br /&gt;
&lt;br /&gt;
; setcolor null|default|(number) (color) : Replace the color of the cat ''number'' area with a new color.&amp;lt;br&amp;gt;Multiple ''setcolor'' are possibles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_raster1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_outline.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;outline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width .2mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;end&amp;lt;br/&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_setcolor.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor white&amp;lt;br&amp;gt;&amp;amp;nbsp;setcolor 37 magenta&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_grey.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;grey yes&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Vector maps ==&lt;br /&gt;
&lt;br /&gt;
All vector map accept optionally the following commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; layer (number) : Layer number used with cats/where option.&lt;br /&gt;
&lt;br /&gt;
; cats (n1,n2,...) : List of ''cat''s to show.&lt;br /&gt;
&lt;br /&gt;
; where (text) : Argument of the SQL where clausule to filter the areas to show.&lt;br /&gt;
&lt;br /&gt;
; masked yes|no : Masked or not by raster mask (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; label (text) : For description or title in ''vlegend''.&lt;br /&gt;
&lt;br /&gt;
; legend [(number)]: Position in legend (-1, no legend) or enter in a block ''legend''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vareas ===&lt;br /&gt;
&lt;br /&gt;
Draw areas on the map.&amp;lt;br&amp;gt;&lt;br /&gt;
The areas always are drawn first, on the bottom of other type of maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vareas (vector) : ''vector'' is a vector of areas, except when ''lwidth'' is different to zero that ''vector'' is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type area|line : Default ''area''.&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Style of the boundary.&lt;br /&gt;
&lt;br /&gt;
; fill : Block ''fill''. Style of the area.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic fill color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Text label when default conditions.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color][|dimen] text) : Make a item of a sublegend with label the ''text'' and title the text of the ''label''.&amp;lt;br&amp;gt;The fillcolor of the areas is set to ''color'' and the line width is set to ''dimen'' when ''column.2'' &amp;gt;= n1 and ''column.2'' &amp;lt; n2  (''column.2'' from ''rgbcol'').&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; island yes|no : Draw island as normal areas (fill as normal area then hide it).&lt;br /&gt;
&lt;br /&gt;
; mirror (dimen [number]) : The line is drawn as an area with a copy of the line placed with polar coordinates: ''dimen' and ''angle''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vareas: sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vareas0.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;color indigo&lt;br /&gt;
File:ps_out_vareas4.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;color indigo&amp;lt;br&amp;gt;&amp;amp;nbsp;limit 3mm&lt;br /&gt;
File:ps_out_vareas3.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;pat patterns/diag_up.eps&lt;br /&gt;
File:ps_out_vareas1.png|rgbcol - cat&amp;lt;br&amp;gt;setrule 0-500:red A&amp;lt;br/&amp;gt;setrule 500-1000:green B&amp;lt;br/&amp;gt;setrule 1000-5000:blue C&lt;br /&gt;
File:ps_out_vareas2.png|island no&lt;br /&gt;
File:ps_out_vareas5.png|vareas roadsmajor&amp;lt;br&amp;gt;&amp;amp;nbsp;cat 24,28,32,38,53&amp;lt;br&amp;gt;&amp;amp;nbsp;mirror 5 90&amp;lt;br&amp;gt;[and fill with pat cruz.eps]&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlines ===&lt;br /&gt;
&lt;br /&gt;
Draw lines on the map.&amp;lt;br&amp;gt;The areas always are drawn second, after ''vareas'' and before ''vpoints''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlines (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of lines, except if ''type'' is boundary that ''vector'' is a vector of areas.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Optional commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type line|boundary : Draw boundaries of a vector of areas or lines of a vector of lines (default ''line'').&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Normal line.&lt;br /&gt;
&lt;br /&gt;
; hline : Block ''line''. Highlight line.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Works with ''hline'' to offset from the center of ''line''.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic line color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Label in legend when default values and ''setcolor'' rules.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with ''text'' as label and title the text of the ''label''. Also, the color of the normal line with column &amp;gt;= n1 and column &amp;lt; n2 (column from rgbcol), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlines: sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlines0.png|hline&lt;br /&gt;
File:ps_out_vlines1.png|line 0.05mm&amp;lt;br&amp;gt;setrule 100:brown|.25mm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vpoints ===&lt;br /&gt;
&lt;br /&gt;
Draw points on the map.&amp;lt;br&amp;gt;The points always are drawn last, after ''vareas'' and ''vlines''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vpoints (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of points, except when '''type''' is ''centroid'' or ''boundary'' that it is a vector of areas, or when '''type''' is ''line'' that it is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; type centroid|line|boundary|point : Type of draw (default ''point'').&lt;br /&gt;
&lt;br /&gt;
; symbol (epsfile) : Symbol to use (default: basic/circle).&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Type of line in the symbol.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color): Static fillcolor of the symbol.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Offset of the symbol.&lt;br /&gt;
&lt;br /&gt;
; rotate (number|column) : Angle to rotate the symbol, static ''number'' or dynamic in a ''column'' of the database.&lt;br /&gt;
&lt;br /&gt;
; size (number|column [number]) : Size of the symbol take from ''number'' or from a ''column'' of the database. In the last option, there is a optional ''number'' to define the static size of the symbol in the legend when the size of symbols are dynamic. &lt;br /&gt;
&lt;br /&gt;
; scale (dimen.1 [dimen.2]) : Rescale the size of the symbol by the ''dimen.1'' and, optionally, add a ''dimen.2''. i.e., ''resize = dimen.1 * size + dimen.2''.&lt;br /&gt;
&lt;br /&gt;
; setsize (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;size] text) : Variable size of symbols from data in ''column'' of database set in ''size''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands when type is line&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; dist (dimen) : Define the distance in paper between symbol over the line.&lt;br /&gt;
&lt;br /&gt;
; cline : Block ''line''. Type of line that connect symbols.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vpoints: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vpoints0.png|''Points with same size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size 5&lt;br /&gt;
File:ps_out_vpoints1.png|''Points with dynamic size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT 5&amp;lt;br&amp;gt;&amp;amp;nbsp;scale 0.01 2&lt;br /&gt;
File:ps_out_vpoints2.png|''Points with conditional size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 200-1000:3 &amp;lt; 1000&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 1000-2500:9 &amp;gt; 1000&lt;br /&gt;
File:ps_out_vpoints3.png|''Points on line ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;type line&amp;lt;br&amp;gt;&amp;amp;nbsp;dist 1cm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlabels ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;in progress&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlabels none|(vector) :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; font :&lt;br /&gt;
&lt;br /&gt;
; labelcol (column) :&lt;br /&gt;
&lt;br /&gt;
; decimals (number) :&lt;br /&gt;
&lt;br /&gt;
; circled yes|no :&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2 text)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlabels0.png|vpoints firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;[...]&amp;lt;br/n&amp;gt;end&amp;lt;br/&amp;gt;vlabels firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;labelcol PUMPERS&amp;lt;br/n&amp;gt;&amp;amp;nbsp;font&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;name Univers-Bold&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;size 10&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color yellow&amp;lt;br/n&amp;gt;&amp;amp;nbsp;end&amp;lt;br/n&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Legend of the maps ==&lt;br /&gt;
&lt;br /&gt;
=== rlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the raster map.&amp;lt;br&amp;gt;The units ''meters'' in the gradient legend is set with {{cmd|r.support}}.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; rlegend [text] : Text is the title of the legend. &lt;br /&gt;
&lt;br /&gt;
; raster (raster) : the ''raster'' map to take the data of legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commads are optionals&amp;lt;/U&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; titlefont : Block ''font'' for the legend header.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font'' for the normal text.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Width of the symbol area.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For category legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; cols (number) [(number)] : Number of columns with symbols and separation between columns (default ''1'').&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Vertical space between symbols (o to join symbols)&lt;br /&gt;
&lt;br /&gt;
; nodata yes|no : Remove category ''no data''.&lt;br /&gt;
&lt;br /&gt;
; order (n1,n2,...) : To reorder the items.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For gradient legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; height (dimen), width (dimen) : Dimension of the frame with the legend.&lt;br /&gt;
&lt;br /&gt;
; vertical yes|no : Orientation of the gradient legend (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; range (n1 n2) : Manual set of the data range for legend.&lt;br /&gt;
&lt;br /&gt;
; gradient yes|no : Forze draw gradient legend with category data.&lt;br /&gt;
&lt;br /&gt;
; tick (dimen) : Length of the ticks.&lt;br /&gt;
&lt;br /&gt;
; whiteframe (dimen) : Width of the white frame around the bar color.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;250px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_rlegend.png|rlegend Zip Codes (wake)&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster zipcodes_wake&amp;lt;br/&amp;gt;&amp;amp;nbsp;cols 2 0&amp;lt;br/&amp;gt;&amp;amp;nbsp;swidth 8mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;order 20,10,30,22,34&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend1.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;height 8cm&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend2.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;width 8cm&amp;lt;br/&amp;gt;&amp;amp;nbsp;vertical no&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the vector maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlegend [text] : Optional the title or head of the legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; title : Block ''font'' for title of legend.&lt;br /&gt;
&lt;br /&gt;
; font : Block font for normal text of legend.&lt;br /&gt;
&lt;br /&gt;
; frame : &lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]) : Distribution of the items in ''number.1'' cols. Optionaly, ''number.2'' of span between columns.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Symbol width.&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Space between lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlegend: sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_output_vlegend0.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conversion to PDF ==&lt;br /&gt;
&lt;br /&gt;
You can obtain good results with these settings:&lt;br /&gt;
  ps2pdf14 -dPDFSETTINGS=/prepress -dEmbedAllFonts=true map.ps map.pdf&lt;br /&gt;
&lt;br /&gt;
== Example for ps.output control script ==&lt;br /&gt;
&lt;br /&gt;
This is the content of a ps.output control file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
paper A4&lt;br /&gt;
 landscape y&lt;br /&gt;
end&lt;br /&gt;
maparea&lt;br /&gt;
 height 12cm&lt;br /&gt;
 border .8mm&lt;br /&gt;
 color grey&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
grid&lt;br /&gt;
 major 100000&lt;br /&gt;
  width .1mm&lt;br /&gt;
  color white&lt;br /&gt;
 end&lt;br /&gt;
 minor 50000&lt;br /&gt;
  width .1mm&lt;br /&gt;
  color white&lt;br /&gt;
  style 1&lt;br /&gt;
 end&lt;br /&gt;
 font&lt;br /&gt;
  name Univers&lt;br /&gt;
  size 6&lt;br /&gt;
  extend 1.2&lt;br /&gt;
  color black&lt;br /&gt;
 end&lt;br /&gt;
 fcolor black&lt;br /&gt;
 format +out&lt;br /&gt;
 trim 3&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
raster ortho.r ortho.g ortho.b&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: ps.map]]&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12316</id>
		<title>Ps.output</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12316"/>
		<updated>2011-01-14T16:08:24Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: /* rlegend */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ps.out''' try to update the standard postscript output of Grass adding new features to design borders, graticules, categorized legends, etc&lt;br /&gt;
&lt;br /&gt;
'''This is in progress and not all features are yet uploaded in ''addons''. '''&lt;br /&gt;
&lt;br /&gt;
== Command line flags ==&lt;br /&gt;
&lt;br /&gt;
'''-d ''': Draw a 1x1 cm grid on paper to help the placement of the elements of the map.&lt;br /&gt;
&lt;br /&gt;
'''-e''': Create output as EPS file for embedding into another ''ps.out'' map&lt;br /&gt;
&lt;br /&gt;
'''-g''': Use the extended PostScript of Ghostscript (for transparent colors only)&lt;br /&gt;
&lt;br /&gt;
'''-s''': Draw the small digit in the coordinate numbers to lower instead upper position.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;100px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_grid.png|A4 paper with flag -d &lt;br /&gt;
File:ps_out_digit_upper.png|coordinate&lt;br /&gt;
File:ps_out_digit_lower.png|coordinate with flag -s&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generic Instructions ==&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== dimen ====&lt;br /&gt;
&lt;br /&gt;
Define a dimension. Accepted units are:&lt;br /&gt;
&lt;br /&gt;
*; ''unitless'' : e.g. 123. The dimension is the ''number'' by 1/72&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
*; inch : e.g. 1.2inch. &lt;br /&gt;
&lt;br /&gt;
*; milimeters : e.g. 2.3mm.&lt;br /&gt;
&lt;br /&gt;
*; centimeters : e.g. 1.4cm.&lt;br /&gt;
&lt;br /&gt;
*; percentage : e.g. 50%.&amp;lt;br&amp;gt;The position is relative to the size and position of the map in the paper being ''0%'' the left or bottom corner.&lt;br /&gt;
&lt;br /&gt;
==== color ====&lt;br /&gt;
&lt;br /&gt;
Define a color. Accepted formats are:&lt;br /&gt;
&lt;br /&gt;
*; standard GRASS name : e.g. indigo.&lt;br /&gt;
&lt;br /&gt;
*; R&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;G&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;B : e.g. 200:123:90&lt;br /&gt;
&lt;br /&gt;
*; user name : e.g. red5.&amp;lt;br&amp;gt;Defined in ''palette'' block&lt;br /&gt;
&lt;br /&gt;
All formats can add '$(0-1)' to define the opacity of the color (alpha channel); e.g., indigo$.75 or 200:120:120$.2&lt;br /&gt;
&lt;br /&gt;
==== number ====&lt;br /&gt;
&lt;br /&gt;
==== text ====&lt;br /&gt;
&lt;br /&gt;
=== Blocks of instructions ===&lt;br /&gt;
&lt;br /&gt;
A ''block'' begin with the keywords and finish with keyword ''end''&lt;br /&gt;
&lt;br /&gt;
==== font ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a font.&lt;br /&gt;
&lt;br /&gt;
; name (text) : Name of font.&lt;br /&gt;
&lt;br /&gt;
; size (dimen) : Size of font.&lt;br /&gt;
&lt;br /&gt;
; extend (dimen): Expand the width of font.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of font.&lt;br /&gt;
&lt;br /&gt;
; outline yes|no : Outline of the font.&lt;br /&gt;
&lt;br /&gt;
==== line ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a line.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of line.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of line.&lt;br /&gt;
&lt;br /&gt;
; style solid|dashed|dotted|dashdotted|(n1n2...) : Style of line.&lt;br /&gt;
&lt;br /&gt;
; cap butt|round|extended_butt : Cap&lt;br /&gt;
&lt;br /&gt;
; extended (type step height width) : Extended style of line.&amp;lt;br&amp;gt;''type'' = bar, double_bar, line, mark, point, round, square, triangle, xcross.&lt;br /&gt;
&lt;br /&gt;
==== fill ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a fill area.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Fill color.&lt;br /&gt;
&lt;br /&gt;
; pat (file) : Fill pattern.&lt;br /&gt;
&lt;br /&gt;
; lwidth (dimen) : Line width of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; scale (number) : Scale of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; limit (dimen) : Limit the fill to the border with a width of ''dimen''.&lt;br /&gt;
&lt;br /&gt;
==== frame ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a frame.&lt;br /&gt;
&lt;br /&gt;
; where (dimen.1 dimen.2) : Position of frame.&lt;br /&gt;
&lt;br /&gt;
; offset (number.1 number.2) : Fine x and y adjust of the position of frame.&lt;br /&gt;
&lt;br /&gt;
; ref right|left|center upper|lower|center : Position is relative to the ''ref''.&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border line&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of the border line.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the frame.&lt;br /&gt;
&lt;br /&gt;
; rotate (dimen) : &amp;lt;u&amp;gt;todo&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== legend ====&lt;br /&gt;
&lt;br /&gt;
; lpos (number): Position in legend&amp;lt;br&amp;gt;Codes: -1, no show in legend; 0 automatic position; &amp;gt; 0 horizontal position.&lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]): Organize legend in ''number.1'' cols with a optional span of ''number.2''&lt;br /&gt;
&lt;br /&gt;
; interline (dimen): Set partial legend interline&lt;br /&gt;
&lt;br /&gt;
== Map paper ==&lt;br /&gt;
&lt;br /&gt;
=== paper ===&lt;br /&gt;
&lt;br /&gt;
Size of paper. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; paper [A0-6|B0-6|Legal|Ledger|Tabloid|Executive|Folio] : Type of paper (default A4).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; color (color) : Paper color.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Custom size of paper.&lt;br /&gt;
&lt;br /&gt;
; left (dimen), right (dimen), top (dimen), bottom (dimen) : Custom margins (default 0.5&amp;quot; left and right, and 1&amp;quot; top and bottom).&lt;br /&gt;
&lt;br /&gt;
; landscape yes|no : Paper orientation (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''. Set the default font of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''. Free draw as watermarks, before any feature of the map is drawn (see ''draw'').&lt;br /&gt;
&lt;br /&gt;
=== scale ===&lt;br /&gt;
&lt;br /&gt;
Scale of the map.&lt;br /&gt;
&lt;br /&gt;
Simple line command to define the scale of the map. The default is adjust map to the paper dimensions. If the remaining dimensions of the paper not permit the scale, ''ps.out'' adjust the scale to a new value that it fit in the paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scale 1&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;(number) : Scale of map.&amp;lt;br&amp;gt;For example, ''scale 1:500000'' to rescale maparea dimensions.&lt;br /&gt;
&lt;br /&gt;
=== maparea ===&lt;br /&gt;
Define specific dimensions of the map (default defined by command ''scale'')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; maparea : Define characteristics of the map area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border map.&amp;lt;br&amp;gt;Usefull with ''in'' and ''out'' formats of the ''grid'' and ''geogrid'', ignored in ''iho'' and ''can'' formats.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Border color-&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the map area.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Dimensions of the map.&lt;br /&gt;
&lt;br /&gt;
; top (dimen), bottom (dimen) : Position of the top-left corner of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''.&amp;lt;br&amp;gt;Draw onto the map but before the grid lines, vpoints and vlabels are drawn; i.e. this map elements are drawn over the draw elements.&lt;br /&gt;
&lt;br /&gt;
=== palette ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;testing&amp;lt;/U&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; palette&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; light (color text) :&lt;br /&gt;
&lt;br /&gt;
; dark (color text) :&lt;br /&gt;
&lt;br /&gt;
; wheel (number text) :&lt;br /&gt;
&lt;br /&gt;
; monochrome (color number text) :&lt;br /&gt;
&lt;br /&gt;
; complementary (color number text) :&lt;br /&gt;
&lt;br /&gt;
; analogous (color number text) :&lt;br /&gt;
&lt;br /&gt;
; gradient (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; binary (color name) :&lt;br /&gt;
&lt;br /&gt;
; sequential (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; qualitative (number text) :&lt;br /&gt;
&lt;br /&gt;
; diverging (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
== Common elements ==&lt;br /&gt;
&lt;br /&gt;
=== grid and geogrid ===&lt;br /&gt;
&lt;br /&gt;
Draw a border around the map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; grid|geogrid :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; format in|out|+out|can|iho : Type of border (see examples).&lt;br /&gt;
&lt;br /&gt;
; major (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; minor (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; subminor (number) : ''number'' of subdivisons of the minor divisions.&lt;br /&gt;
&lt;br /&gt;
; trim (number) : Cut trailing zeros.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Color of the border.&lt;br /&gt;
&lt;br /&gt;
; cross (number) : Replace lines by cross&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_iho.png|format iho&lt;br /&gt;
File:ps_out_can.png|format can&lt;br /&gt;
File:ps_out_in.png |format in&lt;br /&gt;
File:ps_out_out.png|format +out&lt;br /&gt;
File:ps_out_out1.png|typical map border&lt;br /&gt;
File:ps_out_out2.png|typical map border with ''subminor 5'' and ''fcolor blue''&lt;br /&gt;
File:ps_out_out3.png|''cross 500'', ''fcolor indigo'', ''color 200:200:200'' in '''maparea'''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== scalebar ===&lt;br /&gt;
&lt;br /&gt;
Set a scalebar on the map.&amp;lt;br&amp;gt;Maximun 5 scalebars in each map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scalebar I|s|S|f|F : Define the type of scalebar (I: inner, s/S: simple, f/F: fill).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; length (number) : Length of the scale.&lt;br /&gt;
&lt;br /&gt;
; units meters|m|kilometers|km|feet|ft|miles|mil|nautical_miles|nm ([text]) : Unit of the length and ''text' to label the units.&lt;br /&gt;
&lt;br /&gt;
; major (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; minor (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor.&lt;br /&gt;
&lt;br /&gt;
; height (dimen) : Height of the bar or ticks.&lt;br /&gt;
&lt;br /&gt;
; zero yes|no : Set position relative to zero value of the scalebar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Scalerbar styles&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;50px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_scalebar_s.png|scalebar s&lt;br /&gt;
File:ps_out_scalebar_S.png|scalebar S&lt;br /&gt;
File:ps_out_scalebar_I.png|scalebar I (uppercase i)&lt;br /&gt;
File:ps_out_scalebar_f.png|scalebar f&lt;br /&gt;
File:ps_out_scalebar_F.png|scalebar F&lt;br /&gt;
File:ps_out_scalebar_3.png|Multiple scalebars zero centered with ''zero yes''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== note ===&lt;br /&gt;
Write special text or free text on any place of the paper with frame (also ''draw'' permit write free-text in paper). &lt;br /&gt;
&lt;br /&gt;
Maximun 20 notes by map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; note &amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;file|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;maplimits|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;dimen|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;scale (text)|(text) : Type of note and text to show.&amp;lt;br&amp;gt;When free text, use '|' to break lines and '.' as first character to center line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; text (text) : Another roption to enter the same as inline note text;&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of note.&lt;br /&gt;
&lt;br /&gt;
; angle (number) : ''number'' of degrees to rotate (do not work fine).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Note keywords and free text&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_note_ml.png  |note :maplimits&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_dimen.png|note :dimen&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scale.png|note :scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_free.png|note free text|in multiple lines&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_freec.png|note .free text|.in multiple [...]&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scaler.png|note :scale scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br&amp;gt;&amp;amp;nbsp;angle 90&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== draw ===&lt;br /&gt;
&lt;br /&gt;
Simple script language to draw predefined postscript code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; draw [none|paper|maparea|free] :  &lt;br /&gt;
''paper'': before any map feature is drawn (equivalent to place inside ''paper'' block); &amp;lt;br&amp;gt;&lt;br /&gt;
''maparea'' before the last elements of the map (equivalent to place inside ''mapare'' block) ; &amp;lt;br&amp;gt;&lt;br /&gt;
''none'': draw over all elements of the map but only in the map area; and &amp;lt;br&amp;gt;&lt;br /&gt;
''free'': after all map features are drawn in any place of the paper; and ''none''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; --- : &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_north1.png   |&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;north 700000 4700000&amp;lt;/source&amp;gt;&lt;br /&gt;
File:ps_out_north2.png   |north 5cm 16.5cm -&lt;br /&gt;
File:ps_out_maplimits.png|maplimits&lt;br /&gt;
File:ps_out_compass.png  |compass 700000 4700000 10000 10.2345&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Raster maps ==&lt;br /&gt;
&lt;br /&gt;
=== raster ===&lt;br /&gt;
&lt;br /&gt;
Draw one or two raster maps on the maparea. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; raster (raster|raster.1 raster.2|raster.R raster.G raster.B|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;group) : The ''raster'' value is the raster mapname, two raster maps ''raster.1'' or color and ''raster.2'' or shade to draw as relief map, three maps ''raster.R'', ''raster.G'' and ''raster.B'' to draw as RGB, or a groupname (leader by ':') with tree RGB maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; grey yes|no : Store and draw the rasters in grey scale (small size of file).&amp;lt;br&amp;gt;The conversion follows the NTSC video standard.&lt;br /&gt;
&lt;br /&gt;
; maskcell (raster.1 [raster.2]) : Set the ''raster.1'' map to use as mask (independent of the mask set in GRASS with [[r.mask]]) and, optionally, the ''raster.2'' map uses as background.&amp;lt;br&amp;gt;The background ''raster.2'' is painted in grey scale (NTSC) and tinted with ''maskcolor''.&lt;br /&gt;
&lt;br /&gt;
; maskcolor (color|none) : Set the ''color'' of the mask area.&amp;lt;br&amp;gt;If a raster map as background is set then it's drawn with a scale white-maskcolor.&lt;br /&gt;
&lt;br /&gt;
; outline : Block ''line''. Outline of categories.&lt;br /&gt;
&lt;br /&gt;
; setcolor null|default|(number) (color) : Replace the color of the cat ''number'' area with a new color.&amp;lt;br&amp;gt;Multiple ''setcolor'' are possibles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_raster1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_outline.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;outline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width .2mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;end&amp;lt;br/&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_setcolor.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor white&amp;lt;br&amp;gt;&amp;amp;nbsp;setcolor 37 magenta&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_grey.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;grey yes&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Vector maps ==&lt;br /&gt;
&lt;br /&gt;
All vector map accept optionally the following commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; layer (number) : Layer number used with cats/where option.&lt;br /&gt;
&lt;br /&gt;
; cats (n1,n2,...) : List of ''cat''s to show.&lt;br /&gt;
&lt;br /&gt;
; where (text) : Argument of the SQL where clausule to filter the areas to show.&lt;br /&gt;
&lt;br /&gt;
; masked yes|no : Masked or not by raster mask (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; label (text) : For description or title in ''vlegend''.&lt;br /&gt;
&lt;br /&gt;
; legend [(number)]: Position in legend (-1, no legend) or enter in a block ''legend''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vareas ===&lt;br /&gt;
&lt;br /&gt;
Draw areas on the map.&amp;lt;br&amp;gt;&lt;br /&gt;
The areas always are drawn first, on the bottom of other type of maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vareas (vector) : ''vector'' is a vector of areas, except when ''lwidth'' is different to zero that ''vector'' is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type area|line : Default ''area''.&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Style of the boundary.&lt;br /&gt;
&lt;br /&gt;
; fill : Block ''fill''. Style of the area.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic fill color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Text label when default conditions.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color][|dimen] text) : Make a item of a sublegend with label the ''text'' and title the text of the ''label''.&amp;lt;br&amp;gt;The fillcolor of the areas is set to ''color'' and the line width is set to ''dimen'' when ''column.2'' &amp;gt;= n1 and ''column.2'' &amp;lt; n2  (''column.2'' from ''rgbcol'').&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; island yes|no : Draw island as normal areas (fill as normal area then hide it).&lt;br /&gt;
&lt;br /&gt;
; mirror (dimen [number]) : The line is drawn as an area with a copy of the line placed with polar coordinates: ''dimen' and ''angle''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vareas: sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vareas0.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;color indigo&lt;br /&gt;
File:ps_out_vareas4.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;color indigo&amp;lt;br&amp;gt;&amp;amp;nbsp;limit 3mm&lt;br /&gt;
File:ps_out_vareas3.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;pat patterns/diag_up.eps&lt;br /&gt;
File:ps_out_vareas1.png|rgbcol - cat&amp;lt;br&amp;gt;setrule 0-500:red A&amp;lt;br/&amp;gt;setrule 500-1000:green B&amp;lt;br/&amp;gt;setrule 1000-5000:blue C&lt;br /&gt;
File:ps_out_vareas2.png|island no&lt;br /&gt;
File:ps_out_vareas5.png|vareas roadsmajor&amp;lt;br&amp;gt;&amp;amp;nbsp;cat 24,28,32,38,53&amp;lt;br&amp;gt;&amp;amp;nbsp;mirror 5 90&amp;lt;br&amp;gt;[and fill with pat cruz.eps]&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlines ===&lt;br /&gt;
&lt;br /&gt;
Draw lines on the map.&amp;lt;br&amp;gt;The areas always are drawn second, after ''vareas'' and before ''vpoints''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlines (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of lines, except if ''type'' is boundary that ''vector'' is a vector of areas.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Optional commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type line|boundary : Draw boundaries of a vector of areas or lines of a vector of lines (default ''line'').&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Normal line.&lt;br /&gt;
&lt;br /&gt;
; hline : Block ''line''. Highlight line.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Works with ''hline'' to offset from the center of ''line''.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic line color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Label in legend when default values and ''setcolor'' rules.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with ''text'' as label and title the text of the ''label''. Also, the color of the normal line with column &amp;gt;= n1 and column &amp;lt; n2 (column from rgbcol), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlines: sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlines0.png|hline&lt;br /&gt;
File:ps_out_vlines1.png|line 0.05mm&amp;lt;br&amp;gt;setrule 100:brown|.25mm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vpoints ===&lt;br /&gt;
&lt;br /&gt;
Draw points on the map.&amp;lt;br&amp;gt;The points always are drawn last, after ''vareas'' and ''vlines''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vpoints (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of points, except when '''type''' is ''centroid'' or ''boundary'' that it is a vector of areas, or when '''type''' is ''line'' that it is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; type centroid|line|boundary|point : Type of draw (default ''point'').&lt;br /&gt;
&lt;br /&gt;
; symbol (epsfile) : Symbol to use (default: basic/circle).&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Type of line in the symbol.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color): Static fillcolor of the symbol.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Offset of the symbol.&lt;br /&gt;
&lt;br /&gt;
; rotate (number|column) : Angle to rotate the symbol, static ''number'' or dynamic in a ''column'' of the database.&lt;br /&gt;
&lt;br /&gt;
; size (number|column [number]) : Size of the symbol take from ''number'' or from a ''column'' of the database. In the last option, there is a optional ''number'' to define the static size of the symbol in the legend when the size of symbols are dynamic. &lt;br /&gt;
&lt;br /&gt;
; scale (dimen.1 [dimen.2]) : Rescale the size of the symbol by the ''dimen.1'' and, optionally, add a ''dimen.2''. i.e., ''resize = dimen.1 * size + dimen.2''.&lt;br /&gt;
&lt;br /&gt;
; setsize (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;size] text) : Variable size of symbols from data in ''column'' of database set in ''size''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands when type is line&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; dist (dimen) : Define the distance in paper between symbol over the line.&lt;br /&gt;
&lt;br /&gt;
; cline : Block ''line''. Type of line that connect symbols.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vpoints: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vpoints0.png|''Points with same size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size 5&lt;br /&gt;
File:ps_out_vpoints1.png|''Points with dynamic size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT 5&amp;lt;br&amp;gt;&amp;amp;nbsp;scale 0.01 2&lt;br /&gt;
File:ps_out_vpoints2.png|''Points with conditional size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 200-1000:3 &amp;lt; 1000&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 1000-2500:9 &amp;gt; 1000&lt;br /&gt;
File:ps_out_vpoints3.png|''Points on line ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;type line&amp;lt;br&amp;gt;&amp;amp;nbsp;dist 1cm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlabels ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;in progress&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlabels none|(vector) :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; font :&lt;br /&gt;
&lt;br /&gt;
; labelcol (column) :&lt;br /&gt;
&lt;br /&gt;
; decimals (number) :&lt;br /&gt;
&lt;br /&gt;
; circled yes|no :&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2 text)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlabels0.png|vpoints firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;[...]&amp;lt;br/n&amp;gt;end&amp;lt;br/&amp;gt;vlabels firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;labelcol PUMPERS&amp;lt;br/n&amp;gt;&amp;amp;nbsp;font&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;name Univers-Bold&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;size 10&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color yellow&amp;lt;br/n&amp;gt;&amp;amp;nbsp;end&amp;lt;br/n&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Legend of the maps ==&lt;br /&gt;
&lt;br /&gt;
=== rlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the raster map.&amp;lt;br&amp;gt;The units ''meters'' in the gradient legend is set with {{cmd|r.support}}.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; rlegend [text] : Text is the title of the legend. &lt;br /&gt;
&lt;br /&gt;
; raster (raster) : the ''raster'' map to take the data of legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commads are optionals&amp;lt;/U&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; titlefont : Block ''font'' for the legend header.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font'' for the normal text.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Width of the symbol area.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For category legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; cols (number) [(number)] : Number of columns with symbols and separation between columns (default ''1'').&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Vertical space between symbols (o to join symbols)&lt;br /&gt;
&lt;br /&gt;
; nodata yes|no : Remove category ''no data''.&lt;br /&gt;
&lt;br /&gt;
; order (n1,n2,...) : To reorder the items.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For gradient legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; height (dimen), width (dimen) : Dimension of the frame with the legend.&lt;br /&gt;
&lt;br /&gt;
; vertical yes|no : Orientation of the gradient legend (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; range (n1 n2) : Manual set of the data range for legend.&lt;br /&gt;
&lt;br /&gt;
; gradient yes|no : Forze draw gradient legend with category data.&lt;br /&gt;
&lt;br /&gt;
; tick (dimen) : Length of the ticks.&lt;br /&gt;
&lt;br /&gt;
; whiteframe (dimen) : Width of the white frame around the bar color.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;250px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_rlegend.png|rlegend Zip Codes (wake)&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster zipcodes_wake&amp;lt;br/&amp;gt;&amp;amp;nbsp;cols 2 0&amp;lt;br/&amp;gt;&amp;amp;nbsp;swidth 8mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;order 20,10,30,22,34&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend1.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;height 8cm&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend2.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;width 8cm&amp;lt;br/&amp;gt;&amp;amp;nbsp;vertical no&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the vector maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlegend [text] : Optional the title or head of the legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; title : Block ''font'' for title of legend.&lt;br /&gt;
&lt;br /&gt;
; font : Block font for normal text of legend.&lt;br /&gt;
&lt;br /&gt;
; frame : &lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]) : Distribution of the items in ''number.1'' cols. Optionaly, ''number.2'' of span between columns.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Symbol width.&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Space between lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlegend: sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_output_vlegend0.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conversion to PDF ==&lt;br /&gt;
&lt;br /&gt;
You can obtain good results with these settings:&lt;br /&gt;
  ps2pdf14 -dPDFSETTINGS=/prepress -dEmbedAllFonts=true map.ps map.pdf&lt;br /&gt;
&lt;br /&gt;
== Example for ps.output control script ==&lt;br /&gt;
&lt;br /&gt;
This is the content of a ps.output control file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
paper A4&lt;br /&gt;
 landscape y&lt;br /&gt;
end&lt;br /&gt;
maparea&lt;br /&gt;
 height 12cm&lt;br /&gt;
 border .8mm&lt;br /&gt;
 color grey&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
grid&lt;br /&gt;
 major 100000&lt;br /&gt;
  width .1mm&lt;br /&gt;
  color white&lt;br /&gt;
 end&lt;br /&gt;
 minor 50000&lt;br /&gt;
  width .1mm&lt;br /&gt;
  color white&lt;br /&gt;
  style 1&lt;br /&gt;
 end&lt;br /&gt;
 font&lt;br /&gt;
  name Univers&lt;br /&gt;
  size 6&lt;br /&gt;
  extend 1.2&lt;br /&gt;
  color black&lt;br /&gt;
 end&lt;br /&gt;
 fcolor black&lt;br /&gt;
 format +out&lt;br /&gt;
 trim 3&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
raster ortho.r ortho.g ortho.b&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: ps.map]]&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12067</id>
		<title>Ps.output</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12067"/>
		<updated>2010-11-06T16:07:39Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: /* line */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ps.out''' try to update the standard postscript output of Grass adding new features to design borders, graticules, categorized legends, etc&lt;br /&gt;
&lt;br /&gt;
'''This is in progress and not all features are yet uploaded in ''addons''. '''&lt;br /&gt;
&lt;br /&gt;
== Command line flags ==&lt;br /&gt;
&lt;br /&gt;
'''-d ''': Draw a 1x1 cm grid on paper to help the placement of the elements of the map.&lt;br /&gt;
&lt;br /&gt;
'''-e''': Make an output file without the postscript header. Useful when is embebed into other ''ps.out'' map.&lt;br /&gt;
&lt;br /&gt;
'''-g''': Use the extended PostScript of Ghostscript (for transparent colors only)&lt;br /&gt;
&lt;br /&gt;
'''-s''': Draw the small digit in the coordinate numbers to lower instead upper possition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;100px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_grid.png|A4 paper with flag -d &lt;br /&gt;
File:ps_out_digit_upper.png|coordinate&lt;br /&gt;
File:ps_out_digit_lower.png|coordinate with flag -s&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generic Instructions ==&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== dimen ====&lt;br /&gt;
&lt;br /&gt;
Define a dimension. Accepted units are:&lt;br /&gt;
&lt;br /&gt;
*; ''unitless'' : e.g. 123. The dimension is the ''number'' by 1/72&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
*; inch : e.g. 1.2inch. &lt;br /&gt;
&lt;br /&gt;
*; milimeters : e.g. 2.3mm.&lt;br /&gt;
&lt;br /&gt;
*; centimeters : e.g. 1.4cm.&lt;br /&gt;
&lt;br /&gt;
*; percentage : e.g. 50%.&amp;lt;br&amp;gt;The position is relative to the size and position of the map in the paper being ''0%'' the left or bottom corner.&lt;br /&gt;
&lt;br /&gt;
==== color ====&lt;br /&gt;
&lt;br /&gt;
Define a color. Accepted formats are:&lt;br /&gt;
&lt;br /&gt;
*; standard GRASS name : e.g. indigo.&lt;br /&gt;
&lt;br /&gt;
*; R&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;G&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;B : e.g. 200:123:90&lt;br /&gt;
&lt;br /&gt;
*; user name : e.g. red5.&amp;lt;br&amp;gt;Defined in ''palette'' block&lt;br /&gt;
&lt;br /&gt;
All formats can add '$(0-1)' to define the opacity of the color (alpha channel); e.g., indigo$.75 or 200:120:120$.2&lt;br /&gt;
&lt;br /&gt;
==== number ====&lt;br /&gt;
&lt;br /&gt;
==== text ====&lt;br /&gt;
&lt;br /&gt;
=== Blocks of instructions ===&lt;br /&gt;
&lt;br /&gt;
A ''block'' begin with the keywords and finish with keyword ''end''&lt;br /&gt;
&lt;br /&gt;
==== font ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a font.&lt;br /&gt;
&lt;br /&gt;
; name (text) : Name of font.&lt;br /&gt;
&lt;br /&gt;
; size (dimen) : Size of font.&lt;br /&gt;
&lt;br /&gt;
; extend (dimen): Expand the width of font.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of font.&lt;br /&gt;
&lt;br /&gt;
; outline yes|no : Outline of the font.&lt;br /&gt;
&lt;br /&gt;
==== line ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a line.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of line.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of line.&lt;br /&gt;
&lt;br /&gt;
; style solid|dashed|dotted|dashdotted|(n1n2...) : Style of line.&lt;br /&gt;
&lt;br /&gt;
; cap butt|round|extended_butt : Cap&lt;br /&gt;
&lt;br /&gt;
; extended (type step height width) : Extended style of line.&amp;lt;br&amp;gt;''type'' = bar, double_bar, line, mark, point, round, square, triangle, xcross.&lt;br /&gt;
&lt;br /&gt;
==== fill ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a fill area.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Fill color.&lt;br /&gt;
&lt;br /&gt;
; pat (file) : Fill pattern.&lt;br /&gt;
&lt;br /&gt;
; lwidth (dimen) : Line width of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; scale (number) : Scale of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; limit (dimen) : Limit the fill to the border with a width of ''dimen''.&lt;br /&gt;
&lt;br /&gt;
==== frame ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a frame.&lt;br /&gt;
&lt;br /&gt;
; where (dimen.1 dimen.2) : Position of frame.&lt;br /&gt;
&lt;br /&gt;
; offset (number.1 number.2) : Fine x and y adjust of the position of frame.&lt;br /&gt;
&lt;br /&gt;
; ref right|left|center upper|lower|center : Position is relative to the ''ref''.&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border line&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of the border line.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the frame.&lt;br /&gt;
&lt;br /&gt;
; rotate (dimen) : &amp;lt;u&amp;gt;todo&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== legend ====&lt;br /&gt;
&lt;br /&gt;
; lpos (number): Position in legend&amp;lt;br&amp;gt;Codes: -1, no show in legend; 0 automatic position; &amp;gt; 0 horizontal position.&lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]): Organize legend in ''number.1'' cols with a optional span of ''number.2''&lt;br /&gt;
&lt;br /&gt;
; interline (dimen): Set partial legend interline&lt;br /&gt;
&lt;br /&gt;
== Map paper ==&lt;br /&gt;
&lt;br /&gt;
=== paper ===&lt;br /&gt;
&lt;br /&gt;
Size of paper. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; paper [A0-6|B0-6|Legal|Ledger|Tabloid|Executive|Folio] : Type of paper (default A4).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; color (color) : Paper color.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Custom size of paper.&lt;br /&gt;
&lt;br /&gt;
; left (dimen), right (dimen), top (dimen), bottom (dimen) : Custom margins (default 0.5&amp;quot; left and right, and 1&amp;quot; top and bottom).&lt;br /&gt;
&lt;br /&gt;
; landscape yes|no : Paper orientation (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''. Set the default font of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''. Free draw as watermarks, before any feature of the map is drawn (see ''draw'').&lt;br /&gt;
&lt;br /&gt;
=== scale ===&lt;br /&gt;
&lt;br /&gt;
Scale of the map.&lt;br /&gt;
&lt;br /&gt;
Simple line command to define the scale of the map. The default is adjust map to the paper dimensions. If the remaining dimensions of the paper not permit the scale, ''ps.out'' adjust the scale to a new value that it fit in the paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scale 1&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;(number) : Scale of map.&amp;lt;br&amp;gt;For example, ''scale 1:500000'' to rescale maparea dimensions.&lt;br /&gt;
&lt;br /&gt;
=== maparea ===&lt;br /&gt;
Define specific dimensions of the map (default defined by command ''scale'')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; maparea : Define characteristics of the map area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border map.&amp;lt;br&amp;gt;Usefull with ''in'' and ''out'' formats of the ''grid'' and ''geogrid'', ignored in ''iho'' and ''can'' formats.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Border color-&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the map area.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Dimensions of the map.&lt;br /&gt;
&lt;br /&gt;
; top (dimen), bottom (dimen) : Position of the top-left corner of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''.&amp;lt;br&amp;gt;Draw onto the map but before the grid lines, vpoints and vlabels are drawn; i.e. this map elements are drawn over the draw elements.&lt;br /&gt;
&lt;br /&gt;
=== palette ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;testing&amp;lt;/U&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; palette&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; light (color text) :&lt;br /&gt;
&lt;br /&gt;
; dark (color text) :&lt;br /&gt;
&lt;br /&gt;
; wheel (number text) :&lt;br /&gt;
&lt;br /&gt;
; monochrome (color number text) :&lt;br /&gt;
&lt;br /&gt;
; complementary (color number text) :&lt;br /&gt;
&lt;br /&gt;
; analogous (color number text) :&lt;br /&gt;
&lt;br /&gt;
; gradient (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; binary (color name) :&lt;br /&gt;
&lt;br /&gt;
; sequential (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; qualitative (number text) :&lt;br /&gt;
&lt;br /&gt;
; diverging (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
== Common elements ==&lt;br /&gt;
&lt;br /&gt;
=== grid and geogrid ===&lt;br /&gt;
&lt;br /&gt;
Draw a border around the map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; grid|geogrid :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; format in|out|+out|can|iho : Type of border (see examples).&lt;br /&gt;
&lt;br /&gt;
; major (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; minor (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; subminor (number) : ''number'' of subdivisons of the minor divisions.&lt;br /&gt;
&lt;br /&gt;
; trim (number) : Cut trailing zeros.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Color of the border.&lt;br /&gt;
&lt;br /&gt;
; cross (number) : Replace lines by cross&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_iho.png|format iho&lt;br /&gt;
File:ps_out_can.png|format can&lt;br /&gt;
File:ps_out_in.png |format in&lt;br /&gt;
File:ps_out_out.png|format +out&lt;br /&gt;
File:ps_out_out1.png|typical map border&lt;br /&gt;
File:ps_out_out2.png|typical map border with ''subminor 5'' and ''fcolor blue''&lt;br /&gt;
File:ps_out_out3.png|''cross 500'', ''fcolor indigo'', ''color 200:200:200'' in '''maparea'''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== scalebar ===&lt;br /&gt;
&lt;br /&gt;
Set a scalebar on the map.&amp;lt;br&amp;gt;Maximun 5 scalebars in each map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scalebar I|s|S|f|F : Define the type of scalebar (I: inner, s/S: simple, f/F: fill).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; length (number) : Length of the scale.&lt;br /&gt;
&lt;br /&gt;
; units meters|m|kilometers|km|feet|ft|miles|mil|nautical_miles|nm ([text]) : Unit of the length and ''text' to label the units.&lt;br /&gt;
&lt;br /&gt;
; major (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; minor (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor.&lt;br /&gt;
&lt;br /&gt;
; height (dimen) : Height of the bar or ticks.&lt;br /&gt;
&lt;br /&gt;
; zero yes|no : Set position relative to zero value of the scalebar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Scalerbar styles&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;50px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_scalebar_s.png|scalebar s&lt;br /&gt;
File:ps_out_scalebar_S.png|scalebar S&lt;br /&gt;
File:ps_out_scalebar_I.png|scalebar I (uppercase i)&lt;br /&gt;
File:ps_out_scalebar_f.png|scalebar f&lt;br /&gt;
File:ps_out_scalebar_F.png|scalebar F&lt;br /&gt;
File:ps_out_scalebar_3.png|Multiple scalebars zero centered with ''zero yes''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== note ===&lt;br /&gt;
Write special text or free text on any place of the paper with frame (also ''draw'' permit write free-text in paper). &lt;br /&gt;
&lt;br /&gt;
Maximun 20 notes by map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; note &amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;file|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;maplimits|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;dimen|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;scale (text)|(text) : Type of note and text to show.&amp;lt;br&amp;gt;When free text, use '|' to break lines and '.' as first character to center line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; text (text) : Another roption to enter the same as inline note text;&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of note.&lt;br /&gt;
&lt;br /&gt;
; angle (number) : ''number'' of degrees to rotate (do not work fine).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Note keywords and free text&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_note_ml.png  |note :maplimits&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_dimen.png|note :dimen&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scale.png|note :scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_free.png|note free text|in multiple lines&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_freec.png|note .free text|.in multiple [...]&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scaler.png|note :scale scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br&amp;gt;&amp;amp;nbsp;angle 90&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== draw ===&lt;br /&gt;
&lt;br /&gt;
Simple script language to draw predefined postscript code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; draw [none|paper|maparea|free] :  &lt;br /&gt;
''paper'': before any map feature is drawn (equivalent to place inside ''paper'' block); &amp;lt;br&amp;gt;&lt;br /&gt;
''maparea'' before the last elements of the map (equivalent to place inside ''mapare'' block) ; &amp;lt;br&amp;gt;&lt;br /&gt;
''none'': draw over all elements of the map but only in the map area; and &amp;lt;br&amp;gt;&lt;br /&gt;
''free'': after all map features are drawn in any place of the paper; and ''none''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; --- : &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_north1.png   |&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;north 700000 4700000&amp;lt;/source&amp;gt;&lt;br /&gt;
File:ps_out_north2.png   |north 5cm 16.5cm -&lt;br /&gt;
File:ps_out_maplimits.png|maplimits&lt;br /&gt;
File:ps_out_compass.png  |compass 700000 4700000 10000 10.2345&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Raster maps ==&lt;br /&gt;
&lt;br /&gt;
=== raster ===&lt;br /&gt;
&lt;br /&gt;
Draw one or two raster maps on the maparea. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; raster (raster|raster.1 raster.2|raster.R raster.G raster.B|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;group) : The ''raster'' value is the raster mapname, two raster maps ''raster.1'' or color and ''raster.2'' or shade to draw as relief map, three maps ''raster.R'', ''raster.G'' and ''raster.B'' to draw as RGB, or a groupname (leader by ':') with tree RGB maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; grey yes|no : Store and draw the rasters in grey scale (small size of file).&amp;lt;br&amp;gt;The conversion follows the NTSC video standard.&lt;br /&gt;
&lt;br /&gt;
; maskcell (raster.1 [raster.2]) : Set the ''raster.1'' map to use as mask (independent of the mask set in GRASS with [[r.mask]]) and, optionally, the ''raster.2'' map uses as background.&amp;lt;br&amp;gt;The background ''raster.2'' is painted in grey scale (NTSC) and tinted with ''maskcolor''.&lt;br /&gt;
&lt;br /&gt;
; maskcolor (color|none) : Set the ''color'' of the mask area.&amp;lt;br&amp;gt;If a raster map as background is set then it's drawn with a scale white-maskcolor.&lt;br /&gt;
&lt;br /&gt;
; outline : Block ''line''. Outline of categories.&lt;br /&gt;
&lt;br /&gt;
; setcolor null|default|(number) (color) : Replace the color of the cat ''number'' area with a new color.&amp;lt;br&amp;gt;Multiple ''setcolor'' are possibles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_raster1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_outline.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;outline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width .2mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;end&amp;lt;br/&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_setcolor.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor white&amp;lt;br&amp;gt;&amp;amp;nbsp;setcolor 37 magenta&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_grey.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;grey yes&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Vector maps ==&lt;br /&gt;
&lt;br /&gt;
All vector map accept optionally the following commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; layer (number) : Layer number used with cats/where option.&lt;br /&gt;
&lt;br /&gt;
; cats (n1,n2,...) : List of ''cat''s to show.&lt;br /&gt;
&lt;br /&gt;
; where (text) : Argument of the SQL where clausule to filter the areas to show.&lt;br /&gt;
&lt;br /&gt;
; masked yes|no : Masked or not by raster mask (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; label (text) : For description or title in ''vlegend''.&lt;br /&gt;
&lt;br /&gt;
; legend [(number)]: Position in legend (-1, no legend) or enter in a block ''legend''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vareas ===&lt;br /&gt;
&lt;br /&gt;
Draw areas on the map.&amp;lt;br&amp;gt;&lt;br /&gt;
The areas always are drawn first, on the bottom of other type of maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vareas (vector) : ''vector'' is a vector of areas, except when ''lwidth'' is different to zero that ''vector'' is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type area|line : Default ''area''.&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Style of the boundary.&lt;br /&gt;
&lt;br /&gt;
; fill : Block ''fill''. Style of the area.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic fill color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Text label when default conditions.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color][|dimen] text) : Make a item of a sublegend with label the ''text'' and title the text of the ''label''.&amp;lt;br&amp;gt;The fillcolor of the areas is set to ''color'' and the line width is set to ''dimen'' when ''column.2'' &amp;gt;= n1 and ''column.2'' &amp;lt; n2  (''column.2'' from ''rgbcol'').&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; island yes|no : Draw island as normal areas (fill as normal area then hide it).&lt;br /&gt;
&lt;br /&gt;
; mirror (dimen [number]) : The line is drawn as an area with a copy of the line placed with polar coordinates: ''dimen' and ''angle''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vareas: sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vareas0.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;color indigo&lt;br /&gt;
File:ps_out_vareas4.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;color indigo&amp;lt;br&amp;gt;&amp;amp;nbsp;limit 3mm&lt;br /&gt;
File:ps_out_vareas3.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;pat patterns/diag_up.eps&lt;br /&gt;
File:ps_out_vareas1.png|rgbcol - cat&amp;lt;br&amp;gt;setrule 0-500:red A&amp;lt;br/&amp;gt;setrule 500-1000:green B&amp;lt;br/&amp;gt;setrule 1000-5000:blue C&lt;br /&gt;
File:ps_out_vareas2.png|island no&lt;br /&gt;
File:ps_out_vareas5.png|vareas roadsmajor&amp;lt;br&amp;gt;&amp;amp;nbsp;cat 24,28,32,38,53&amp;lt;br&amp;gt;&amp;amp;nbsp;mirror 5 90&amp;lt;br&amp;gt;[and fill with pat cruz.eps]&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlines ===&lt;br /&gt;
&lt;br /&gt;
Draw lines on the map.&amp;lt;br&amp;gt;The areas always are drawn second, after ''vareas'' and before ''vpoints''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlines (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of lines, except if ''type'' is boundary that ''vector'' is a vector of areas.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Optional commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type line|boundary : Draw boundaries of a vector of areas or lines of a vector of lines (default ''line'').&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Normal line.&lt;br /&gt;
&lt;br /&gt;
; hline : Block ''line''. Highlight line.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Works with ''hline'' to offset from the center of ''line''.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic line color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Label in legend when default values and ''setcolor'' rules.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with ''text'' as label and title the text of the ''label''. Also, the color of the normal line with column &amp;gt;= n1 and column &amp;lt; n2 (column from rgbcol), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlines: sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlines0.png|hline&lt;br /&gt;
File:ps_out_vlines1.png|line 0.05mm&amp;lt;br&amp;gt;setrule 100:brown|.25mm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vpoints ===&lt;br /&gt;
&lt;br /&gt;
Draw points on the map.&amp;lt;br&amp;gt;The points always are drawn last, after ''vareas'' and ''vlines''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vpoints (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of points, except when '''type''' is ''centroid'' or ''boundary'' that it is a vector of areas, or when '''type''' is ''line'' that it is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; type centroid|line|boundary|point : Type of draw (default ''point'').&lt;br /&gt;
&lt;br /&gt;
; symbol (epsfile) : Symbol to use (default: basic/circle).&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Type of line in the symbol.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color): Static fillcolor of the symbol.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Offset of the symbol.&lt;br /&gt;
&lt;br /&gt;
; rotate (number|column) : Angle to rotate the symbol, static ''number'' or dynamic in a ''column'' of the database.&lt;br /&gt;
&lt;br /&gt;
; size (number|column [number]) : Size of the symbol take from ''number'' or from a ''column'' of the database. In the last option, there is a optional ''number'' to define the static size of the symbol in the legend when the size of symbols are dynamic. &lt;br /&gt;
&lt;br /&gt;
; scale (dimen.1 [dimen.2]) : Rescale the size of the symbol by the ''dimen.1'' and, optionally, add a ''dimen.2''. i.e., ''resize = dimen.1 * size + dimen.2''.&lt;br /&gt;
&lt;br /&gt;
; setsize (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;size] text) : Variable size of symbols from data in ''column'' of database set in ''size''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands when type is line&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; dist (dimen) : Define the distance in paper between symbol over the line.&lt;br /&gt;
&lt;br /&gt;
; cline : Block ''line''. Type of line that connect symbols.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vpoints: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vpoints0.png|''Points with same size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size 5&lt;br /&gt;
File:ps_out_vpoints1.png|''Points with dynamic size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT 5&amp;lt;br&amp;gt;&amp;amp;nbsp;scale 0.01 2&lt;br /&gt;
File:ps_out_vpoints2.png|''Points with conditional size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 200-1000:3 &amp;lt; 1000&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 1000-2500:9 &amp;gt; 1000&lt;br /&gt;
File:ps_out_vpoints3.png|''Points on line ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;type line&amp;lt;br&amp;gt;&amp;amp;nbsp;dist 1cm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlabels ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;in progress&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlabels none|(vector) :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; font :&lt;br /&gt;
&lt;br /&gt;
; labelcol (column) :&lt;br /&gt;
&lt;br /&gt;
; decimals (number) :&lt;br /&gt;
&lt;br /&gt;
; circled yes|no :&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2 text)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlabels0.png|vpoints firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;[...]&amp;lt;br/n&amp;gt;end&amp;lt;br/&amp;gt;vlabels firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;labelcol PUMPERS&amp;lt;br/n&amp;gt;&amp;amp;nbsp;font&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;name Univers-Bold&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;size 10&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color yellow&amp;lt;br/n&amp;gt;&amp;amp;nbsp;end&amp;lt;br/n&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Legend of the maps ==&lt;br /&gt;
&lt;br /&gt;
=== rlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the raster map.&amp;lt;br&amp;gt;The units ''meters'' in the gradient legend is set with [[r.support]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; rlegend [text] : Text is the title of the legend. &lt;br /&gt;
&lt;br /&gt;
; raster (raster) : the ''raster'' map to take the data of legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commads are optionals&amp;lt;/U&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; titlefont : Block ''font'' for the legend header.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font'' for the normal text.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Width of the symbol area.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For category legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; cols (number) [(number)] : Number of columns with symbols and separation between columns (default ''1'').&lt;br /&gt;
&lt;br /&gt;
; nodata yes|no : Remove category ''no data''.&lt;br /&gt;
&lt;br /&gt;
; order (n1,n2,...) : To reorder items.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For gradient legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; height (dimen), width (dimen) : Dimension of the frame with the legend.&lt;br /&gt;
&lt;br /&gt;
; vertical yes|no : Orientation of the gradient legend (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; range (n1 n2) : Manual set of the data range for legend.&lt;br /&gt;
&lt;br /&gt;
; gradient yes|no : Forze draw gradient legend with category data.&lt;br /&gt;
&lt;br /&gt;
; tick (dimen) : Length of the ticks.&lt;br /&gt;
&lt;br /&gt;
; whiteframe (dimen) : Width of the white frame around the bar color.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;250px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_rlegend.png|rlegend Zip Codes (wake)&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster zipcodes_wake&amp;lt;br/&amp;gt;&amp;amp;nbsp;cols 2 0&amp;lt;br/&amp;gt;&amp;amp;nbsp;swidth 8mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;order 20,10,30,22,34&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend1.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;height 8cm&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend2.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;width 8cm&amp;lt;br/&amp;gt;&amp;amp;nbsp;vertical no&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the vector maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlegend [text] : Optional the title or head of the legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; title : Block ''font'' for title of legend.&lt;br /&gt;
&lt;br /&gt;
; font : Block font for normal text of legend.&lt;br /&gt;
&lt;br /&gt;
; frame : &lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]) : Distribution of the items in ''number.1'' cols. Optionaly, ''number.2'' of span between columns.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Symbol width.&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Space between lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlegend: sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_output_vlegend0.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: ps.map]]&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12066</id>
		<title>Ps.output</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12066"/>
		<updated>2010-11-06T16:02:48Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: /* line */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ps.out''' try to update the standard postscript output of Grass adding new features to design borders, graticules, categorized legends, etc&lt;br /&gt;
&lt;br /&gt;
'''This is in progress and not all features are yet uploaded in ''addons''. '''&lt;br /&gt;
&lt;br /&gt;
== Command line flags ==&lt;br /&gt;
&lt;br /&gt;
'''-d ''': Draw a 1x1 cm grid on paper to help the placement of the elements of the map.&lt;br /&gt;
&lt;br /&gt;
'''-e''': Make an output file without the postscript header. Useful when is embebed into other ''ps.out'' map.&lt;br /&gt;
&lt;br /&gt;
'''-g''': Use the extended PostScript of Ghostscript (for transparent colors only)&lt;br /&gt;
&lt;br /&gt;
'''-s''': Draw the small digit in the coordinate numbers to lower instead upper possition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;100px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_grid.png|A4 paper with flag -d &lt;br /&gt;
File:ps_out_digit_upper.png|coordinate&lt;br /&gt;
File:ps_out_digit_lower.png|coordinate with flag -s&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generic Instructions ==&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== dimen ====&lt;br /&gt;
&lt;br /&gt;
Define a dimension. Accepted units are:&lt;br /&gt;
&lt;br /&gt;
*; ''unitless'' : e.g. 123. The dimension is the ''number'' by 1/72&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
*; inch : e.g. 1.2inch. &lt;br /&gt;
&lt;br /&gt;
*; milimeters : e.g. 2.3mm.&lt;br /&gt;
&lt;br /&gt;
*; centimeters : e.g. 1.4cm.&lt;br /&gt;
&lt;br /&gt;
*; percentage : e.g. 50%.&amp;lt;br&amp;gt;The position is relative to the size and position of the map in the paper being ''0%'' the left or bottom corner.&lt;br /&gt;
&lt;br /&gt;
==== color ====&lt;br /&gt;
&lt;br /&gt;
Define a color. Accepted formats are:&lt;br /&gt;
&lt;br /&gt;
*; standard GRASS name : e.g. indigo.&lt;br /&gt;
&lt;br /&gt;
*; R&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;G&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;B : e.g. 200:123:90&lt;br /&gt;
&lt;br /&gt;
*; user name : e.g. red5.&amp;lt;br&amp;gt;Defined in ''palette'' block&lt;br /&gt;
&lt;br /&gt;
All formats can add '$(0-1)' to define the opacity of the color (alpha channel); e.g., indigo$.75 or 200:120:120$.2&lt;br /&gt;
&lt;br /&gt;
==== number ====&lt;br /&gt;
&lt;br /&gt;
==== text ====&lt;br /&gt;
&lt;br /&gt;
=== Blocks of instructions ===&lt;br /&gt;
&lt;br /&gt;
A ''block'' begin with the keywords and finish with keyword ''end''&lt;br /&gt;
&lt;br /&gt;
==== font ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a font.&lt;br /&gt;
&lt;br /&gt;
; name (text) : Name of font.&lt;br /&gt;
&lt;br /&gt;
; size (dimen) : Size of font.&lt;br /&gt;
&lt;br /&gt;
; extend (dimen): Expand the width of font.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of font.&lt;br /&gt;
&lt;br /&gt;
; outline yes|no : Outline of the font.&lt;br /&gt;
&lt;br /&gt;
==== line ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a line.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of line.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of line.&lt;br /&gt;
&lt;br /&gt;
; style solid|dashed|dotted|dashdotted|(n1n2...) : Style of line.&lt;br /&gt;
&lt;br /&gt;
; cap butt|round|extended_butt : Cap&lt;br /&gt;
&lt;br /&gt;
; extended (type step height width) : Extended style of line.&amp;lt;br&amp;gt;''type'' = bar, double_bar, semibar, mark, point, round, square, triangle, xcross.&lt;br /&gt;
&lt;br /&gt;
==== fill ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a fill area.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Fill color.&lt;br /&gt;
&lt;br /&gt;
; pat (file) : Fill pattern.&lt;br /&gt;
&lt;br /&gt;
; lwidth (dimen) : Line width of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; scale (number) : Scale of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; limit (dimen) : Limit the fill to the border with a width of ''dimen''.&lt;br /&gt;
&lt;br /&gt;
==== frame ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a frame.&lt;br /&gt;
&lt;br /&gt;
; where (dimen.1 dimen.2) : Position of frame.&lt;br /&gt;
&lt;br /&gt;
; offset (number.1 number.2) : Fine x and y adjust of the position of frame.&lt;br /&gt;
&lt;br /&gt;
; ref right|left|center upper|lower|center : Position is relative to the ''ref''.&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border line&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of the border line.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the frame.&lt;br /&gt;
&lt;br /&gt;
; rotate (dimen) : &amp;lt;u&amp;gt;todo&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== legend ====&lt;br /&gt;
&lt;br /&gt;
; lpos (number): Position in legend&amp;lt;br&amp;gt;Codes: -1, no show in legend; 0 automatic position; &amp;gt; 0 horizontal position.&lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]): Organize legend in ''number.1'' cols with a optional span of ''number.2''&lt;br /&gt;
&lt;br /&gt;
; interline (dimen): Set partial legend interline&lt;br /&gt;
&lt;br /&gt;
== Map paper ==&lt;br /&gt;
&lt;br /&gt;
=== paper ===&lt;br /&gt;
&lt;br /&gt;
Size of paper. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; paper [A0-6|B0-6|Legal|Ledger|Tabloid|Executive|Folio] : Type of paper (default A4).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; color (color) : Paper color.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Custom size of paper.&lt;br /&gt;
&lt;br /&gt;
; left (dimen), right (dimen), top (dimen), bottom (dimen) : Custom margins (default 0.5&amp;quot; left and right, and 1&amp;quot; top and bottom).&lt;br /&gt;
&lt;br /&gt;
; landscape yes|no : Paper orientation (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''. Set the default font of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''. Free draw as watermarks, before any feature of the map is drawn (see ''draw'').&lt;br /&gt;
&lt;br /&gt;
=== scale ===&lt;br /&gt;
&lt;br /&gt;
Scale of the map.&lt;br /&gt;
&lt;br /&gt;
Simple line command to define the scale of the map. The default is adjust map to the paper dimensions. If the remaining dimensions of the paper not permit the scale, ''ps.out'' adjust the scale to a new value that it fit in the paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scale 1&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;(number) : Scale of map.&amp;lt;br&amp;gt;For example, ''scale 1:500000'' to rescale maparea dimensions.&lt;br /&gt;
&lt;br /&gt;
=== maparea ===&lt;br /&gt;
Define specific dimensions of the map (default defined by command ''scale'')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; maparea : Define characteristics of the map area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border map.&amp;lt;br&amp;gt;Usefull with ''in'' and ''out'' formats of the ''grid'' and ''geogrid'', ignored in ''iho'' and ''can'' formats.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Border color-&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the map area.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Dimensions of the map.&lt;br /&gt;
&lt;br /&gt;
; top (dimen), bottom (dimen) : Position of the top-left corner of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''.&amp;lt;br&amp;gt;Draw onto the map but before the grid lines, vpoints and vlabels are drawn; i.e. this map elements are drawn over the draw elements.&lt;br /&gt;
&lt;br /&gt;
=== palette ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;testing&amp;lt;/U&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; palette&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; light (color text) :&lt;br /&gt;
&lt;br /&gt;
; dark (color text) :&lt;br /&gt;
&lt;br /&gt;
; wheel (number text) :&lt;br /&gt;
&lt;br /&gt;
; monochrome (color number text) :&lt;br /&gt;
&lt;br /&gt;
; complementary (color number text) :&lt;br /&gt;
&lt;br /&gt;
; analogous (color number text) :&lt;br /&gt;
&lt;br /&gt;
; gradient (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; binary (color name) :&lt;br /&gt;
&lt;br /&gt;
; sequential (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; qualitative (number text) :&lt;br /&gt;
&lt;br /&gt;
; diverging (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
== Common elements ==&lt;br /&gt;
&lt;br /&gt;
=== grid and geogrid ===&lt;br /&gt;
&lt;br /&gt;
Draw a border around the map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; grid|geogrid :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; format in|out|+out|can|iho : Type of border (see examples).&lt;br /&gt;
&lt;br /&gt;
; major (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; minor (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; subminor (number) : ''number'' of subdivisons of the minor divisions.&lt;br /&gt;
&lt;br /&gt;
; trim (number) : Cut trailing zeros.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Color of the border.&lt;br /&gt;
&lt;br /&gt;
; cross (number) : Replace lines by cross&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_iho.png|format iho&lt;br /&gt;
File:ps_out_can.png|format can&lt;br /&gt;
File:ps_out_in.png |format in&lt;br /&gt;
File:ps_out_out.png|format +out&lt;br /&gt;
File:ps_out_out1.png|typical map border&lt;br /&gt;
File:ps_out_out2.png|typical map border with ''subminor 5'' and ''fcolor blue''&lt;br /&gt;
File:ps_out_out3.png|''cross 500'', ''fcolor indigo'', ''color 200:200:200'' in '''maparea'''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== scalebar ===&lt;br /&gt;
&lt;br /&gt;
Set a scalebar on the map.&amp;lt;br&amp;gt;Maximun 5 scalebars in each map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scalebar I|s|S|f|F : Define the type of scalebar (I: inner, s/S: simple, f/F: fill).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; length (number) : Length of the scale.&lt;br /&gt;
&lt;br /&gt;
; units meters|m|kilometers|km|feet|ft|miles|mil|nautical_miles|nm ([text]) : Unit of the length and ''text' to label the units.&lt;br /&gt;
&lt;br /&gt;
; major (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; minor (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor.&lt;br /&gt;
&lt;br /&gt;
; height (dimen) : Height of the bar or ticks.&lt;br /&gt;
&lt;br /&gt;
; zero yes|no : Set position relative to zero value of the scalebar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Scalerbar styles&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;50px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_scalebar_s.png|scalebar s&lt;br /&gt;
File:ps_out_scalebar_S.png|scalebar S&lt;br /&gt;
File:ps_out_scalebar_I.png|scalebar I (uppercase i)&lt;br /&gt;
File:ps_out_scalebar_f.png|scalebar f&lt;br /&gt;
File:ps_out_scalebar_F.png|scalebar F&lt;br /&gt;
File:ps_out_scalebar_3.png|Multiple scalebars zero centered with ''zero yes''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== note ===&lt;br /&gt;
Write special text or free text on any place of the paper with frame (also ''draw'' permit write free-text in paper). &lt;br /&gt;
&lt;br /&gt;
Maximun 20 notes by map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; note &amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;file|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;maplimits|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;dimen|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;scale (text)|(text) : Type of note and text to show.&amp;lt;br&amp;gt;When free text, use '|' to break lines and '.' as first character to center line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; text (text) : Another roption to enter the same as inline note text;&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of note.&lt;br /&gt;
&lt;br /&gt;
; angle (number) : ''number'' of degrees to rotate (do not work fine).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Note keywords and free text&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_note_ml.png  |note :maplimits&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_dimen.png|note :dimen&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scale.png|note :scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_free.png|note free text|in multiple lines&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_freec.png|note .free text|.in multiple [...]&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scaler.png|note :scale scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br&amp;gt;&amp;amp;nbsp;angle 90&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== draw ===&lt;br /&gt;
&lt;br /&gt;
Simple script language to draw predefined postscript code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; draw [none|paper|maparea|free] :  &lt;br /&gt;
''paper'': before any map feature is drawn (equivalent to place inside ''paper'' block); &amp;lt;br&amp;gt;&lt;br /&gt;
''maparea'' before the last elements of the map (equivalent to place inside ''mapare'' block) ; &amp;lt;br&amp;gt;&lt;br /&gt;
''none'': draw over all elements of the map but only in the map area; and &amp;lt;br&amp;gt;&lt;br /&gt;
''free'': after all map features are drawn in any place of the paper; and ''none''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; --- : &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_north1.png   |&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;north 700000 4700000&amp;lt;/source&amp;gt;&lt;br /&gt;
File:ps_out_north2.png   |north 5cm 16.5cm -&lt;br /&gt;
File:ps_out_maplimits.png|maplimits&lt;br /&gt;
File:ps_out_compass.png  |compass 700000 4700000 10000 10.2345&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Raster maps ==&lt;br /&gt;
&lt;br /&gt;
=== raster ===&lt;br /&gt;
&lt;br /&gt;
Draw one or two raster maps on the maparea. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; raster (raster|raster.1 raster.2|raster.R raster.G raster.B|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;group) : The ''raster'' value is the raster mapname, two raster maps ''raster.1'' or color and ''raster.2'' or shade to draw as relief map, three maps ''raster.R'', ''raster.G'' and ''raster.B'' to draw as RGB, or a groupname (leader by ':') with tree RGB maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; grey yes|no : Store and draw the rasters in grey scale (small size of file).&amp;lt;br&amp;gt;The conversion follows the NTSC video standard.&lt;br /&gt;
&lt;br /&gt;
; maskcell (raster.1 [raster.2]) : Set the ''raster.1'' map to use as mask (independent of the mask set in GRASS with [[r.mask]]) and, optionally, the ''raster.2'' map uses as background.&amp;lt;br&amp;gt;The background ''raster.2'' is painted in grey scale (NTSC) and tinted with ''maskcolor''.&lt;br /&gt;
&lt;br /&gt;
; maskcolor (color|none) : Set the ''color'' of the mask area.&amp;lt;br&amp;gt;If a raster map as background is set then it's drawn with a scale white-maskcolor.&lt;br /&gt;
&lt;br /&gt;
; outline : Block ''line''. Outline of categories.&lt;br /&gt;
&lt;br /&gt;
; setcolor null|default|(number) (color) : Replace the color of the cat ''number'' area with a new color.&amp;lt;br&amp;gt;Multiple ''setcolor'' are possibles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_raster1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_outline.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;outline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width .2mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;end&amp;lt;br/&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_setcolor.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor white&amp;lt;br&amp;gt;&amp;amp;nbsp;setcolor 37 magenta&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_grey.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;grey yes&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Vector maps ==&lt;br /&gt;
&lt;br /&gt;
All vector map accept optionally the following commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; layer (number) : Layer number used with cats/where option.&lt;br /&gt;
&lt;br /&gt;
; cats (n1,n2,...) : List of ''cat''s to show.&lt;br /&gt;
&lt;br /&gt;
; where (text) : Argument of the SQL where clausule to filter the areas to show.&lt;br /&gt;
&lt;br /&gt;
; masked yes|no : Masked or not by raster mask (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; label (text) : For description or title in ''vlegend''.&lt;br /&gt;
&lt;br /&gt;
; legend [(number)]: Position in legend (-1, no legend) or enter in a block ''legend''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vareas ===&lt;br /&gt;
&lt;br /&gt;
Draw areas on the map.&amp;lt;br&amp;gt;&lt;br /&gt;
The areas always are drawn first, on the bottom of other type of maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vareas (vector) : ''vector'' is a vector of areas, except when ''lwidth'' is different to zero that ''vector'' is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type area|line : Default ''area''.&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Style of the boundary.&lt;br /&gt;
&lt;br /&gt;
; fill : Block ''fill''. Style of the area.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic fill color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Text label when default conditions.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color][|dimen] text) : Make a item of a sublegend with label the ''text'' and title the text of the ''label''.&amp;lt;br&amp;gt;The fillcolor of the areas is set to ''color'' and the line width is set to ''dimen'' when ''column.2'' &amp;gt;= n1 and ''column.2'' &amp;lt; n2  (''column.2'' from ''rgbcol'').&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; island yes|no : Draw island as normal areas (fill as normal area then hide it).&lt;br /&gt;
&lt;br /&gt;
; mirror (dimen [number]) : The line is drawn as an area with a copy of the line placed with polar coordinates: ''dimen' and ''angle''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vareas: sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vareas0.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;color indigo&lt;br /&gt;
File:ps_out_vareas4.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;color indigo&amp;lt;br&amp;gt;&amp;amp;nbsp;limit 3mm&lt;br /&gt;
File:ps_out_vareas3.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;pat patterns/diag_up.eps&lt;br /&gt;
File:ps_out_vareas1.png|rgbcol - cat&amp;lt;br&amp;gt;setrule 0-500:red A&amp;lt;br/&amp;gt;setrule 500-1000:green B&amp;lt;br/&amp;gt;setrule 1000-5000:blue C&lt;br /&gt;
File:ps_out_vareas2.png|island no&lt;br /&gt;
File:ps_out_vareas5.png|vareas roadsmajor&amp;lt;br&amp;gt;&amp;amp;nbsp;cat 24,28,32,38,53&amp;lt;br&amp;gt;&amp;amp;nbsp;mirror 5 90&amp;lt;br&amp;gt;[and fill with pat cruz.eps]&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlines ===&lt;br /&gt;
&lt;br /&gt;
Draw lines on the map.&amp;lt;br&amp;gt;The areas always are drawn second, after ''vareas'' and before ''vpoints''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlines (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of lines, except if ''type'' is boundary that ''vector'' is a vector of areas.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Optional commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type line|boundary : Draw boundaries of a vector of areas or lines of a vector of lines (default ''line'').&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Normal line.&lt;br /&gt;
&lt;br /&gt;
; hline : Block ''line''. Highlight line.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Works with ''hline'' to offset from the center of ''line''.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic line color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Label in legend when default values and ''setcolor'' rules.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with ''text'' as label and title the text of the ''label''. Also, the color of the normal line with column &amp;gt;= n1 and column &amp;lt; n2 (column from rgbcol), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlines: sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlines0.png|hline&lt;br /&gt;
File:ps_out_vlines1.png|line 0.05mm&amp;lt;br&amp;gt;setrule 100:brown|.25mm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vpoints ===&lt;br /&gt;
&lt;br /&gt;
Draw points on the map.&amp;lt;br&amp;gt;The points always are drawn last, after ''vareas'' and ''vlines''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vpoints (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of points, except when '''type''' is ''centroid'' or ''boundary'' that it is a vector of areas, or when '''type''' is ''line'' that it is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; type centroid|line|boundary|point : Type of draw (default ''point'').&lt;br /&gt;
&lt;br /&gt;
; symbol (epsfile) : Symbol to use (default: basic/circle).&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Type of line in the symbol.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color): Static fillcolor of the symbol.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Offset of the symbol.&lt;br /&gt;
&lt;br /&gt;
; rotate (number|column) : Angle to rotate the symbol, static ''number'' or dynamic in a ''column'' of the database.&lt;br /&gt;
&lt;br /&gt;
; size (number|column [number]) : Size of the symbol take from ''number'' or from a ''column'' of the database. In the last option, there is a optional ''number'' to define the static size of the symbol in the legend when the size of symbols are dynamic. &lt;br /&gt;
&lt;br /&gt;
; scale (dimen.1 [dimen.2]) : Rescale the size of the symbol by the ''dimen.1'' and, optionally, add a ''dimen.2''. i.e., ''resize = dimen.1 * size + dimen.2''.&lt;br /&gt;
&lt;br /&gt;
; setsize (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;size] text) : Variable size of symbols from data in ''column'' of database set in ''size''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands when type is line&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; dist (dimen) : Define the distance in paper between symbol over the line.&lt;br /&gt;
&lt;br /&gt;
; cline : Block ''line''. Type of line that connect symbols.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vpoints: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vpoints0.png|''Points with same size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size 5&lt;br /&gt;
File:ps_out_vpoints1.png|''Points with dynamic size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT 5&amp;lt;br&amp;gt;&amp;amp;nbsp;scale 0.01 2&lt;br /&gt;
File:ps_out_vpoints2.png|''Points with conditional size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 200-1000:3 &amp;lt; 1000&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 1000-2500:9 &amp;gt; 1000&lt;br /&gt;
File:ps_out_vpoints3.png|''Points on line ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;type line&amp;lt;br&amp;gt;&amp;amp;nbsp;dist 1cm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlabels ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;in progress&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlabels none|(vector) :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; font :&lt;br /&gt;
&lt;br /&gt;
; labelcol (column) :&lt;br /&gt;
&lt;br /&gt;
; decimals (number) :&lt;br /&gt;
&lt;br /&gt;
; circled yes|no :&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2 text)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlabels0.png|vpoints firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;[...]&amp;lt;br/n&amp;gt;end&amp;lt;br/&amp;gt;vlabels firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;labelcol PUMPERS&amp;lt;br/n&amp;gt;&amp;amp;nbsp;font&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;name Univers-Bold&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;size 10&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color yellow&amp;lt;br/n&amp;gt;&amp;amp;nbsp;end&amp;lt;br/n&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Legend of the maps ==&lt;br /&gt;
&lt;br /&gt;
=== rlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the raster map.&amp;lt;br&amp;gt;The units ''meters'' in the gradient legend is set with [[r.support]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; rlegend [text] : Text is the title of the legend. &lt;br /&gt;
&lt;br /&gt;
; raster (raster) : the ''raster'' map to take the data of legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commads are optionals&amp;lt;/U&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; titlefont : Block ''font'' for the legend header.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font'' for the normal text.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Width of the symbol area.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For category legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; cols (number) [(number)] : Number of columns with symbols and separation between columns (default ''1'').&lt;br /&gt;
&lt;br /&gt;
; nodata yes|no : Remove category ''no data''.&lt;br /&gt;
&lt;br /&gt;
; order (n1,n2,...) : To reorder items.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For gradient legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; height (dimen), width (dimen) : Dimension of the frame with the legend.&lt;br /&gt;
&lt;br /&gt;
; vertical yes|no : Orientation of the gradient legend (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; range (n1 n2) : Manual set of the data range for legend.&lt;br /&gt;
&lt;br /&gt;
; gradient yes|no : Forze draw gradient legend with category data.&lt;br /&gt;
&lt;br /&gt;
; tick (dimen) : Length of the ticks.&lt;br /&gt;
&lt;br /&gt;
; whiteframe (dimen) : Width of the white frame around the bar color.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;250px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_rlegend.png|rlegend Zip Codes (wake)&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster zipcodes_wake&amp;lt;br/&amp;gt;&amp;amp;nbsp;cols 2 0&amp;lt;br/&amp;gt;&amp;amp;nbsp;swidth 8mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;order 20,10,30,22,34&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend1.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;height 8cm&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend2.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;width 8cm&amp;lt;br/&amp;gt;&amp;amp;nbsp;vertical no&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the vector maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlegend [text] : Optional the title or head of the legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; title : Block ''font'' for title of legend.&lt;br /&gt;
&lt;br /&gt;
; font : Block font for normal text of legend.&lt;br /&gt;
&lt;br /&gt;
; frame : &lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]) : Distribution of the items in ''number.1'' cols. Optionaly, ''number.2'' of span between columns.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Symbol width.&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Space between lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlegend: sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_output_vlegend0.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: ps.map]]&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12065</id>
		<title>Ps.output</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12065"/>
		<updated>2010-11-06T14:52:58Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: /* vlines */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ps.out''' try to update the standard postscript output of Grass adding new features to design borders, graticules, categorized legends, etc&lt;br /&gt;
&lt;br /&gt;
'''This is in progress and not all features are yet uploaded in ''addons''. '''&lt;br /&gt;
&lt;br /&gt;
== Command line flags ==&lt;br /&gt;
&lt;br /&gt;
'''-d ''': Draw a 1x1 cm grid on paper to help the placement of the elements of the map.&lt;br /&gt;
&lt;br /&gt;
'''-e''': Make an output file without the postscript header. Useful when is embebed into other ''ps.out'' map.&lt;br /&gt;
&lt;br /&gt;
'''-g''': Use the extended PostScript of Ghostscript (for transparent colors only)&lt;br /&gt;
&lt;br /&gt;
'''-s''': Draw the small digit in the coordinate numbers to lower instead upper possition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;100px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_grid.png|A4 paper with flag -d &lt;br /&gt;
File:ps_out_digit_upper.png|coordinate&lt;br /&gt;
File:ps_out_digit_lower.png|coordinate with flag -s&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generic Instructions ==&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== dimen ====&lt;br /&gt;
&lt;br /&gt;
Define a dimension. Accepted units are:&lt;br /&gt;
&lt;br /&gt;
*; ''unitless'' : e.g. 123. The dimension is the ''number'' by 1/72&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
*; inch : e.g. 1.2inch. &lt;br /&gt;
&lt;br /&gt;
*; milimeters : e.g. 2.3mm.&lt;br /&gt;
&lt;br /&gt;
*; centimeters : e.g. 1.4cm.&lt;br /&gt;
&lt;br /&gt;
*; percentage : e.g. 50%.&amp;lt;br&amp;gt;The position is relative to the size and position of the map in the paper being ''0%'' the left or bottom corner.&lt;br /&gt;
&lt;br /&gt;
==== color ====&lt;br /&gt;
&lt;br /&gt;
Define a color. Accepted formats are:&lt;br /&gt;
&lt;br /&gt;
*; standard GRASS name : e.g. indigo.&lt;br /&gt;
&lt;br /&gt;
*; R&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;G&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;B : e.g. 200:123:90&lt;br /&gt;
&lt;br /&gt;
*; user name : e.g. red5.&amp;lt;br&amp;gt;Defined in ''palette'' block&lt;br /&gt;
&lt;br /&gt;
All formats can add '$(0-1)' to define the opacity of the color (alpha channel); e.g., indigo$.75 or 200:120:120$.2&lt;br /&gt;
&lt;br /&gt;
==== number ====&lt;br /&gt;
&lt;br /&gt;
==== text ====&lt;br /&gt;
&lt;br /&gt;
=== Blocks of instructions ===&lt;br /&gt;
&lt;br /&gt;
A ''block'' begin with the keywords and finish with keyword ''end''&lt;br /&gt;
&lt;br /&gt;
==== font ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a font.&lt;br /&gt;
&lt;br /&gt;
; name (text) : Name of font.&lt;br /&gt;
&lt;br /&gt;
; size (dimen) : Size of font.&lt;br /&gt;
&lt;br /&gt;
; extend (dimen): Expand the width of font.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of font.&lt;br /&gt;
&lt;br /&gt;
; outline yes|no : Outline of the font.&lt;br /&gt;
&lt;br /&gt;
==== line ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a line.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of line.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of line.&lt;br /&gt;
&lt;br /&gt;
; style solid|dashed|dotted|dashdotted|(n1n2...) : Style of line.&lt;br /&gt;
&lt;br /&gt;
; cap butt|round|extended_butt : Cap&lt;br /&gt;
&lt;br /&gt;
; extended (type step height width) : Extended style of line.&lt;br /&gt;
&lt;br /&gt;
==== fill ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a fill area.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Fill color.&lt;br /&gt;
&lt;br /&gt;
; pat (file) : Fill pattern.&lt;br /&gt;
&lt;br /&gt;
; lwidth (dimen) : Line width of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; scale (number) : Scale of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; limit (dimen) : Limit the fill to the border with a width of ''dimen''.&lt;br /&gt;
&lt;br /&gt;
==== frame ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a frame.&lt;br /&gt;
&lt;br /&gt;
; where (dimen.1 dimen.2) : Position of frame.&lt;br /&gt;
&lt;br /&gt;
; offset (number.1 number.2) : Fine x and y adjust of the position of frame.&lt;br /&gt;
&lt;br /&gt;
; ref right|left|center upper|lower|center : Position is relative to the ''ref''.&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border line&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of the border line.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the frame.&lt;br /&gt;
&lt;br /&gt;
; rotate (dimen) : &amp;lt;u&amp;gt;todo&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== legend ====&lt;br /&gt;
&lt;br /&gt;
; lpos (number): Position in legend&amp;lt;br&amp;gt;Codes: -1, no show in legend; 0 automatic position; &amp;gt; 0 horizontal position.&lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]): Organize legend in ''number.1'' cols with a optional span of ''number.2''&lt;br /&gt;
&lt;br /&gt;
; interline (dimen): Set partial legend interline&lt;br /&gt;
&lt;br /&gt;
== Map paper ==&lt;br /&gt;
&lt;br /&gt;
=== paper ===&lt;br /&gt;
&lt;br /&gt;
Size of paper. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; paper [A0-6|B0-6|Legal|Ledger|Tabloid|Executive|Folio] : Type of paper (default A4).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; color (color) : Paper color.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Custom size of paper.&lt;br /&gt;
&lt;br /&gt;
; left (dimen), right (dimen), top (dimen), bottom (dimen) : Custom margins (default 0.5&amp;quot; left and right, and 1&amp;quot; top and bottom).&lt;br /&gt;
&lt;br /&gt;
; landscape yes|no : Paper orientation (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''. Set the default font of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''. Free draw as watermarks, before any feature of the map is drawn (see ''draw'').&lt;br /&gt;
&lt;br /&gt;
=== scale ===&lt;br /&gt;
&lt;br /&gt;
Scale of the map.&lt;br /&gt;
&lt;br /&gt;
Simple line command to define the scale of the map. The default is adjust map to the paper dimensions. If the remaining dimensions of the paper not permit the scale, ''ps.out'' adjust the scale to a new value that it fit in the paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scale 1&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;(number) : Scale of map.&amp;lt;br&amp;gt;For example, ''scale 1:500000'' to rescale maparea dimensions.&lt;br /&gt;
&lt;br /&gt;
=== maparea ===&lt;br /&gt;
Define specific dimensions of the map (default defined by command ''scale'')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; maparea : Define characteristics of the map area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border map.&amp;lt;br&amp;gt;Usefull with ''in'' and ''out'' formats of the ''grid'' and ''geogrid'', ignored in ''iho'' and ''can'' formats.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Border color-&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the map area.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Dimensions of the map.&lt;br /&gt;
&lt;br /&gt;
; top (dimen), bottom (dimen) : Position of the top-left corner of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''.&amp;lt;br&amp;gt;Draw onto the map but before the grid lines, vpoints and vlabels are drawn; i.e. this map elements are drawn over the draw elements.&lt;br /&gt;
&lt;br /&gt;
=== palette ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;testing&amp;lt;/U&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; palette&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; light (color text) :&lt;br /&gt;
&lt;br /&gt;
; dark (color text) :&lt;br /&gt;
&lt;br /&gt;
; wheel (number text) :&lt;br /&gt;
&lt;br /&gt;
; monochrome (color number text) :&lt;br /&gt;
&lt;br /&gt;
; complementary (color number text) :&lt;br /&gt;
&lt;br /&gt;
; analogous (color number text) :&lt;br /&gt;
&lt;br /&gt;
; gradient (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; binary (color name) :&lt;br /&gt;
&lt;br /&gt;
; sequential (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; qualitative (number text) :&lt;br /&gt;
&lt;br /&gt;
; diverging (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
== Common elements ==&lt;br /&gt;
&lt;br /&gt;
=== grid and geogrid ===&lt;br /&gt;
&lt;br /&gt;
Draw a border around the map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; grid|geogrid :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; format in|out|+out|can|iho : Type of border (see examples).&lt;br /&gt;
&lt;br /&gt;
; major (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; minor (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; subminor (number) : ''number'' of subdivisons of the minor divisions.&lt;br /&gt;
&lt;br /&gt;
; trim (number) : Cut trailing zeros.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Color of the border.&lt;br /&gt;
&lt;br /&gt;
; cross (number) : Replace lines by cross&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_iho.png|format iho&lt;br /&gt;
File:ps_out_can.png|format can&lt;br /&gt;
File:ps_out_in.png |format in&lt;br /&gt;
File:ps_out_out.png|format +out&lt;br /&gt;
File:ps_out_out1.png|typical map border&lt;br /&gt;
File:ps_out_out2.png|typical map border with ''subminor 5'' and ''fcolor blue''&lt;br /&gt;
File:ps_out_out3.png|''cross 500'', ''fcolor indigo'', ''color 200:200:200'' in '''maparea'''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== scalebar ===&lt;br /&gt;
&lt;br /&gt;
Set a scalebar on the map.&amp;lt;br&amp;gt;Maximun 5 scalebars in each map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scalebar I|s|S|f|F : Define the type of scalebar (I: inner, s/S: simple, f/F: fill).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; length (number) : Length of the scale.&lt;br /&gt;
&lt;br /&gt;
; units meters|m|kilometers|km|feet|ft|miles|mil|nautical_miles|nm ([text]) : Unit of the length and ''text' to label the units.&lt;br /&gt;
&lt;br /&gt;
; major (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; minor (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor.&lt;br /&gt;
&lt;br /&gt;
; height (dimen) : Height of the bar or ticks.&lt;br /&gt;
&lt;br /&gt;
; zero yes|no : Set position relative to zero value of the scalebar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Scalerbar styles&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;50px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_scalebar_s.png|scalebar s&lt;br /&gt;
File:ps_out_scalebar_S.png|scalebar S&lt;br /&gt;
File:ps_out_scalebar_I.png|scalebar I (uppercase i)&lt;br /&gt;
File:ps_out_scalebar_f.png|scalebar f&lt;br /&gt;
File:ps_out_scalebar_F.png|scalebar F&lt;br /&gt;
File:ps_out_scalebar_3.png|Multiple scalebars zero centered with ''zero yes''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== note ===&lt;br /&gt;
Write special text or free text on any place of the paper with frame (also ''draw'' permit write free-text in paper). &lt;br /&gt;
&lt;br /&gt;
Maximun 20 notes by map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; note &amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;file|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;maplimits|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;dimen|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;scale (text)|(text) : Type of note and text to show.&amp;lt;br&amp;gt;When free text, use '|' to break lines and '.' as first character to center line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; text (text) : Another roption to enter the same as inline note text;&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of note.&lt;br /&gt;
&lt;br /&gt;
; angle (number) : ''number'' of degrees to rotate (do not work fine).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Note keywords and free text&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_note_ml.png  |note :maplimits&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_dimen.png|note :dimen&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scale.png|note :scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_free.png|note free text|in multiple lines&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_freec.png|note .free text|.in multiple [...]&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scaler.png|note :scale scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br&amp;gt;&amp;amp;nbsp;angle 90&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== draw ===&lt;br /&gt;
&lt;br /&gt;
Simple script language to draw predefined postscript code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; draw [none|paper|maparea|free] :  &lt;br /&gt;
''paper'': before any map feature is drawn (equivalent to place inside ''paper'' block); &amp;lt;br&amp;gt;&lt;br /&gt;
''maparea'' before the last elements of the map (equivalent to place inside ''mapare'' block) ; &amp;lt;br&amp;gt;&lt;br /&gt;
''none'': draw over all elements of the map but only in the map area; and &amp;lt;br&amp;gt;&lt;br /&gt;
''free'': after all map features are drawn in any place of the paper; and ''none''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; --- : &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_north1.png   |&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;north 700000 4700000&amp;lt;/source&amp;gt;&lt;br /&gt;
File:ps_out_north2.png   |north 5cm 16.5cm -&lt;br /&gt;
File:ps_out_maplimits.png|maplimits&lt;br /&gt;
File:ps_out_compass.png  |compass 700000 4700000 10000 10.2345&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Raster maps ==&lt;br /&gt;
&lt;br /&gt;
=== raster ===&lt;br /&gt;
&lt;br /&gt;
Draw one or two raster maps on the maparea. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; raster (raster|raster.1 raster.2|raster.R raster.G raster.B|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;group) : The ''raster'' value is the raster mapname, two raster maps ''raster.1'' or color and ''raster.2'' or shade to draw as relief map, three maps ''raster.R'', ''raster.G'' and ''raster.B'' to draw as RGB, or a groupname (leader by ':') with tree RGB maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; grey yes|no : Store and draw the rasters in grey scale (small size of file).&amp;lt;br&amp;gt;The conversion follows the NTSC video standard.&lt;br /&gt;
&lt;br /&gt;
; maskcell (raster.1 [raster.2]) : Set the ''raster.1'' map to use as mask (independent of the mask set in GRASS with [[r.mask]]) and, optionally, the ''raster.2'' map uses as background.&amp;lt;br&amp;gt;The background ''raster.2'' is painted in grey scale (NTSC) and tinted with ''maskcolor''.&lt;br /&gt;
&lt;br /&gt;
; maskcolor (color|none) : Set the ''color'' of the mask area.&amp;lt;br&amp;gt;If a raster map as background is set then it's drawn with a scale white-maskcolor.&lt;br /&gt;
&lt;br /&gt;
; outline : Block ''line''. Outline of categories.&lt;br /&gt;
&lt;br /&gt;
; setcolor null|default|(number) (color) : Replace the color of the cat ''number'' area with a new color.&amp;lt;br&amp;gt;Multiple ''setcolor'' are possibles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_raster1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_outline.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;outline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width .2mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;end&amp;lt;br/&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_setcolor.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor white&amp;lt;br&amp;gt;&amp;amp;nbsp;setcolor 37 magenta&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_grey.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;grey yes&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Vector maps ==&lt;br /&gt;
&lt;br /&gt;
All vector map accept optionally the following commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; layer (number) : Layer number used with cats/where option.&lt;br /&gt;
&lt;br /&gt;
; cats (n1,n2,...) : List of ''cat''s to show.&lt;br /&gt;
&lt;br /&gt;
; where (text) : Argument of the SQL where clausule to filter the areas to show.&lt;br /&gt;
&lt;br /&gt;
; masked yes|no : Masked or not by raster mask (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; label (text) : For description or title in ''vlegend''.&lt;br /&gt;
&lt;br /&gt;
; legend [(number)]: Position in legend (-1, no legend) or enter in a block ''legend''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vareas ===&lt;br /&gt;
&lt;br /&gt;
Draw areas on the map.&amp;lt;br&amp;gt;&lt;br /&gt;
The areas always are drawn first, on the bottom of other type of maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vareas (vector) : ''vector'' is a vector of areas, except when ''lwidth'' is different to zero that ''vector'' is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type area|line : Default ''area''.&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Style of the boundary.&lt;br /&gt;
&lt;br /&gt;
; fill : Block ''fill''. Style of the area.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic fill color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Text label when default conditions.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color][|dimen] text) : Make a item of a sublegend with label the ''text'' and title the text of the ''label''.&amp;lt;br&amp;gt;The fillcolor of the areas is set to ''color'' and the line width is set to ''dimen'' when ''column.2'' &amp;gt;= n1 and ''column.2'' &amp;lt; n2  (''column.2'' from ''rgbcol'').&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; island yes|no : Draw island as normal areas (fill as normal area then hide it).&lt;br /&gt;
&lt;br /&gt;
; mirror (dimen [number]) : The line is drawn as an area with a copy of the line placed with polar coordinates: ''dimen' and ''angle''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vareas: sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vareas0.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;color indigo&lt;br /&gt;
File:ps_out_vareas4.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;color indigo&amp;lt;br&amp;gt;&amp;amp;nbsp;limit 3mm&lt;br /&gt;
File:ps_out_vareas3.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;pat patterns/diag_up.eps&lt;br /&gt;
File:ps_out_vareas1.png|rgbcol - cat&amp;lt;br&amp;gt;setrule 0-500:red A&amp;lt;br/&amp;gt;setrule 500-1000:green B&amp;lt;br/&amp;gt;setrule 1000-5000:blue C&lt;br /&gt;
File:ps_out_vareas2.png|island no&lt;br /&gt;
File:ps_out_vareas5.png|vareas roadsmajor&amp;lt;br&amp;gt;&amp;amp;nbsp;cat 24,28,32,38,53&amp;lt;br&amp;gt;&amp;amp;nbsp;mirror 5 90&amp;lt;br&amp;gt;[and fill with pat cruz.eps]&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlines ===&lt;br /&gt;
&lt;br /&gt;
Draw lines on the map.&amp;lt;br&amp;gt;The areas always are drawn second, after ''vareas'' and before ''vpoints''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlines (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of lines, except if ''type'' is boundary that ''vector'' is a vector of areas.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Optional commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type line|boundary : Draw boundaries of a vector of areas or lines of a vector of lines (default ''line'').&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Normal line.&lt;br /&gt;
&lt;br /&gt;
; hline : Block ''line''. Highlight line.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Works with ''hline'' to offset from the center of ''line''.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic line color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Label in legend when default values and ''setcolor'' rules.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with ''text'' as label and title the text of the ''label''. Also, the color of the normal line with column &amp;gt;= n1 and column &amp;lt; n2 (column from rgbcol), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlines: sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlines0.png|hline&lt;br /&gt;
File:ps_out_vlines1.png|line 0.05mm&amp;lt;br&amp;gt;setrule 100:brown|.25mm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vpoints ===&lt;br /&gt;
&lt;br /&gt;
Draw points on the map.&amp;lt;br&amp;gt;The points always are drawn last, after ''vareas'' and ''vlines''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vpoints (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of points, except when '''type''' is ''centroid'' or ''boundary'' that it is a vector of areas, or when '''type''' is ''line'' that it is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; type centroid|line|boundary|point : Type of draw (default ''point'').&lt;br /&gt;
&lt;br /&gt;
; symbol (epsfile) : Symbol to use (default: basic/circle).&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Type of line in the symbol.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color): Static fillcolor of the symbol.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Offset of the symbol.&lt;br /&gt;
&lt;br /&gt;
; rotate (number|column) : Angle to rotate the symbol, static ''number'' or dynamic in a ''column'' of the database.&lt;br /&gt;
&lt;br /&gt;
; size (number|column [number]) : Size of the symbol take from ''number'' or from a ''column'' of the database. In the last option, there is a optional ''number'' to define the static size of the symbol in the legend when the size of symbols are dynamic. &lt;br /&gt;
&lt;br /&gt;
; scale (dimen.1 [dimen.2]) : Rescale the size of the symbol by the ''dimen.1'' and, optionally, add a ''dimen.2''. i.e., ''resize = dimen.1 * size + dimen.2''.&lt;br /&gt;
&lt;br /&gt;
; setsize (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;size] text) : Variable size of symbols from data in ''column'' of database set in ''size''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands when type is line&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; dist (dimen) : Define the distance in paper between symbol over the line.&lt;br /&gt;
&lt;br /&gt;
; cline : Block ''line''. Type of line that connect symbols.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vpoints: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vpoints0.png|''Points with same size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size 5&lt;br /&gt;
File:ps_out_vpoints1.png|''Points with dynamic size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT 5&amp;lt;br&amp;gt;&amp;amp;nbsp;scale 0.01 2&lt;br /&gt;
File:ps_out_vpoints2.png|''Points with conditional size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 200-1000:3 &amp;lt; 1000&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 1000-2500:9 &amp;gt; 1000&lt;br /&gt;
File:ps_out_vpoints3.png|''Points on line ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;type line&amp;lt;br&amp;gt;&amp;amp;nbsp;dist 1cm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlabels ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;in progress&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlabels none|(vector) :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; font :&lt;br /&gt;
&lt;br /&gt;
; labelcol (column) :&lt;br /&gt;
&lt;br /&gt;
; decimals (number) :&lt;br /&gt;
&lt;br /&gt;
; circled yes|no :&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2 text)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlabels0.png|vpoints firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;[...]&amp;lt;br/n&amp;gt;end&amp;lt;br/&amp;gt;vlabels firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;labelcol PUMPERS&amp;lt;br/n&amp;gt;&amp;amp;nbsp;font&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;name Univers-Bold&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;size 10&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color yellow&amp;lt;br/n&amp;gt;&amp;amp;nbsp;end&amp;lt;br/n&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Legend of the maps ==&lt;br /&gt;
&lt;br /&gt;
=== rlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the raster map.&amp;lt;br&amp;gt;The units ''meters'' in the gradient legend is set with [[r.support]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; rlegend [text] : Text is the title of the legend. &lt;br /&gt;
&lt;br /&gt;
; raster (raster) : the ''raster'' map to take the data of legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commads are optionals&amp;lt;/U&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; titlefont : Block ''font'' for the legend header.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font'' for the normal text.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Width of the symbol area.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For category legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; cols (number) [(number)] : Number of columns with symbols and separation between columns (default ''1'').&lt;br /&gt;
&lt;br /&gt;
; nodata yes|no : Remove category ''no data''.&lt;br /&gt;
&lt;br /&gt;
; order (n1,n2,...) : To reorder items.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For gradient legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; height (dimen), width (dimen) : Dimension of the frame with the legend.&lt;br /&gt;
&lt;br /&gt;
; vertical yes|no : Orientation of the gradient legend (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; range (n1 n2) : Manual set of the data range for legend.&lt;br /&gt;
&lt;br /&gt;
; gradient yes|no : Forze draw gradient legend with category data.&lt;br /&gt;
&lt;br /&gt;
; tick (dimen) : Length of the ticks.&lt;br /&gt;
&lt;br /&gt;
; whiteframe (dimen) : Width of the white frame around the bar color.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;250px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_rlegend.png|rlegend Zip Codes (wake)&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster zipcodes_wake&amp;lt;br/&amp;gt;&amp;amp;nbsp;cols 2 0&amp;lt;br/&amp;gt;&amp;amp;nbsp;swidth 8mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;order 20,10,30,22,34&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend1.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;height 8cm&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend2.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;width 8cm&amp;lt;br/&amp;gt;&amp;amp;nbsp;vertical no&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the vector maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlegend [text] : Optional the title or head of the legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; title : Block ''font'' for title of legend.&lt;br /&gt;
&lt;br /&gt;
; font : Block font for normal text of legend.&lt;br /&gt;
&lt;br /&gt;
; frame : &lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]) : Distribution of the items in ''number.1'' cols. Optionaly, ''number.2'' of span between columns.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Symbol width.&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Space between lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlegend: sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_output_vlegend0.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: ps.map]]&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=File:Ps_out_vlines1.png&amp;diff=12064</id>
		<title>File:Ps out vlines1.png</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=File:Ps_out_vlines1.png&amp;diff=12064"/>
		<updated>2010-11-06T14:51:24Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: vlines with extended setrule&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;vlines with extended setrule&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12063</id>
		<title>Ps.output</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12063"/>
		<updated>2010-11-06T14:33:43Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: /* palette */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ps.out''' try to update the standard postscript output of Grass adding new features to design borders, graticules, categorized legends, etc&lt;br /&gt;
&lt;br /&gt;
'''This is in progress and not all features are yet uploaded in ''addons''. '''&lt;br /&gt;
&lt;br /&gt;
== Command line flags ==&lt;br /&gt;
&lt;br /&gt;
'''-d ''': Draw a 1x1 cm grid on paper to help the placement of the elements of the map.&lt;br /&gt;
&lt;br /&gt;
'''-e''': Make an output file without the postscript header. Useful when is embebed into other ''ps.out'' map.&lt;br /&gt;
&lt;br /&gt;
'''-g''': Use the extended PostScript of Ghostscript (for transparent colors only)&lt;br /&gt;
&lt;br /&gt;
'''-s''': Draw the small digit in the coordinate numbers to lower instead upper possition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;100px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_grid.png|A4 paper with flag -d &lt;br /&gt;
File:ps_out_digit_upper.png|coordinate&lt;br /&gt;
File:ps_out_digit_lower.png|coordinate with flag -s&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generic Instructions ==&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== dimen ====&lt;br /&gt;
&lt;br /&gt;
Define a dimension. Accepted units are:&lt;br /&gt;
&lt;br /&gt;
*; ''unitless'' : e.g. 123. The dimension is the ''number'' by 1/72&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
*; inch : e.g. 1.2inch. &lt;br /&gt;
&lt;br /&gt;
*; milimeters : e.g. 2.3mm.&lt;br /&gt;
&lt;br /&gt;
*; centimeters : e.g. 1.4cm.&lt;br /&gt;
&lt;br /&gt;
*; percentage : e.g. 50%.&amp;lt;br&amp;gt;The position is relative to the size and position of the map in the paper being ''0%'' the left or bottom corner.&lt;br /&gt;
&lt;br /&gt;
==== color ====&lt;br /&gt;
&lt;br /&gt;
Define a color. Accepted formats are:&lt;br /&gt;
&lt;br /&gt;
*; standard GRASS name : e.g. indigo.&lt;br /&gt;
&lt;br /&gt;
*; R&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;G&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;B : e.g. 200:123:90&lt;br /&gt;
&lt;br /&gt;
*; user name : e.g. red5.&amp;lt;br&amp;gt;Defined in ''palette'' block&lt;br /&gt;
&lt;br /&gt;
All formats can add '$(0-1)' to define the opacity of the color (alpha channel); e.g., indigo$.75 or 200:120:120$.2&lt;br /&gt;
&lt;br /&gt;
==== number ====&lt;br /&gt;
&lt;br /&gt;
==== text ====&lt;br /&gt;
&lt;br /&gt;
=== Blocks of instructions ===&lt;br /&gt;
&lt;br /&gt;
A ''block'' begin with the keywords and finish with keyword ''end''&lt;br /&gt;
&lt;br /&gt;
==== font ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a font.&lt;br /&gt;
&lt;br /&gt;
; name (text) : Name of font.&lt;br /&gt;
&lt;br /&gt;
; size (dimen) : Size of font.&lt;br /&gt;
&lt;br /&gt;
; extend (dimen): Expand the width of font.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of font.&lt;br /&gt;
&lt;br /&gt;
; outline yes|no : Outline of the font.&lt;br /&gt;
&lt;br /&gt;
==== line ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a line.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of line.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of line.&lt;br /&gt;
&lt;br /&gt;
; style solid|dashed|dotted|dashdotted|(n1n2...) : Style of line.&lt;br /&gt;
&lt;br /&gt;
; cap butt|round|extended_butt : Cap&lt;br /&gt;
&lt;br /&gt;
; extended (type step height width) : Extended style of line.&lt;br /&gt;
&lt;br /&gt;
==== fill ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a fill area.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Fill color.&lt;br /&gt;
&lt;br /&gt;
; pat (file) : Fill pattern.&lt;br /&gt;
&lt;br /&gt;
; lwidth (dimen) : Line width of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; scale (number) : Scale of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; limit (dimen) : Limit the fill to the border with a width of ''dimen''.&lt;br /&gt;
&lt;br /&gt;
==== frame ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a frame.&lt;br /&gt;
&lt;br /&gt;
; where (dimen.1 dimen.2) : Position of frame.&lt;br /&gt;
&lt;br /&gt;
; offset (number.1 number.2) : Fine x and y adjust of the position of frame.&lt;br /&gt;
&lt;br /&gt;
; ref right|left|center upper|lower|center : Position is relative to the ''ref''.&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border line&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of the border line.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the frame.&lt;br /&gt;
&lt;br /&gt;
; rotate (dimen) : &amp;lt;u&amp;gt;todo&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== legend ====&lt;br /&gt;
&lt;br /&gt;
; lpos (number): Position in legend&amp;lt;br&amp;gt;Codes: -1, no show in legend; 0 automatic position; &amp;gt; 0 horizontal position.&lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]): Organize legend in ''number.1'' cols with a optional span of ''number.2''&lt;br /&gt;
&lt;br /&gt;
; interline (dimen): Set partial legend interline&lt;br /&gt;
&lt;br /&gt;
== Map paper ==&lt;br /&gt;
&lt;br /&gt;
=== paper ===&lt;br /&gt;
&lt;br /&gt;
Size of paper. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; paper [A0-6|B0-6|Legal|Ledger|Tabloid|Executive|Folio] : Type of paper (default A4).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; color (color) : Paper color.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Custom size of paper.&lt;br /&gt;
&lt;br /&gt;
; left (dimen), right (dimen), top (dimen), bottom (dimen) : Custom margins (default 0.5&amp;quot; left and right, and 1&amp;quot; top and bottom).&lt;br /&gt;
&lt;br /&gt;
; landscape yes|no : Paper orientation (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''. Set the default font of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''. Free draw as watermarks, before any feature of the map is drawn (see ''draw'').&lt;br /&gt;
&lt;br /&gt;
=== scale ===&lt;br /&gt;
&lt;br /&gt;
Scale of the map.&lt;br /&gt;
&lt;br /&gt;
Simple line command to define the scale of the map. The default is adjust map to the paper dimensions. If the remaining dimensions of the paper not permit the scale, ''ps.out'' adjust the scale to a new value that it fit in the paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scale 1&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;(number) : Scale of map.&amp;lt;br&amp;gt;For example, ''scale 1:500000'' to rescale maparea dimensions.&lt;br /&gt;
&lt;br /&gt;
=== maparea ===&lt;br /&gt;
Define specific dimensions of the map (default defined by command ''scale'')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; maparea : Define characteristics of the map area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border map.&amp;lt;br&amp;gt;Usefull with ''in'' and ''out'' formats of the ''grid'' and ''geogrid'', ignored in ''iho'' and ''can'' formats.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Border color-&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the map area.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Dimensions of the map.&lt;br /&gt;
&lt;br /&gt;
; top (dimen), bottom (dimen) : Position of the top-left corner of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''.&amp;lt;br&amp;gt;Draw onto the map but before the grid lines, vpoints and vlabels are drawn; i.e. this map elements are drawn over the draw elements.&lt;br /&gt;
&lt;br /&gt;
=== palette ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;testing&amp;lt;/U&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; palette&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; light (color text) :&lt;br /&gt;
&lt;br /&gt;
; dark (color text) :&lt;br /&gt;
&lt;br /&gt;
; wheel (number text) :&lt;br /&gt;
&lt;br /&gt;
; monochrome (color number text) :&lt;br /&gt;
&lt;br /&gt;
; complementary (color number text) :&lt;br /&gt;
&lt;br /&gt;
; analogous (color number text) :&lt;br /&gt;
&lt;br /&gt;
; gradient (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; binary (color name) :&lt;br /&gt;
&lt;br /&gt;
; sequential (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; qualitative (number text) :&lt;br /&gt;
&lt;br /&gt;
; diverging (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
== Common elements ==&lt;br /&gt;
&lt;br /&gt;
=== grid and geogrid ===&lt;br /&gt;
&lt;br /&gt;
Draw a border around the map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; grid|geogrid :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; format in|out|+out|can|iho : Type of border (see examples).&lt;br /&gt;
&lt;br /&gt;
; major (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; minor (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; subminor (number) : ''number'' of subdivisons of the minor divisions.&lt;br /&gt;
&lt;br /&gt;
; trim (number) : Cut trailing zeros.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Color of the border.&lt;br /&gt;
&lt;br /&gt;
; cross (number) : Replace lines by cross&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_iho.png|format iho&lt;br /&gt;
File:ps_out_can.png|format can&lt;br /&gt;
File:ps_out_in.png |format in&lt;br /&gt;
File:ps_out_out.png|format +out&lt;br /&gt;
File:ps_out_out1.png|typical map border&lt;br /&gt;
File:ps_out_out2.png|typical map border with ''subminor 5'' and ''fcolor blue''&lt;br /&gt;
File:ps_out_out3.png|''cross 500'', ''fcolor indigo'', ''color 200:200:200'' in '''maparea'''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== scalebar ===&lt;br /&gt;
&lt;br /&gt;
Set a scalebar on the map.&amp;lt;br&amp;gt;Maximun 5 scalebars in each map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scalebar I|s|S|f|F : Define the type of scalebar (I: inner, s/S: simple, f/F: fill).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; length (number) : Length of the scale.&lt;br /&gt;
&lt;br /&gt;
; units meters|m|kilometers|km|feet|ft|miles|mil|nautical_miles|nm ([text]) : Unit of the length and ''text' to label the units.&lt;br /&gt;
&lt;br /&gt;
; major (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; minor (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor.&lt;br /&gt;
&lt;br /&gt;
; height (dimen) : Height of the bar or ticks.&lt;br /&gt;
&lt;br /&gt;
; zero yes|no : Set position relative to zero value of the scalebar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Scalerbar styles&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;50px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_scalebar_s.png|scalebar s&lt;br /&gt;
File:ps_out_scalebar_S.png|scalebar S&lt;br /&gt;
File:ps_out_scalebar_I.png|scalebar I (uppercase i)&lt;br /&gt;
File:ps_out_scalebar_f.png|scalebar f&lt;br /&gt;
File:ps_out_scalebar_F.png|scalebar F&lt;br /&gt;
File:ps_out_scalebar_3.png|Multiple scalebars zero centered with ''zero yes''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== note ===&lt;br /&gt;
Write special text or free text on any place of the paper with frame (also ''draw'' permit write free-text in paper). &lt;br /&gt;
&lt;br /&gt;
Maximun 20 notes by map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; note &amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;file|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;maplimits|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;dimen|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;scale (text)|(text) : Type of note and text to show.&amp;lt;br&amp;gt;When free text, use '|' to break lines and '.' as first character to center line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; text (text) : Another roption to enter the same as inline note text;&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of note.&lt;br /&gt;
&lt;br /&gt;
; angle (number) : ''number'' of degrees to rotate (do not work fine).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Note keywords and free text&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_note_ml.png  |note :maplimits&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_dimen.png|note :dimen&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scale.png|note :scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_free.png|note free text|in multiple lines&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_freec.png|note .free text|.in multiple [...]&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scaler.png|note :scale scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br&amp;gt;&amp;amp;nbsp;angle 90&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== draw ===&lt;br /&gt;
&lt;br /&gt;
Simple script language to draw predefined postscript code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; draw [none|paper|maparea|free] :  &lt;br /&gt;
''paper'': before any map feature is drawn (equivalent to place inside ''paper'' block); &amp;lt;br&amp;gt;&lt;br /&gt;
''maparea'' before the last elements of the map (equivalent to place inside ''mapare'' block) ; &amp;lt;br&amp;gt;&lt;br /&gt;
''none'': draw over all elements of the map but only in the map area; and &amp;lt;br&amp;gt;&lt;br /&gt;
''free'': after all map features are drawn in any place of the paper; and ''none''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; --- : &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_north1.png   |&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;north 700000 4700000&amp;lt;/source&amp;gt;&lt;br /&gt;
File:ps_out_north2.png   |north 5cm 16.5cm -&lt;br /&gt;
File:ps_out_maplimits.png|maplimits&lt;br /&gt;
File:ps_out_compass.png  |compass 700000 4700000 10000 10.2345&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Raster maps ==&lt;br /&gt;
&lt;br /&gt;
=== raster ===&lt;br /&gt;
&lt;br /&gt;
Draw one or two raster maps on the maparea. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; raster (raster|raster.1 raster.2|raster.R raster.G raster.B|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;group) : The ''raster'' value is the raster mapname, two raster maps ''raster.1'' or color and ''raster.2'' or shade to draw as relief map, three maps ''raster.R'', ''raster.G'' and ''raster.B'' to draw as RGB, or a groupname (leader by ':') with tree RGB maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; grey yes|no : Store and draw the rasters in grey scale (small size of file).&amp;lt;br&amp;gt;The conversion follows the NTSC video standard.&lt;br /&gt;
&lt;br /&gt;
; maskcell (raster.1 [raster.2]) : Set the ''raster.1'' map to use as mask (independent of the mask set in GRASS with [[r.mask]]) and, optionally, the ''raster.2'' map uses as background.&amp;lt;br&amp;gt;The background ''raster.2'' is painted in grey scale (NTSC) and tinted with ''maskcolor''.&lt;br /&gt;
&lt;br /&gt;
; maskcolor (color|none) : Set the ''color'' of the mask area.&amp;lt;br&amp;gt;If a raster map as background is set then it's drawn with a scale white-maskcolor.&lt;br /&gt;
&lt;br /&gt;
; outline : Block ''line''. Outline of categories.&lt;br /&gt;
&lt;br /&gt;
; setcolor null|default|(number) (color) : Replace the color of the cat ''number'' area with a new color.&amp;lt;br&amp;gt;Multiple ''setcolor'' are possibles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_raster1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_outline.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;outline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width .2mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;end&amp;lt;br/&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_setcolor.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor white&amp;lt;br&amp;gt;&amp;amp;nbsp;setcolor 37 magenta&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_grey.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;grey yes&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Vector maps ==&lt;br /&gt;
&lt;br /&gt;
All vector map accept optionally the following commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; layer (number) : Layer number used with cats/where option.&lt;br /&gt;
&lt;br /&gt;
; cats (n1,n2,...) : List of ''cat''s to show.&lt;br /&gt;
&lt;br /&gt;
; where (text) : Argument of the SQL where clausule to filter the areas to show.&lt;br /&gt;
&lt;br /&gt;
; masked yes|no : Masked or not by raster mask (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; label (text) : For description or title in ''vlegend''.&lt;br /&gt;
&lt;br /&gt;
; legend [(number)]: Position in legend (-1, no legend) or enter in a block ''legend''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vareas ===&lt;br /&gt;
&lt;br /&gt;
Draw areas on the map.&amp;lt;br&amp;gt;&lt;br /&gt;
The areas always are drawn first, on the bottom of other type of maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vareas (vector) : ''vector'' is a vector of areas, except when ''lwidth'' is different to zero that ''vector'' is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type area|line : Default ''area''.&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Style of the boundary.&lt;br /&gt;
&lt;br /&gt;
; fill : Block ''fill''. Style of the area.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic fill color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Text label when default conditions.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color][|dimen] text) : Make a item of a sublegend with label the ''text'' and title the text of the ''label''.&amp;lt;br&amp;gt;The fillcolor of the areas is set to ''color'' and the line width is set to ''dimen'' when ''column.2'' &amp;gt;= n1 and ''column.2'' &amp;lt; n2  (''column.2'' from ''rgbcol'').&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; island yes|no : Draw island as normal areas (fill as normal area then hide it).&lt;br /&gt;
&lt;br /&gt;
; mirror (dimen [number]) : The line is drawn as an area with a copy of the line placed with polar coordinates: ''dimen' and ''angle''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vareas: sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vareas0.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;color indigo&lt;br /&gt;
File:ps_out_vareas4.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;color indigo&amp;lt;br&amp;gt;&amp;amp;nbsp;limit 3mm&lt;br /&gt;
File:ps_out_vareas3.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;pat patterns/diag_up.eps&lt;br /&gt;
File:ps_out_vareas1.png|rgbcol - cat&amp;lt;br&amp;gt;setrule 0-500:red A&amp;lt;br/&amp;gt;setrule 500-1000:green B&amp;lt;br/&amp;gt;setrule 1000-5000:blue C&lt;br /&gt;
File:ps_out_vareas2.png|island no&lt;br /&gt;
File:ps_out_vareas5.png|vareas roadsmajor&amp;lt;br&amp;gt;&amp;amp;nbsp;cat 24,28,32,38,53&amp;lt;br&amp;gt;&amp;amp;nbsp;mirror 5 90&amp;lt;br&amp;gt;[and fill with pat cruz.eps]&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlines ===&lt;br /&gt;
&lt;br /&gt;
Draw lines on the map.&amp;lt;br&amp;gt;The areas always are drawn second, after ''vareas'' and before ''vpoints''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlines (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of lines, except if ''type'' is boundary that ''vector'' is a vector of areas.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Optional commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type line|boundary : Draw boundaries of a vector of areas or lines of a vector of lines (default ''line'').&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Normal line.&lt;br /&gt;
&lt;br /&gt;
; hline : Block ''line''. Highlight line.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Works with ''hline'' to offset from the center of ''line''.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic line color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Label in legend when default values and ''setcolor'' rules.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with ''text'' as label and title the text of the ''label''. Also, the color of the normal line with column &amp;gt;= n1 and column &amp;lt; n2 (column from rgbcol), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlines: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlines0.png|''Effect of the ''hline'' block ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;hline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width 1mm&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color red&amp;lt;br&amp;gt;&amp;amp;nbsp;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vpoints ===&lt;br /&gt;
&lt;br /&gt;
Draw points on the map.&amp;lt;br&amp;gt;The points always are drawn last, after ''vareas'' and ''vlines''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vpoints (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of points, except when '''type''' is ''centroid'' or ''boundary'' that it is a vector of areas, or when '''type''' is ''line'' that it is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; type centroid|line|boundary|point : Type of draw (default ''point'').&lt;br /&gt;
&lt;br /&gt;
; symbol (epsfile) : Symbol to use (default: basic/circle).&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Type of line in the symbol.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color): Static fillcolor of the symbol.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Offset of the symbol.&lt;br /&gt;
&lt;br /&gt;
; rotate (number|column) : Angle to rotate the symbol, static ''number'' or dynamic in a ''column'' of the database.&lt;br /&gt;
&lt;br /&gt;
; size (number|column [number]) : Size of the symbol take from ''number'' or from a ''column'' of the database. In the last option, there is a optional ''number'' to define the static size of the symbol in the legend when the size of symbols are dynamic. &lt;br /&gt;
&lt;br /&gt;
; scale (dimen.1 [dimen.2]) : Rescale the size of the symbol by the ''dimen.1'' and, optionally, add a ''dimen.2''. i.e., ''resize = dimen.1 * size + dimen.2''.&lt;br /&gt;
&lt;br /&gt;
; setsize (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;size] text) : Variable size of symbols from data in ''column'' of database set in ''size''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands when type is line&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; dist (dimen) : Define the distance in paper between symbol over the line.&lt;br /&gt;
&lt;br /&gt;
; cline : Block ''line''. Type of line that connect symbols.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vpoints: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vpoints0.png|''Points with same size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size 5&lt;br /&gt;
File:ps_out_vpoints1.png|''Points with dynamic size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT 5&amp;lt;br&amp;gt;&amp;amp;nbsp;scale 0.01 2&lt;br /&gt;
File:ps_out_vpoints2.png|''Points with conditional size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 200-1000:3 &amp;lt; 1000&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 1000-2500:9 &amp;gt; 1000&lt;br /&gt;
File:ps_out_vpoints3.png|''Points on line ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;type line&amp;lt;br&amp;gt;&amp;amp;nbsp;dist 1cm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlabels ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;in progress&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlabels none|(vector) :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; font :&lt;br /&gt;
&lt;br /&gt;
; labelcol (column) :&lt;br /&gt;
&lt;br /&gt;
; decimals (number) :&lt;br /&gt;
&lt;br /&gt;
; circled yes|no :&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2 text)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlabels0.png|vpoints firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;[...]&amp;lt;br/n&amp;gt;end&amp;lt;br/&amp;gt;vlabels firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;labelcol PUMPERS&amp;lt;br/n&amp;gt;&amp;amp;nbsp;font&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;name Univers-Bold&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;size 10&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color yellow&amp;lt;br/n&amp;gt;&amp;amp;nbsp;end&amp;lt;br/n&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Legend of the maps ==&lt;br /&gt;
&lt;br /&gt;
=== rlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the raster map.&amp;lt;br&amp;gt;The units ''meters'' in the gradient legend is set with [[r.support]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; rlegend [text] : Text is the title of the legend. &lt;br /&gt;
&lt;br /&gt;
; raster (raster) : the ''raster'' map to take the data of legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commads are optionals&amp;lt;/U&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; titlefont : Block ''font'' for the legend header.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font'' for the normal text.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Width of the symbol area.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For category legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; cols (number) [(number)] : Number of columns with symbols and separation between columns (default ''1'').&lt;br /&gt;
&lt;br /&gt;
; nodata yes|no : Remove category ''no data''.&lt;br /&gt;
&lt;br /&gt;
; order (n1,n2,...) : To reorder items.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For gradient legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; height (dimen), width (dimen) : Dimension of the frame with the legend.&lt;br /&gt;
&lt;br /&gt;
; vertical yes|no : Orientation of the gradient legend (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; range (n1 n2) : Manual set of the data range for legend.&lt;br /&gt;
&lt;br /&gt;
; gradient yes|no : Forze draw gradient legend with category data.&lt;br /&gt;
&lt;br /&gt;
; tick (dimen) : Length of the ticks.&lt;br /&gt;
&lt;br /&gt;
; whiteframe (dimen) : Width of the white frame around the bar color.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;250px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_rlegend.png|rlegend Zip Codes (wake)&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster zipcodes_wake&amp;lt;br/&amp;gt;&amp;amp;nbsp;cols 2 0&amp;lt;br/&amp;gt;&amp;amp;nbsp;swidth 8mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;order 20,10,30,22,34&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend1.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;height 8cm&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend2.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;width 8cm&amp;lt;br/&amp;gt;&amp;amp;nbsp;vertical no&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the vector maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlegend [text] : Optional the title or head of the legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; title : Block ''font'' for title of legend.&lt;br /&gt;
&lt;br /&gt;
; font : Block font for normal text of legend.&lt;br /&gt;
&lt;br /&gt;
; frame : &lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]) : Distribution of the items in ''number.1'' cols. Optionaly, ''number.2'' of span between columns.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Symbol width.&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Space between lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlegend: sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_output_vlegend0.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: ps.map]]&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12062</id>
		<title>Ps.output</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12062"/>
		<updated>2010-11-06T11:37:22Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: /* vareas */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ps.out''' try to update the standard postscript output of Grass adding new features to design borders, graticules, categorized legends, etc&lt;br /&gt;
&lt;br /&gt;
'''This is in progress and not all features are yet uploaded in ''addons''. '''&lt;br /&gt;
&lt;br /&gt;
== Command line flags ==&lt;br /&gt;
&lt;br /&gt;
'''-d ''': Draw a 1x1 cm grid on paper to help the placement of the elements of the map.&lt;br /&gt;
&lt;br /&gt;
'''-e''': Make an output file without the postscript header. Useful when is embebed into other ''ps.out'' map.&lt;br /&gt;
&lt;br /&gt;
'''-g''': Use the extended PostScript of Ghostscript (for transparent colors only)&lt;br /&gt;
&lt;br /&gt;
'''-s''': Draw the small digit in the coordinate numbers to lower instead upper possition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;100px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_grid.png|A4 paper with flag -d &lt;br /&gt;
File:ps_out_digit_upper.png|coordinate&lt;br /&gt;
File:ps_out_digit_lower.png|coordinate with flag -s&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generic Instructions ==&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== dimen ====&lt;br /&gt;
&lt;br /&gt;
Define a dimension. Accepted units are:&lt;br /&gt;
&lt;br /&gt;
*; ''unitless'' : e.g. 123. The dimension is the ''number'' by 1/72&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
*; inch : e.g. 1.2inch. &lt;br /&gt;
&lt;br /&gt;
*; milimeters : e.g. 2.3mm.&lt;br /&gt;
&lt;br /&gt;
*; centimeters : e.g. 1.4cm.&lt;br /&gt;
&lt;br /&gt;
*; percentage : e.g. 50%.&amp;lt;br&amp;gt;The position is relative to the size and position of the map in the paper being ''0%'' the left or bottom corner.&lt;br /&gt;
&lt;br /&gt;
==== color ====&lt;br /&gt;
&lt;br /&gt;
Define a color. Accepted formats are:&lt;br /&gt;
&lt;br /&gt;
*; standard GRASS name : e.g. indigo.&lt;br /&gt;
&lt;br /&gt;
*; R&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;G&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;B : e.g. 200:123:90&lt;br /&gt;
&lt;br /&gt;
*; user name : e.g. red5.&amp;lt;br&amp;gt;Defined in ''palette'' block&lt;br /&gt;
&lt;br /&gt;
All formats can add '$(0-1)' to define the opacity of the color (alpha channel); e.g., indigo$.75 or 200:120:120$.2&lt;br /&gt;
&lt;br /&gt;
==== number ====&lt;br /&gt;
&lt;br /&gt;
==== text ====&lt;br /&gt;
&lt;br /&gt;
=== Blocks of instructions ===&lt;br /&gt;
&lt;br /&gt;
A ''block'' begin with the keywords and finish with keyword ''end''&lt;br /&gt;
&lt;br /&gt;
==== font ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a font.&lt;br /&gt;
&lt;br /&gt;
; name (text) : Name of font.&lt;br /&gt;
&lt;br /&gt;
; size (dimen) : Size of font.&lt;br /&gt;
&lt;br /&gt;
; extend (dimen): Expand the width of font.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of font.&lt;br /&gt;
&lt;br /&gt;
; outline yes|no : Outline of the font.&lt;br /&gt;
&lt;br /&gt;
==== line ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a line.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of line.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of line.&lt;br /&gt;
&lt;br /&gt;
; style solid|dashed|dotted|dashdotted|(n1n2...) : Style of line.&lt;br /&gt;
&lt;br /&gt;
; cap butt|round|extended_butt : Cap&lt;br /&gt;
&lt;br /&gt;
; extended (type step height width) : Extended style of line.&lt;br /&gt;
&lt;br /&gt;
==== fill ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a fill area.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Fill color.&lt;br /&gt;
&lt;br /&gt;
; pat (file) : Fill pattern.&lt;br /&gt;
&lt;br /&gt;
; lwidth (dimen) : Line width of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; scale (number) : Scale of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; limit (dimen) : Limit the fill to the border with a width of ''dimen''.&lt;br /&gt;
&lt;br /&gt;
==== frame ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a frame.&lt;br /&gt;
&lt;br /&gt;
; where (dimen.1 dimen.2) : Position of frame.&lt;br /&gt;
&lt;br /&gt;
; offset (number.1 number.2) : Fine x and y adjust of the position of frame.&lt;br /&gt;
&lt;br /&gt;
; ref right|left|center upper|lower|center : Position is relative to the ''ref''.&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border line&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of the border line.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the frame.&lt;br /&gt;
&lt;br /&gt;
; rotate (dimen) : &amp;lt;u&amp;gt;todo&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== legend ====&lt;br /&gt;
&lt;br /&gt;
; lpos (number): Position in legend&amp;lt;br&amp;gt;Codes: -1, no show in legend; 0 automatic position; &amp;gt; 0 horizontal position.&lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]): Organize legend in ''number.1'' cols with a optional span of ''number.2''&lt;br /&gt;
&lt;br /&gt;
; interline (dimen): Set partial legend interline&lt;br /&gt;
&lt;br /&gt;
== Map paper ==&lt;br /&gt;
&lt;br /&gt;
=== paper ===&lt;br /&gt;
&lt;br /&gt;
Size of paper. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; paper [A0-6|B0-6|Legal|Ledger|Tabloid|Executive|Folio] : Type of paper (default A4).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; color (color) : Paper color.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Custom size of paper.&lt;br /&gt;
&lt;br /&gt;
; left (dimen), right (dimen), top (dimen), bottom (dimen) : Custom margins (default 0.5&amp;quot; left and right, and 1&amp;quot; top and bottom).&lt;br /&gt;
&lt;br /&gt;
; landscape yes|no : Paper orientation (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''. Set the default font of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''. Free draw as watermarks, before any feature of the map is drawn (see ''draw'').&lt;br /&gt;
&lt;br /&gt;
=== scale ===&lt;br /&gt;
&lt;br /&gt;
Scale of the map.&lt;br /&gt;
&lt;br /&gt;
Simple line command to define the scale of the map. The default is adjust map to the paper dimensions. If the remaining dimensions of the paper not permit the scale, ''ps.out'' adjust the scale to a new value that it fit in the paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scale 1&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;(number) : Scale of map.&amp;lt;br&amp;gt;For example, ''scale 1:500000'' to rescale maparea dimensions.&lt;br /&gt;
&lt;br /&gt;
=== maparea ===&lt;br /&gt;
Define specific dimensions of the map (default defined by command ''scale'')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; maparea : Define characteristics of the map area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border map.&amp;lt;br&amp;gt;Usefull with ''in'' and ''out'' formats of the ''grid'' and ''geogrid'', ignored in ''iho'' and ''can'' formats.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Border color-&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the map area.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Dimensions of the map.&lt;br /&gt;
&lt;br /&gt;
; top (dimen), bottom (dimen) : Position of the top-left corner of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''.&amp;lt;br&amp;gt;Draw onto the map but before the grid lines, vpoints and vlabels are drawn; i.e. this map elements are drawn over the draw elements.&lt;br /&gt;
&lt;br /&gt;
=== palette ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;testing&amp;lt;/U&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; palette&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; wheel (number text) :&lt;br /&gt;
&lt;br /&gt;
; monochrome (color number text) :&lt;br /&gt;
&lt;br /&gt;
; complementary (color number text) :&lt;br /&gt;
&lt;br /&gt;
; analogous (color number text) :&lt;br /&gt;
&lt;br /&gt;
; gradient (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; diverging (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
== Common elements ==&lt;br /&gt;
&lt;br /&gt;
=== grid and geogrid ===&lt;br /&gt;
&lt;br /&gt;
Draw a border around the map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; grid|geogrid :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; format in|out|+out|can|iho : Type of border (see examples).&lt;br /&gt;
&lt;br /&gt;
; major (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; minor (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; subminor (number) : ''number'' of subdivisons of the minor divisions.&lt;br /&gt;
&lt;br /&gt;
; trim (number) : Cut trailing zeros.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Color of the border.&lt;br /&gt;
&lt;br /&gt;
; cross (number) : Replace lines by cross&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_iho.png|format iho&lt;br /&gt;
File:ps_out_can.png|format can&lt;br /&gt;
File:ps_out_in.png |format in&lt;br /&gt;
File:ps_out_out.png|format +out&lt;br /&gt;
File:ps_out_out1.png|typical map border&lt;br /&gt;
File:ps_out_out2.png|typical map border with ''subminor 5'' and ''fcolor blue''&lt;br /&gt;
File:ps_out_out3.png|''cross 500'', ''fcolor indigo'', ''color 200:200:200'' in '''maparea'''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== scalebar ===&lt;br /&gt;
&lt;br /&gt;
Set a scalebar on the map.&amp;lt;br&amp;gt;Maximun 5 scalebars in each map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scalebar I|s|S|f|F : Define the type of scalebar (I: inner, s/S: simple, f/F: fill).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; length (number) : Length of the scale.&lt;br /&gt;
&lt;br /&gt;
; units meters|m|kilometers|km|feet|ft|miles|mil|nautical_miles|nm ([text]) : Unit of the length and ''text' to label the units.&lt;br /&gt;
&lt;br /&gt;
; major (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; minor (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor.&lt;br /&gt;
&lt;br /&gt;
; height (dimen) : Height of the bar or ticks.&lt;br /&gt;
&lt;br /&gt;
; zero yes|no : Set position relative to zero value of the scalebar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Scalerbar styles&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;50px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_scalebar_s.png|scalebar s&lt;br /&gt;
File:ps_out_scalebar_S.png|scalebar S&lt;br /&gt;
File:ps_out_scalebar_I.png|scalebar I (uppercase i)&lt;br /&gt;
File:ps_out_scalebar_f.png|scalebar f&lt;br /&gt;
File:ps_out_scalebar_F.png|scalebar F&lt;br /&gt;
File:ps_out_scalebar_3.png|Multiple scalebars zero centered with ''zero yes''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== note ===&lt;br /&gt;
Write special text or free text on any place of the paper with frame (also ''draw'' permit write free-text in paper). &lt;br /&gt;
&lt;br /&gt;
Maximun 20 notes by map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; note &amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;file|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;maplimits|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;dimen|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;scale (text)|(text) : Type of note and text to show.&amp;lt;br&amp;gt;When free text, use '|' to break lines and '.' as first character to center line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; text (text) : Another roption to enter the same as inline note text;&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of note.&lt;br /&gt;
&lt;br /&gt;
; angle (number) : ''number'' of degrees to rotate (do not work fine).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Note keywords and free text&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_note_ml.png  |note :maplimits&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_dimen.png|note :dimen&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scale.png|note :scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_free.png|note free text|in multiple lines&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_freec.png|note .free text|.in multiple [...]&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scaler.png|note :scale scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br&amp;gt;&amp;amp;nbsp;angle 90&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== draw ===&lt;br /&gt;
&lt;br /&gt;
Simple script language to draw predefined postscript code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; draw [none|paper|maparea|free] :  &lt;br /&gt;
''paper'': before any map feature is drawn (equivalent to place inside ''paper'' block); &amp;lt;br&amp;gt;&lt;br /&gt;
''maparea'' before the last elements of the map (equivalent to place inside ''mapare'' block) ; &amp;lt;br&amp;gt;&lt;br /&gt;
''none'': draw over all elements of the map but only in the map area; and &amp;lt;br&amp;gt;&lt;br /&gt;
''free'': after all map features are drawn in any place of the paper; and ''none''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; --- : &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_north1.png   |&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;north 700000 4700000&amp;lt;/source&amp;gt;&lt;br /&gt;
File:ps_out_north2.png   |north 5cm 16.5cm -&lt;br /&gt;
File:ps_out_maplimits.png|maplimits&lt;br /&gt;
File:ps_out_compass.png  |compass 700000 4700000 10000 10.2345&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Raster maps ==&lt;br /&gt;
&lt;br /&gt;
=== raster ===&lt;br /&gt;
&lt;br /&gt;
Draw one or two raster maps on the maparea. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; raster (raster|raster.1 raster.2|raster.R raster.G raster.B|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;group) : The ''raster'' value is the raster mapname, two raster maps ''raster.1'' or color and ''raster.2'' or shade to draw as relief map, three maps ''raster.R'', ''raster.G'' and ''raster.B'' to draw as RGB, or a groupname (leader by ':') with tree RGB maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; grey yes|no : Store and draw the rasters in grey scale (small size of file).&amp;lt;br&amp;gt;The conversion follows the NTSC video standard.&lt;br /&gt;
&lt;br /&gt;
; maskcell (raster.1 [raster.2]) : Set the ''raster.1'' map to use as mask (independent of the mask set in GRASS with [[r.mask]]) and, optionally, the ''raster.2'' map uses as background.&amp;lt;br&amp;gt;The background ''raster.2'' is painted in grey scale (NTSC) and tinted with ''maskcolor''.&lt;br /&gt;
&lt;br /&gt;
; maskcolor (color|none) : Set the ''color'' of the mask area.&amp;lt;br&amp;gt;If a raster map as background is set then it's drawn with a scale white-maskcolor.&lt;br /&gt;
&lt;br /&gt;
; outline : Block ''line''. Outline of categories.&lt;br /&gt;
&lt;br /&gt;
; setcolor null|default|(number) (color) : Replace the color of the cat ''number'' area with a new color.&amp;lt;br&amp;gt;Multiple ''setcolor'' are possibles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_raster1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_outline.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;outline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width .2mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;end&amp;lt;br/&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_setcolor.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor white&amp;lt;br&amp;gt;&amp;amp;nbsp;setcolor 37 magenta&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_grey.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;grey yes&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Vector maps ==&lt;br /&gt;
&lt;br /&gt;
All vector map accept optionally the following commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; layer (number) : Layer number used with cats/where option.&lt;br /&gt;
&lt;br /&gt;
; cats (n1,n2,...) : List of ''cat''s to show.&lt;br /&gt;
&lt;br /&gt;
; where (text) : Argument of the SQL where clausule to filter the areas to show.&lt;br /&gt;
&lt;br /&gt;
; masked yes|no : Masked or not by raster mask (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; label (text) : For description or title in ''vlegend''.&lt;br /&gt;
&lt;br /&gt;
; legend [(number)]: Position in legend (-1, no legend) or enter in a block ''legend''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vareas ===&lt;br /&gt;
&lt;br /&gt;
Draw areas on the map.&amp;lt;br&amp;gt;&lt;br /&gt;
The areas always are drawn first, on the bottom of other type of maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vareas (vector) : ''vector'' is a vector of areas, except when ''lwidth'' is different to zero that ''vector'' is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type area|line : Default ''area''.&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Style of the boundary.&lt;br /&gt;
&lt;br /&gt;
; fill : Block ''fill''. Style of the area.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic fill color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Text label when default conditions.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color][|dimen] text) : Make a item of a sublegend with label the ''text'' and title the text of the ''label''.&amp;lt;br&amp;gt;The fillcolor of the areas is set to ''color'' and the line width is set to ''dimen'' when ''column.2'' &amp;gt;= n1 and ''column.2'' &amp;lt; n2  (''column.2'' from ''rgbcol'').&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; island yes|no : Draw island as normal areas (fill as normal area then hide it).&lt;br /&gt;
&lt;br /&gt;
; mirror (dimen [number]) : The line is drawn as an area with a copy of the line placed with polar coordinates: ''dimen' and ''angle''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vareas: sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vareas0.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;color indigo&lt;br /&gt;
File:ps_out_vareas4.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;color indigo&amp;lt;br&amp;gt;&amp;amp;nbsp;limit 3mm&lt;br /&gt;
File:ps_out_vareas3.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;pat patterns/diag_up.eps&lt;br /&gt;
File:ps_out_vareas1.png|rgbcol - cat&amp;lt;br&amp;gt;setrule 0-500:red A&amp;lt;br/&amp;gt;setrule 500-1000:green B&amp;lt;br/&amp;gt;setrule 1000-5000:blue C&lt;br /&gt;
File:ps_out_vareas2.png|island no&lt;br /&gt;
File:ps_out_vareas5.png|vareas roadsmajor&amp;lt;br&amp;gt;&amp;amp;nbsp;cat 24,28,32,38,53&amp;lt;br&amp;gt;&amp;amp;nbsp;mirror 5 90&amp;lt;br&amp;gt;[and fill with pat cruz.eps]&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlines ===&lt;br /&gt;
&lt;br /&gt;
Draw lines on the map.&amp;lt;br&amp;gt;The areas always are drawn second, after ''vareas'' and before ''vpoints''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlines (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of lines, except if ''type'' is boundary that ''vector'' is a vector of areas.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Optional commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type line|boundary : Draw boundaries of a vector of areas or lines of a vector of lines (default ''line'').&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Normal line.&lt;br /&gt;
&lt;br /&gt;
; hline : Block ''line''. Highlight line.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Works with ''hline'' to offset from the center of ''line''.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic line color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Label in legend when default values and ''setcolor'' rules.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with ''text'' as label and title the text of the ''label''. Also, the color of the normal line with column &amp;gt;= n1 and column &amp;lt; n2 (column from rgbcol), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlines: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlines0.png|''Effect of the ''hline'' block ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;hline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width 1mm&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color red&amp;lt;br&amp;gt;&amp;amp;nbsp;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vpoints ===&lt;br /&gt;
&lt;br /&gt;
Draw points on the map.&amp;lt;br&amp;gt;The points always are drawn last, after ''vareas'' and ''vlines''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vpoints (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of points, except when '''type''' is ''centroid'' or ''boundary'' that it is a vector of areas, or when '''type''' is ''line'' that it is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; type centroid|line|boundary|point : Type of draw (default ''point'').&lt;br /&gt;
&lt;br /&gt;
; symbol (epsfile) : Symbol to use (default: basic/circle).&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Type of line in the symbol.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color): Static fillcolor of the symbol.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Offset of the symbol.&lt;br /&gt;
&lt;br /&gt;
; rotate (number|column) : Angle to rotate the symbol, static ''number'' or dynamic in a ''column'' of the database.&lt;br /&gt;
&lt;br /&gt;
; size (number|column [number]) : Size of the symbol take from ''number'' or from a ''column'' of the database. In the last option, there is a optional ''number'' to define the static size of the symbol in the legend when the size of symbols are dynamic. &lt;br /&gt;
&lt;br /&gt;
; scale (dimen.1 [dimen.2]) : Rescale the size of the symbol by the ''dimen.1'' and, optionally, add a ''dimen.2''. i.e., ''resize = dimen.1 * size + dimen.2''.&lt;br /&gt;
&lt;br /&gt;
; setsize (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;size] text) : Variable size of symbols from data in ''column'' of database set in ''size''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands when type is line&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; dist (dimen) : Define the distance in paper between symbol over the line.&lt;br /&gt;
&lt;br /&gt;
; cline : Block ''line''. Type of line that connect symbols.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vpoints: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vpoints0.png|''Points with same size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size 5&lt;br /&gt;
File:ps_out_vpoints1.png|''Points with dynamic size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT 5&amp;lt;br&amp;gt;&amp;amp;nbsp;scale 0.01 2&lt;br /&gt;
File:ps_out_vpoints2.png|''Points with conditional size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 200-1000:3 &amp;lt; 1000&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 1000-2500:9 &amp;gt; 1000&lt;br /&gt;
File:ps_out_vpoints3.png|''Points on line ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;type line&amp;lt;br&amp;gt;&amp;amp;nbsp;dist 1cm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlabels ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;in progress&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlabels none|(vector) :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; font :&lt;br /&gt;
&lt;br /&gt;
; labelcol (column) :&lt;br /&gt;
&lt;br /&gt;
; decimals (number) :&lt;br /&gt;
&lt;br /&gt;
; circled yes|no :&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2 text)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlabels0.png|vpoints firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;[...]&amp;lt;br/n&amp;gt;end&amp;lt;br/&amp;gt;vlabels firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;labelcol PUMPERS&amp;lt;br/n&amp;gt;&amp;amp;nbsp;font&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;name Univers-Bold&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;size 10&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color yellow&amp;lt;br/n&amp;gt;&amp;amp;nbsp;end&amp;lt;br/n&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Legend of the maps ==&lt;br /&gt;
&lt;br /&gt;
=== rlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the raster map.&amp;lt;br&amp;gt;The units ''meters'' in the gradient legend is set with [[r.support]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; rlegend [text] : Text is the title of the legend. &lt;br /&gt;
&lt;br /&gt;
; raster (raster) : the ''raster'' map to take the data of legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commads are optionals&amp;lt;/U&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; titlefont : Block ''font'' for the legend header.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font'' for the normal text.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Width of the symbol area.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For category legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; cols (number) [(number)] : Number of columns with symbols and separation between columns (default ''1'').&lt;br /&gt;
&lt;br /&gt;
; nodata yes|no : Remove category ''no data''.&lt;br /&gt;
&lt;br /&gt;
; order (n1,n2,...) : To reorder items.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For gradient legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; height (dimen), width (dimen) : Dimension of the frame with the legend.&lt;br /&gt;
&lt;br /&gt;
; vertical yes|no : Orientation of the gradient legend (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; range (n1 n2) : Manual set of the data range for legend.&lt;br /&gt;
&lt;br /&gt;
; gradient yes|no : Forze draw gradient legend with category data.&lt;br /&gt;
&lt;br /&gt;
; tick (dimen) : Length of the ticks.&lt;br /&gt;
&lt;br /&gt;
; whiteframe (dimen) : Width of the white frame around the bar color.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;250px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_rlegend.png|rlegend Zip Codes (wake)&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster zipcodes_wake&amp;lt;br/&amp;gt;&amp;amp;nbsp;cols 2 0&amp;lt;br/&amp;gt;&amp;amp;nbsp;swidth 8mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;order 20,10,30,22,34&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend1.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;height 8cm&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend2.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;width 8cm&amp;lt;br/&amp;gt;&amp;amp;nbsp;vertical no&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the vector maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlegend [text] : Optional the title or head of the legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; title : Block ''font'' for title of legend.&lt;br /&gt;
&lt;br /&gt;
; font : Block font for normal text of legend.&lt;br /&gt;
&lt;br /&gt;
; frame : &lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]) : Distribution of the items in ''number.1'' cols. Optionaly, ''number.2'' of span between columns.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Symbol width.&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Space between lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlegend: sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_output_vlegend0.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: ps.map]]&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12061</id>
		<title>Ps.output</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12061"/>
		<updated>2010-11-06T11:36:32Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: /* vareas */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ps.out''' try to update the standard postscript output of Grass adding new features to design borders, graticules, categorized legends, etc&lt;br /&gt;
&lt;br /&gt;
'''This is in progress and not all features are yet uploaded in ''addons''. '''&lt;br /&gt;
&lt;br /&gt;
== Command line flags ==&lt;br /&gt;
&lt;br /&gt;
'''-d ''': Draw a 1x1 cm grid on paper to help the placement of the elements of the map.&lt;br /&gt;
&lt;br /&gt;
'''-e''': Make an output file without the postscript header. Useful when is embebed into other ''ps.out'' map.&lt;br /&gt;
&lt;br /&gt;
'''-g''': Use the extended PostScript of Ghostscript (for transparent colors only)&lt;br /&gt;
&lt;br /&gt;
'''-s''': Draw the small digit in the coordinate numbers to lower instead upper possition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;100px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_grid.png|A4 paper with flag -d &lt;br /&gt;
File:ps_out_digit_upper.png|coordinate&lt;br /&gt;
File:ps_out_digit_lower.png|coordinate with flag -s&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generic Instructions ==&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== dimen ====&lt;br /&gt;
&lt;br /&gt;
Define a dimension. Accepted units are:&lt;br /&gt;
&lt;br /&gt;
*; ''unitless'' : e.g. 123. The dimension is the ''number'' by 1/72&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
*; inch : e.g. 1.2inch. &lt;br /&gt;
&lt;br /&gt;
*; milimeters : e.g. 2.3mm.&lt;br /&gt;
&lt;br /&gt;
*; centimeters : e.g. 1.4cm.&lt;br /&gt;
&lt;br /&gt;
*; percentage : e.g. 50%.&amp;lt;br&amp;gt;The position is relative to the size and position of the map in the paper being ''0%'' the left or bottom corner.&lt;br /&gt;
&lt;br /&gt;
==== color ====&lt;br /&gt;
&lt;br /&gt;
Define a color. Accepted formats are:&lt;br /&gt;
&lt;br /&gt;
*; standard GRASS name : e.g. indigo.&lt;br /&gt;
&lt;br /&gt;
*; R&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;G&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;B : e.g. 200:123:90&lt;br /&gt;
&lt;br /&gt;
*; user name : e.g. red5.&amp;lt;br&amp;gt;Defined in ''palette'' block&lt;br /&gt;
&lt;br /&gt;
All formats can add '$(0-1)' to define the opacity of the color (alpha channel); e.g., indigo$.75 or 200:120:120$.2&lt;br /&gt;
&lt;br /&gt;
==== number ====&lt;br /&gt;
&lt;br /&gt;
==== text ====&lt;br /&gt;
&lt;br /&gt;
=== Blocks of instructions ===&lt;br /&gt;
&lt;br /&gt;
A ''block'' begin with the keywords and finish with keyword ''end''&lt;br /&gt;
&lt;br /&gt;
==== font ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a font.&lt;br /&gt;
&lt;br /&gt;
; name (text) : Name of font.&lt;br /&gt;
&lt;br /&gt;
; size (dimen) : Size of font.&lt;br /&gt;
&lt;br /&gt;
; extend (dimen): Expand the width of font.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of font.&lt;br /&gt;
&lt;br /&gt;
; outline yes|no : Outline of the font.&lt;br /&gt;
&lt;br /&gt;
==== line ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a line.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of line.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of line.&lt;br /&gt;
&lt;br /&gt;
; style solid|dashed|dotted|dashdotted|(n1n2...) : Style of line.&lt;br /&gt;
&lt;br /&gt;
; cap butt|round|extended_butt : Cap&lt;br /&gt;
&lt;br /&gt;
; extended (type step height width) : Extended style of line.&lt;br /&gt;
&lt;br /&gt;
==== fill ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a fill area.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Fill color.&lt;br /&gt;
&lt;br /&gt;
; pat (file) : Fill pattern.&lt;br /&gt;
&lt;br /&gt;
; lwidth (dimen) : Line width of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; scale (number) : Scale of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; limit (dimen) : Limit the fill to the border with a width of ''dimen''.&lt;br /&gt;
&lt;br /&gt;
==== frame ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a frame.&lt;br /&gt;
&lt;br /&gt;
; where (dimen.1 dimen.2) : Position of frame.&lt;br /&gt;
&lt;br /&gt;
; offset (number.1 number.2) : Fine x and y adjust of the position of frame.&lt;br /&gt;
&lt;br /&gt;
; ref right|left|center upper|lower|center : Position is relative to the ''ref''.&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border line&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of the border line.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the frame.&lt;br /&gt;
&lt;br /&gt;
; rotate (dimen) : &amp;lt;u&amp;gt;todo&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== legend ====&lt;br /&gt;
&lt;br /&gt;
; lpos (number): Position in legend&amp;lt;br&amp;gt;Codes: -1, no show in legend; 0 automatic position; &amp;gt; 0 horizontal position.&lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]): Organize legend in ''number.1'' cols with a optional span of ''number.2''&lt;br /&gt;
&lt;br /&gt;
; interline (dimen): Set partial legend interline&lt;br /&gt;
&lt;br /&gt;
== Map paper ==&lt;br /&gt;
&lt;br /&gt;
=== paper ===&lt;br /&gt;
&lt;br /&gt;
Size of paper. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; paper [A0-6|B0-6|Legal|Ledger|Tabloid|Executive|Folio] : Type of paper (default A4).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; color (color) : Paper color.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Custom size of paper.&lt;br /&gt;
&lt;br /&gt;
; left (dimen), right (dimen), top (dimen), bottom (dimen) : Custom margins (default 0.5&amp;quot; left and right, and 1&amp;quot; top and bottom).&lt;br /&gt;
&lt;br /&gt;
; landscape yes|no : Paper orientation (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''. Set the default font of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''. Free draw as watermarks, before any feature of the map is drawn (see ''draw'').&lt;br /&gt;
&lt;br /&gt;
=== scale ===&lt;br /&gt;
&lt;br /&gt;
Scale of the map.&lt;br /&gt;
&lt;br /&gt;
Simple line command to define the scale of the map. The default is adjust map to the paper dimensions. If the remaining dimensions of the paper not permit the scale, ''ps.out'' adjust the scale to a new value that it fit in the paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scale 1&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;(number) : Scale of map.&amp;lt;br&amp;gt;For example, ''scale 1:500000'' to rescale maparea dimensions.&lt;br /&gt;
&lt;br /&gt;
=== maparea ===&lt;br /&gt;
Define specific dimensions of the map (default defined by command ''scale'')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; maparea : Define characteristics of the map area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border map.&amp;lt;br&amp;gt;Usefull with ''in'' and ''out'' formats of the ''grid'' and ''geogrid'', ignored in ''iho'' and ''can'' formats.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Border color-&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the map area.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Dimensions of the map.&lt;br /&gt;
&lt;br /&gt;
; top (dimen), bottom (dimen) : Position of the top-left corner of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''.&amp;lt;br&amp;gt;Draw onto the map but before the grid lines, vpoints and vlabels are drawn; i.e. this map elements are drawn over the draw elements.&lt;br /&gt;
&lt;br /&gt;
=== palette ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;testing&amp;lt;/U&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; palette&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; wheel (number text) :&lt;br /&gt;
&lt;br /&gt;
; monochrome (color number text) :&lt;br /&gt;
&lt;br /&gt;
; complementary (color number text) :&lt;br /&gt;
&lt;br /&gt;
; analogous (color number text) :&lt;br /&gt;
&lt;br /&gt;
; gradient (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; diverging (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
== Common elements ==&lt;br /&gt;
&lt;br /&gt;
=== grid and geogrid ===&lt;br /&gt;
&lt;br /&gt;
Draw a border around the map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; grid|geogrid :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; format in|out|+out|can|iho : Type of border (see examples).&lt;br /&gt;
&lt;br /&gt;
; major (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; minor (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; subminor (number) : ''number'' of subdivisons of the minor divisions.&lt;br /&gt;
&lt;br /&gt;
; trim (number) : Cut trailing zeros.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Color of the border.&lt;br /&gt;
&lt;br /&gt;
; cross (number) : Replace lines by cross&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_iho.png|format iho&lt;br /&gt;
File:ps_out_can.png|format can&lt;br /&gt;
File:ps_out_in.png |format in&lt;br /&gt;
File:ps_out_out.png|format +out&lt;br /&gt;
File:ps_out_out1.png|typical map border&lt;br /&gt;
File:ps_out_out2.png|typical map border with ''subminor 5'' and ''fcolor blue''&lt;br /&gt;
File:ps_out_out3.png|''cross 500'', ''fcolor indigo'', ''color 200:200:200'' in '''maparea'''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== scalebar ===&lt;br /&gt;
&lt;br /&gt;
Set a scalebar on the map.&amp;lt;br&amp;gt;Maximun 5 scalebars in each map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scalebar I|s|S|f|F : Define the type of scalebar (I: inner, s/S: simple, f/F: fill).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; length (number) : Length of the scale.&lt;br /&gt;
&lt;br /&gt;
; units meters|m|kilometers|km|feet|ft|miles|mil|nautical_miles|nm ([text]) : Unit of the length and ''text' to label the units.&lt;br /&gt;
&lt;br /&gt;
; major (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; minor (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor.&lt;br /&gt;
&lt;br /&gt;
; height (dimen) : Height of the bar or ticks.&lt;br /&gt;
&lt;br /&gt;
; zero yes|no : Set position relative to zero value of the scalebar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Scalerbar styles&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;50px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_scalebar_s.png|scalebar s&lt;br /&gt;
File:ps_out_scalebar_S.png|scalebar S&lt;br /&gt;
File:ps_out_scalebar_I.png|scalebar I (uppercase i)&lt;br /&gt;
File:ps_out_scalebar_f.png|scalebar f&lt;br /&gt;
File:ps_out_scalebar_F.png|scalebar F&lt;br /&gt;
File:ps_out_scalebar_3.png|Multiple scalebars zero centered with ''zero yes''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== note ===&lt;br /&gt;
Write special text or free text on any place of the paper with frame (also ''draw'' permit write free-text in paper). &lt;br /&gt;
&lt;br /&gt;
Maximun 20 notes by map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; note &amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;file|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;maplimits|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;dimen|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;scale (text)|(text) : Type of note and text to show.&amp;lt;br&amp;gt;When free text, use '|' to break lines and '.' as first character to center line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; text (text) : Another roption to enter the same as inline note text;&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of note.&lt;br /&gt;
&lt;br /&gt;
; angle (number) : ''number'' of degrees to rotate (do not work fine).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Note keywords and free text&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_note_ml.png  |note :maplimits&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_dimen.png|note :dimen&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scale.png|note :scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_free.png|note free text|in multiple lines&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_freec.png|note .free text|.in multiple [...]&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scaler.png|note :scale scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br&amp;gt;&amp;amp;nbsp;angle 90&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== draw ===&lt;br /&gt;
&lt;br /&gt;
Simple script language to draw predefined postscript code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; draw [none|paper|maparea|free] :  &lt;br /&gt;
''paper'': before any map feature is drawn (equivalent to place inside ''paper'' block); &amp;lt;br&amp;gt;&lt;br /&gt;
''maparea'' before the last elements of the map (equivalent to place inside ''mapare'' block) ; &amp;lt;br&amp;gt;&lt;br /&gt;
''none'': draw over all elements of the map but only in the map area; and &amp;lt;br&amp;gt;&lt;br /&gt;
''free'': after all map features are drawn in any place of the paper; and ''none''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; --- : &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_north1.png   |&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;north 700000 4700000&amp;lt;/source&amp;gt;&lt;br /&gt;
File:ps_out_north2.png   |north 5cm 16.5cm -&lt;br /&gt;
File:ps_out_maplimits.png|maplimits&lt;br /&gt;
File:ps_out_compass.png  |compass 700000 4700000 10000 10.2345&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Raster maps ==&lt;br /&gt;
&lt;br /&gt;
=== raster ===&lt;br /&gt;
&lt;br /&gt;
Draw one or two raster maps on the maparea. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; raster (raster|raster.1 raster.2|raster.R raster.G raster.B|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;group) : The ''raster'' value is the raster mapname, two raster maps ''raster.1'' or color and ''raster.2'' or shade to draw as relief map, three maps ''raster.R'', ''raster.G'' and ''raster.B'' to draw as RGB, or a groupname (leader by ':') with tree RGB maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; grey yes|no : Store and draw the rasters in grey scale (small size of file).&amp;lt;br&amp;gt;The conversion follows the NTSC video standard.&lt;br /&gt;
&lt;br /&gt;
; maskcell (raster.1 [raster.2]) : Set the ''raster.1'' map to use as mask (independent of the mask set in GRASS with [[r.mask]]) and, optionally, the ''raster.2'' map uses as background.&amp;lt;br&amp;gt;The background ''raster.2'' is painted in grey scale (NTSC) and tinted with ''maskcolor''.&lt;br /&gt;
&lt;br /&gt;
; maskcolor (color|none) : Set the ''color'' of the mask area.&amp;lt;br&amp;gt;If a raster map as background is set then it's drawn with a scale white-maskcolor.&lt;br /&gt;
&lt;br /&gt;
; outline : Block ''line''. Outline of categories.&lt;br /&gt;
&lt;br /&gt;
; setcolor null|default|(number) (color) : Replace the color of the cat ''number'' area with a new color.&amp;lt;br&amp;gt;Multiple ''setcolor'' are possibles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_raster1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_outline.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;outline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width .2mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;end&amp;lt;br/&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_setcolor.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor white&amp;lt;br&amp;gt;&amp;amp;nbsp;setcolor 37 magenta&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_grey.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;grey yes&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Vector maps ==&lt;br /&gt;
&lt;br /&gt;
All vector map accept optionally the following commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; layer (number) : Layer number used with cats/where option.&lt;br /&gt;
&lt;br /&gt;
; cats (n1,n2,...) : List of ''cat''s to show.&lt;br /&gt;
&lt;br /&gt;
; where (text) : Argument of the SQL where clausule to filter the areas to show.&lt;br /&gt;
&lt;br /&gt;
; masked yes|no : Masked or not by raster mask (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; label (text) : For description or title in ''vlegend''.&lt;br /&gt;
&lt;br /&gt;
; legend [(number)]: Position in legend (-1, no legend) or enter in a block ''legend''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vareas ===&lt;br /&gt;
&lt;br /&gt;
Draw areas on the map.&amp;lt;br&amp;gt;&lt;br /&gt;
The areas always are drawn first, on the bottom of other type of maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vareas (vector) : ''vector'' is a vector of areas, except when ''lwidth'' is different to zero that ''vector'' is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type area|line : Default ''area''.&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Style of the boundary.&lt;br /&gt;
&lt;br /&gt;
; fill : Block ''fill''. Style of the area.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic fill color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Text label when default conditions.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color][|dimen] text) : Make a item of a sublegend with label the ''text'' and title the text of the ''label''.&amp;lt;br&amp;gt;The fillcolor of the areas is set to ''color'' and the line width is set to ''dimen'' when ''column.2'' &amp;gt;= n1 and ''column.2'' &amp;lt; n2  (''column.2'' from ''rgbcol'').&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; island yes|no : Draw island as normal areas (fill as normal area then hide it).&lt;br /&gt;
&lt;br /&gt;
; mirror (dimen [number]) : The line is drawn as an area with a copy of the line placed with polar coordinates: ''dimen' and ''angle''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vareas: sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vareas0.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;color indigo&lt;br /&gt;
File:ps_out_vareas4.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;color indigo&amp;lt;br&amp;gt;&amp;amp;nbsp;limit 3mm&lt;br /&gt;
File:ps_out_vareas5.png|vareas roadsmajor&amp;lt;br&amp;gt;&amp;amp;nbsp;cat 24,28,32,38,53&amp;lt;br&amp;gt;&amp;amp;nbsp;mirror 5 90&amp;lt;br&amp;gt;[and fill with pat cruz.eps]&lt;br /&gt;
File:ps_out_vareas3.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;pat patterns/diag_up.eps&lt;br /&gt;
File:ps_out_vareas1.png|rgbcol - cat&amp;lt;br&amp;gt;setrule 0-500:red A&amp;lt;br/&amp;gt;setrule 500-1000:green B&amp;lt;br/&amp;gt;setrule 1000-5000:blue C&lt;br /&gt;
File:ps_out_vareas2.png|island no&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlines ===&lt;br /&gt;
&lt;br /&gt;
Draw lines on the map.&amp;lt;br&amp;gt;The areas always are drawn second, after ''vareas'' and before ''vpoints''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlines (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of lines, except if ''type'' is boundary that ''vector'' is a vector of areas.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Optional commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type line|boundary : Draw boundaries of a vector of areas or lines of a vector of lines (default ''line'').&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Normal line.&lt;br /&gt;
&lt;br /&gt;
; hline : Block ''line''. Highlight line.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Works with ''hline'' to offset from the center of ''line''.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic line color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Label in legend when default values and ''setcolor'' rules.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with ''text'' as label and title the text of the ''label''. Also, the color of the normal line with column &amp;gt;= n1 and column &amp;lt; n2 (column from rgbcol), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlines: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlines0.png|''Effect of the ''hline'' block ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;hline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width 1mm&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color red&amp;lt;br&amp;gt;&amp;amp;nbsp;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vpoints ===&lt;br /&gt;
&lt;br /&gt;
Draw points on the map.&amp;lt;br&amp;gt;The points always are drawn last, after ''vareas'' and ''vlines''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vpoints (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of points, except when '''type''' is ''centroid'' or ''boundary'' that it is a vector of areas, or when '''type''' is ''line'' that it is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; type centroid|line|boundary|point : Type of draw (default ''point'').&lt;br /&gt;
&lt;br /&gt;
; symbol (epsfile) : Symbol to use (default: basic/circle).&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Type of line in the symbol.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color): Static fillcolor of the symbol.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Offset of the symbol.&lt;br /&gt;
&lt;br /&gt;
; rotate (number|column) : Angle to rotate the symbol, static ''number'' or dynamic in a ''column'' of the database.&lt;br /&gt;
&lt;br /&gt;
; size (number|column [number]) : Size of the symbol take from ''number'' or from a ''column'' of the database. In the last option, there is a optional ''number'' to define the static size of the symbol in the legend when the size of symbols are dynamic. &lt;br /&gt;
&lt;br /&gt;
; scale (dimen.1 [dimen.2]) : Rescale the size of the symbol by the ''dimen.1'' and, optionally, add a ''dimen.2''. i.e., ''resize = dimen.1 * size + dimen.2''.&lt;br /&gt;
&lt;br /&gt;
; setsize (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;size] text) : Variable size of symbols from data in ''column'' of database set in ''size''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands when type is line&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; dist (dimen) : Define the distance in paper between symbol over the line.&lt;br /&gt;
&lt;br /&gt;
; cline : Block ''line''. Type of line that connect symbols.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vpoints: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vpoints0.png|''Points with same size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size 5&lt;br /&gt;
File:ps_out_vpoints1.png|''Points with dynamic size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT 5&amp;lt;br&amp;gt;&amp;amp;nbsp;scale 0.01 2&lt;br /&gt;
File:ps_out_vpoints2.png|''Points with conditional size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 200-1000:3 &amp;lt; 1000&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 1000-2500:9 &amp;gt; 1000&lt;br /&gt;
File:ps_out_vpoints3.png|''Points on line ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;type line&amp;lt;br&amp;gt;&amp;amp;nbsp;dist 1cm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlabels ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;in progress&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlabels none|(vector) :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; font :&lt;br /&gt;
&lt;br /&gt;
; labelcol (column) :&lt;br /&gt;
&lt;br /&gt;
; decimals (number) :&lt;br /&gt;
&lt;br /&gt;
; circled yes|no :&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2 text)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlabels0.png|vpoints firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;[...]&amp;lt;br/n&amp;gt;end&amp;lt;br/&amp;gt;vlabels firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;labelcol PUMPERS&amp;lt;br/n&amp;gt;&amp;amp;nbsp;font&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;name Univers-Bold&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;size 10&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color yellow&amp;lt;br/n&amp;gt;&amp;amp;nbsp;end&amp;lt;br/n&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Legend of the maps ==&lt;br /&gt;
&lt;br /&gt;
=== rlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the raster map.&amp;lt;br&amp;gt;The units ''meters'' in the gradient legend is set with [[r.support]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; rlegend [text] : Text is the title of the legend. &lt;br /&gt;
&lt;br /&gt;
; raster (raster) : the ''raster'' map to take the data of legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commads are optionals&amp;lt;/U&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; titlefont : Block ''font'' for the legend header.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font'' for the normal text.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Width of the symbol area.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For category legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; cols (number) [(number)] : Number of columns with symbols and separation between columns (default ''1'').&lt;br /&gt;
&lt;br /&gt;
; nodata yes|no : Remove category ''no data''.&lt;br /&gt;
&lt;br /&gt;
; order (n1,n2,...) : To reorder items.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For gradient legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; height (dimen), width (dimen) : Dimension of the frame with the legend.&lt;br /&gt;
&lt;br /&gt;
; vertical yes|no : Orientation of the gradient legend (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; range (n1 n2) : Manual set of the data range for legend.&lt;br /&gt;
&lt;br /&gt;
; gradient yes|no : Forze draw gradient legend with category data.&lt;br /&gt;
&lt;br /&gt;
; tick (dimen) : Length of the ticks.&lt;br /&gt;
&lt;br /&gt;
; whiteframe (dimen) : Width of the white frame around the bar color.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;250px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_rlegend.png|rlegend Zip Codes (wake)&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster zipcodes_wake&amp;lt;br/&amp;gt;&amp;amp;nbsp;cols 2 0&amp;lt;br/&amp;gt;&amp;amp;nbsp;swidth 8mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;order 20,10,30,22,34&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend1.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;height 8cm&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend2.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;width 8cm&amp;lt;br/&amp;gt;&amp;amp;nbsp;vertical no&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the vector maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlegend [text] : Optional the title or head of the legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; title : Block ''font'' for title of legend.&lt;br /&gt;
&lt;br /&gt;
; font : Block font for normal text of legend.&lt;br /&gt;
&lt;br /&gt;
; frame : &lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]) : Distribution of the items in ''number.1'' cols. Optionaly, ''number.2'' of span between columns.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Symbol width.&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Space between lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlegend: sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_output_vlegend0.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: ps.map]]&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=File:Ps_out_vareas5.png&amp;diff=12060</id>
		<title>File:Ps out vareas5.png</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=File:Ps_out_vareas5.png&amp;diff=12060"/>
		<updated>2010-11-06T11:34:03Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: vareas with a vector of lines and mirror command&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;vareas with a vector of lines and mirror command&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12059</id>
		<title>Ps.output</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12059"/>
		<updated>2010-11-06T11:20:40Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: /* vareas */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ps.out''' try to update the standard postscript output of Grass adding new features to design borders, graticules, categorized legends, etc&lt;br /&gt;
&lt;br /&gt;
'''This is in progress and not all features are yet uploaded in ''addons''. '''&lt;br /&gt;
&lt;br /&gt;
== Command line flags ==&lt;br /&gt;
&lt;br /&gt;
'''-d ''': Draw a 1x1 cm grid on paper to help the placement of the elements of the map.&lt;br /&gt;
&lt;br /&gt;
'''-e''': Make an output file without the postscript header. Useful when is embebed into other ''ps.out'' map.&lt;br /&gt;
&lt;br /&gt;
'''-g''': Use the extended PostScript of Ghostscript (for transparent colors only)&lt;br /&gt;
&lt;br /&gt;
'''-s''': Draw the small digit in the coordinate numbers to lower instead upper possition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;100px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_grid.png|A4 paper with flag -d &lt;br /&gt;
File:ps_out_digit_upper.png|coordinate&lt;br /&gt;
File:ps_out_digit_lower.png|coordinate with flag -s&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generic Instructions ==&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== dimen ====&lt;br /&gt;
&lt;br /&gt;
Define a dimension. Accepted units are:&lt;br /&gt;
&lt;br /&gt;
*; ''unitless'' : e.g. 123. The dimension is the ''number'' by 1/72&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
*; inch : e.g. 1.2inch. &lt;br /&gt;
&lt;br /&gt;
*; milimeters : e.g. 2.3mm.&lt;br /&gt;
&lt;br /&gt;
*; centimeters : e.g. 1.4cm.&lt;br /&gt;
&lt;br /&gt;
*; percentage : e.g. 50%.&amp;lt;br&amp;gt;The position is relative to the size and position of the map in the paper being ''0%'' the left or bottom corner.&lt;br /&gt;
&lt;br /&gt;
==== color ====&lt;br /&gt;
&lt;br /&gt;
Define a color. Accepted formats are:&lt;br /&gt;
&lt;br /&gt;
*; standard GRASS name : e.g. indigo.&lt;br /&gt;
&lt;br /&gt;
*; R&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;G&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;B : e.g. 200:123:90&lt;br /&gt;
&lt;br /&gt;
*; user name : e.g. red5.&amp;lt;br&amp;gt;Defined in ''palette'' block&lt;br /&gt;
&lt;br /&gt;
All formats can add '$(0-1)' to define the opacity of the color (alpha channel); e.g., indigo$.75 or 200:120:120$.2&lt;br /&gt;
&lt;br /&gt;
==== number ====&lt;br /&gt;
&lt;br /&gt;
==== text ====&lt;br /&gt;
&lt;br /&gt;
=== Blocks of instructions ===&lt;br /&gt;
&lt;br /&gt;
A ''block'' begin with the keywords and finish with keyword ''end''&lt;br /&gt;
&lt;br /&gt;
==== font ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a font.&lt;br /&gt;
&lt;br /&gt;
; name (text) : Name of font.&lt;br /&gt;
&lt;br /&gt;
; size (dimen) : Size of font.&lt;br /&gt;
&lt;br /&gt;
; extend (dimen): Expand the width of font.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of font.&lt;br /&gt;
&lt;br /&gt;
; outline yes|no : Outline of the font.&lt;br /&gt;
&lt;br /&gt;
==== line ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a line.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of line.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of line.&lt;br /&gt;
&lt;br /&gt;
; style solid|dashed|dotted|dashdotted|(n1n2...) : Style of line.&lt;br /&gt;
&lt;br /&gt;
; cap butt|round|extended_butt : Cap&lt;br /&gt;
&lt;br /&gt;
; extended (type step height width) : Extended style of line.&lt;br /&gt;
&lt;br /&gt;
==== fill ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a fill area.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Fill color.&lt;br /&gt;
&lt;br /&gt;
; pat (file) : Fill pattern.&lt;br /&gt;
&lt;br /&gt;
; lwidth (dimen) : Line width of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; scale (number) : Scale of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; limit (dimen) : Limit the fill to the border with a width of ''dimen''.&lt;br /&gt;
&lt;br /&gt;
==== frame ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a frame.&lt;br /&gt;
&lt;br /&gt;
; where (dimen.1 dimen.2) : Position of frame.&lt;br /&gt;
&lt;br /&gt;
; offset (number.1 number.2) : Fine x and y adjust of the position of frame.&lt;br /&gt;
&lt;br /&gt;
; ref right|left|center upper|lower|center : Position is relative to the ''ref''.&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border line&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of the border line.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the frame.&lt;br /&gt;
&lt;br /&gt;
; rotate (dimen) : &amp;lt;u&amp;gt;todo&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== legend ====&lt;br /&gt;
&lt;br /&gt;
; lpos (number): Position in legend&amp;lt;br&amp;gt;Codes: -1, no show in legend; 0 automatic position; &amp;gt; 0 horizontal position.&lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]): Organize legend in ''number.1'' cols with a optional span of ''number.2''&lt;br /&gt;
&lt;br /&gt;
; interline (dimen): Set partial legend interline&lt;br /&gt;
&lt;br /&gt;
== Map paper ==&lt;br /&gt;
&lt;br /&gt;
=== paper ===&lt;br /&gt;
&lt;br /&gt;
Size of paper. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; paper [A0-6|B0-6|Legal|Ledger|Tabloid|Executive|Folio] : Type of paper (default A4).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; color (color) : Paper color.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Custom size of paper.&lt;br /&gt;
&lt;br /&gt;
; left (dimen), right (dimen), top (dimen), bottom (dimen) : Custom margins (default 0.5&amp;quot; left and right, and 1&amp;quot; top and bottom).&lt;br /&gt;
&lt;br /&gt;
; landscape yes|no : Paper orientation (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''. Set the default font of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''. Free draw as watermarks, before any feature of the map is drawn (see ''draw'').&lt;br /&gt;
&lt;br /&gt;
=== scale ===&lt;br /&gt;
&lt;br /&gt;
Scale of the map.&lt;br /&gt;
&lt;br /&gt;
Simple line command to define the scale of the map. The default is adjust map to the paper dimensions. If the remaining dimensions of the paper not permit the scale, ''ps.out'' adjust the scale to a new value that it fit in the paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scale 1&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;(number) : Scale of map.&amp;lt;br&amp;gt;For example, ''scale 1:500000'' to rescale maparea dimensions.&lt;br /&gt;
&lt;br /&gt;
=== maparea ===&lt;br /&gt;
Define specific dimensions of the map (default defined by command ''scale'')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; maparea : Define characteristics of the map area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border map.&amp;lt;br&amp;gt;Usefull with ''in'' and ''out'' formats of the ''grid'' and ''geogrid'', ignored in ''iho'' and ''can'' formats.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Border color-&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the map area.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Dimensions of the map.&lt;br /&gt;
&lt;br /&gt;
; top (dimen), bottom (dimen) : Position of the top-left corner of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''.&amp;lt;br&amp;gt;Draw onto the map but before the grid lines, vpoints and vlabels are drawn; i.e. this map elements are drawn over the draw elements.&lt;br /&gt;
&lt;br /&gt;
=== palette ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;testing&amp;lt;/U&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; palette&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; wheel (number text) :&lt;br /&gt;
&lt;br /&gt;
; monochrome (color number text) :&lt;br /&gt;
&lt;br /&gt;
; complementary (color number text) :&lt;br /&gt;
&lt;br /&gt;
; analogous (color number text) :&lt;br /&gt;
&lt;br /&gt;
; gradient (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; diverging (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
== Common elements ==&lt;br /&gt;
&lt;br /&gt;
=== grid and geogrid ===&lt;br /&gt;
&lt;br /&gt;
Draw a border around the map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; grid|geogrid :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; format in|out|+out|can|iho : Type of border (see examples).&lt;br /&gt;
&lt;br /&gt;
; major (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; minor (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; subminor (number) : ''number'' of subdivisons of the minor divisions.&lt;br /&gt;
&lt;br /&gt;
; trim (number) : Cut trailing zeros.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Color of the border.&lt;br /&gt;
&lt;br /&gt;
; cross (number) : Replace lines by cross&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_iho.png|format iho&lt;br /&gt;
File:ps_out_can.png|format can&lt;br /&gt;
File:ps_out_in.png |format in&lt;br /&gt;
File:ps_out_out.png|format +out&lt;br /&gt;
File:ps_out_out1.png|typical map border&lt;br /&gt;
File:ps_out_out2.png|typical map border with ''subminor 5'' and ''fcolor blue''&lt;br /&gt;
File:ps_out_out3.png|''cross 500'', ''fcolor indigo'', ''color 200:200:200'' in '''maparea'''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== scalebar ===&lt;br /&gt;
&lt;br /&gt;
Set a scalebar on the map.&amp;lt;br&amp;gt;Maximun 5 scalebars in each map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scalebar I|s|S|f|F : Define the type of scalebar (I: inner, s/S: simple, f/F: fill).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; length (number) : Length of the scale.&lt;br /&gt;
&lt;br /&gt;
; units meters|m|kilometers|km|feet|ft|miles|mil|nautical_miles|nm ([text]) : Unit of the length and ''text' to label the units.&lt;br /&gt;
&lt;br /&gt;
; major (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; minor (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor.&lt;br /&gt;
&lt;br /&gt;
; height (dimen) : Height of the bar or ticks.&lt;br /&gt;
&lt;br /&gt;
; zero yes|no : Set position relative to zero value of the scalebar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Scalerbar styles&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;50px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_scalebar_s.png|scalebar s&lt;br /&gt;
File:ps_out_scalebar_S.png|scalebar S&lt;br /&gt;
File:ps_out_scalebar_I.png|scalebar I (uppercase i)&lt;br /&gt;
File:ps_out_scalebar_f.png|scalebar f&lt;br /&gt;
File:ps_out_scalebar_F.png|scalebar F&lt;br /&gt;
File:ps_out_scalebar_3.png|Multiple scalebars zero centered with ''zero yes''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== note ===&lt;br /&gt;
Write special text or free text on any place of the paper with frame (also ''draw'' permit write free-text in paper). &lt;br /&gt;
&lt;br /&gt;
Maximun 20 notes by map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; note &amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;file|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;maplimits|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;dimen|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;scale (text)|(text) : Type of note and text to show.&amp;lt;br&amp;gt;When free text, use '|' to break lines and '.' as first character to center line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; text (text) : Another roption to enter the same as inline note text;&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of note.&lt;br /&gt;
&lt;br /&gt;
; angle (number) : ''number'' of degrees to rotate (do not work fine).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Note keywords and free text&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_note_ml.png  |note :maplimits&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_dimen.png|note :dimen&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scale.png|note :scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_free.png|note free text|in multiple lines&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_freec.png|note .free text|.in multiple [...]&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scaler.png|note :scale scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br&amp;gt;&amp;amp;nbsp;angle 90&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== draw ===&lt;br /&gt;
&lt;br /&gt;
Simple script language to draw predefined postscript code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; draw [none|paper|maparea|free] :  &lt;br /&gt;
''paper'': before any map feature is drawn (equivalent to place inside ''paper'' block); &amp;lt;br&amp;gt;&lt;br /&gt;
''maparea'' before the last elements of the map (equivalent to place inside ''mapare'' block) ; &amp;lt;br&amp;gt;&lt;br /&gt;
''none'': draw over all elements of the map but only in the map area; and &amp;lt;br&amp;gt;&lt;br /&gt;
''free'': after all map features are drawn in any place of the paper; and ''none''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; --- : &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_north1.png   |&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;north 700000 4700000&amp;lt;/source&amp;gt;&lt;br /&gt;
File:ps_out_north2.png   |north 5cm 16.5cm -&lt;br /&gt;
File:ps_out_maplimits.png|maplimits&lt;br /&gt;
File:ps_out_compass.png  |compass 700000 4700000 10000 10.2345&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Raster maps ==&lt;br /&gt;
&lt;br /&gt;
=== raster ===&lt;br /&gt;
&lt;br /&gt;
Draw one or two raster maps on the maparea. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; raster (raster|raster.1 raster.2|raster.R raster.G raster.B|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;group) : The ''raster'' value is the raster mapname, two raster maps ''raster.1'' or color and ''raster.2'' or shade to draw as relief map, three maps ''raster.R'', ''raster.G'' and ''raster.B'' to draw as RGB, or a groupname (leader by ':') with tree RGB maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; grey yes|no : Store and draw the rasters in grey scale (small size of file).&amp;lt;br&amp;gt;The conversion follows the NTSC video standard.&lt;br /&gt;
&lt;br /&gt;
; maskcell (raster.1 [raster.2]) : Set the ''raster.1'' map to use as mask (independent of the mask set in GRASS with [[r.mask]]) and, optionally, the ''raster.2'' map uses as background.&amp;lt;br&amp;gt;The background ''raster.2'' is painted in grey scale (NTSC) and tinted with ''maskcolor''.&lt;br /&gt;
&lt;br /&gt;
; maskcolor (color|none) : Set the ''color'' of the mask area.&amp;lt;br&amp;gt;If a raster map as background is set then it's drawn with a scale white-maskcolor.&lt;br /&gt;
&lt;br /&gt;
; outline : Block ''line''. Outline of categories.&lt;br /&gt;
&lt;br /&gt;
; setcolor null|default|(number) (color) : Replace the color of the cat ''number'' area with a new color.&amp;lt;br&amp;gt;Multiple ''setcolor'' are possibles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_raster1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_outline.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;outline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width .2mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;end&amp;lt;br/&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_setcolor.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor white&amp;lt;br&amp;gt;&amp;amp;nbsp;setcolor 37 magenta&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_grey.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;grey yes&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Vector maps ==&lt;br /&gt;
&lt;br /&gt;
All vector map accept optionally the following commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; layer (number) : Layer number used with cats/where option.&lt;br /&gt;
&lt;br /&gt;
; cats (n1,n2,...) : List of ''cat''s to show.&lt;br /&gt;
&lt;br /&gt;
; where (text) : Argument of the SQL where clausule to filter the areas to show.&lt;br /&gt;
&lt;br /&gt;
; masked yes|no : Masked or not by raster mask (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; label (text) : For description or title in ''vlegend''.&lt;br /&gt;
&lt;br /&gt;
; legend [(number)]: Position in legend (-1, no legend) or enter in a block ''legend''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vareas ===&lt;br /&gt;
&lt;br /&gt;
Draw areas on the map.&amp;lt;br&amp;gt;&lt;br /&gt;
The areas always are drawn first, on the bottom of other type of maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vareas (vector) : ''vector'' is a vector of areas, except when ''lwidth'' is different to zero that ''vector'' is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type area|line : Default ''area''.&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Style of the boundary.&lt;br /&gt;
&lt;br /&gt;
; fill : Block ''fill''. Style of the area.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic fill color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Text label when default conditions.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color][|dimen] text) : Make a item of a sublegend with label the ''text'' and title the text of the ''label''.&amp;lt;br&amp;gt;The fillcolor of the areas is set to ''color'' and the line width is set to ''dimen'' when ''column.2'' &amp;gt;= n1 and ''column.2'' &amp;lt; n2  (''column.2'' from ''rgbcol'').&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; island yes|no : Draw island as normal areas (fill as normal area then hide it).&lt;br /&gt;
&lt;br /&gt;
; mirror (dimen [number]) : The line is drawn as an area with a copy of the line placed with polar coordinates: ''dimen' and ''angle''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vareas: sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vareas0.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;color indigo&lt;br /&gt;
File:ps_out_vareas4.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;color indigo&amp;lt;br&amp;gt;&amp;amp;nbsp;limit 3mm&lt;br /&gt;
-|-&lt;br /&gt;
File:ps_out_vareas3.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;pat patterns/diag_up.eps&lt;br /&gt;
File:ps_out_vareas1.png|rgbcol - cat&amp;lt;br&amp;gt;setrule 0-500:red A&amp;lt;br/&amp;gt;setrule 500-1000:green B&amp;lt;br/&amp;gt;setrule 1000-5000:blue C&lt;br /&gt;
File:ps_out_vareas2.png|island no&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlines ===&lt;br /&gt;
&lt;br /&gt;
Draw lines on the map.&amp;lt;br&amp;gt;The areas always are drawn second, after ''vareas'' and before ''vpoints''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlines (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of lines, except if ''type'' is boundary that ''vector'' is a vector of areas.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Optional commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type line|boundary : Draw boundaries of a vector of areas or lines of a vector of lines (default ''line'').&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Normal line.&lt;br /&gt;
&lt;br /&gt;
; hline : Block ''line''. Highlight line.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Works with ''hline'' to offset from the center of ''line''.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic line color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Label in legend when default values and ''setcolor'' rules.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with ''text'' as label and title the text of the ''label''. Also, the color of the normal line with column &amp;gt;= n1 and column &amp;lt; n2 (column from rgbcol), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlines: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlines0.png|''Effect of the ''hline'' block ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;hline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width 1mm&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color red&amp;lt;br&amp;gt;&amp;amp;nbsp;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vpoints ===&lt;br /&gt;
&lt;br /&gt;
Draw points on the map.&amp;lt;br&amp;gt;The points always are drawn last, after ''vareas'' and ''vlines''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vpoints (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of points, except when '''type''' is ''centroid'' or ''boundary'' that it is a vector of areas, or when '''type''' is ''line'' that it is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; type centroid|line|boundary|point : Type of draw (default ''point'').&lt;br /&gt;
&lt;br /&gt;
; symbol (epsfile) : Symbol to use (default: basic/circle).&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Type of line in the symbol.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color): Static fillcolor of the symbol.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Offset of the symbol.&lt;br /&gt;
&lt;br /&gt;
; rotate (number|column) : Angle to rotate the symbol, static ''number'' or dynamic in a ''column'' of the database.&lt;br /&gt;
&lt;br /&gt;
; size (number|column [number]) : Size of the symbol take from ''number'' or from a ''column'' of the database. In the last option, there is a optional ''number'' to define the static size of the symbol in the legend when the size of symbols are dynamic. &lt;br /&gt;
&lt;br /&gt;
; scale (dimen.1 [dimen.2]) : Rescale the size of the symbol by the ''dimen.1'' and, optionally, add a ''dimen.2''. i.e., ''resize = dimen.1 * size + dimen.2''.&lt;br /&gt;
&lt;br /&gt;
; setsize (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;size] text) : Variable size of symbols from data in ''column'' of database set in ''size''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands when type is line&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; dist (dimen) : Define the distance in paper between symbol over the line.&lt;br /&gt;
&lt;br /&gt;
; cline : Block ''line''. Type of line that connect symbols.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vpoints: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vpoints0.png|''Points with same size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size 5&lt;br /&gt;
File:ps_out_vpoints1.png|''Points with dynamic size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT 5&amp;lt;br&amp;gt;&amp;amp;nbsp;scale 0.01 2&lt;br /&gt;
File:ps_out_vpoints2.png|''Points with conditional size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 200-1000:3 &amp;lt; 1000&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 1000-2500:9 &amp;gt; 1000&lt;br /&gt;
File:ps_out_vpoints3.png|''Points on line ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;type line&amp;lt;br&amp;gt;&amp;amp;nbsp;dist 1cm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlabels ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;in progress&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlabels none|(vector) :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; font :&lt;br /&gt;
&lt;br /&gt;
; labelcol (column) :&lt;br /&gt;
&lt;br /&gt;
; decimals (number) :&lt;br /&gt;
&lt;br /&gt;
; circled yes|no :&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2 text)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlabels0.png|vpoints firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;[...]&amp;lt;br/n&amp;gt;end&amp;lt;br/&amp;gt;vlabels firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;labelcol PUMPERS&amp;lt;br/n&amp;gt;&amp;amp;nbsp;font&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;name Univers-Bold&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;size 10&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color yellow&amp;lt;br/n&amp;gt;&amp;amp;nbsp;end&amp;lt;br/n&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Legend of the maps ==&lt;br /&gt;
&lt;br /&gt;
=== rlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the raster map.&amp;lt;br&amp;gt;The units ''meters'' in the gradient legend is set with [[r.support]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; rlegend [text] : Text is the title of the legend. &lt;br /&gt;
&lt;br /&gt;
; raster (raster) : the ''raster'' map to take the data of legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commads are optionals&amp;lt;/U&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; titlefont : Block ''font'' for the legend header.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font'' for the normal text.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Width of the symbol area.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For category legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; cols (number) [(number)] : Number of columns with symbols and separation between columns (default ''1'').&lt;br /&gt;
&lt;br /&gt;
; nodata yes|no : Remove category ''no data''.&lt;br /&gt;
&lt;br /&gt;
; order (n1,n2,...) : To reorder items.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For gradient legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; height (dimen), width (dimen) : Dimension of the frame with the legend.&lt;br /&gt;
&lt;br /&gt;
; vertical yes|no : Orientation of the gradient legend (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; range (n1 n2) : Manual set of the data range for legend.&lt;br /&gt;
&lt;br /&gt;
; gradient yes|no : Forze draw gradient legend with category data.&lt;br /&gt;
&lt;br /&gt;
; tick (dimen) : Length of the ticks.&lt;br /&gt;
&lt;br /&gt;
; whiteframe (dimen) : Width of the white frame around the bar color.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;250px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_rlegend.png|rlegend Zip Codes (wake)&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster zipcodes_wake&amp;lt;br/&amp;gt;&amp;amp;nbsp;cols 2 0&amp;lt;br/&amp;gt;&amp;amp;nbsp;swidth 8mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;order 20,10,30,22,34&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend1.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;height 8cm&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend2.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;width 8cm&amp;lt;br/&amp;gt;&amp;amp;nbsp;vertical no&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the vector maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlegend [text] : Optional the title or head of the legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; title : Block ''font'' for title of legend.&lt;br /&gt;
&lt;br /&gt;
; font : Block font for normal text of legend.&lt;br /&gt;
&lt;br /&gt;
; frame : &lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]) : Distribution of the items in ''number.1'' cols. Optionaly, ''number.2'' of span between columns.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Symbol width.&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Space between lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlegend: sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_output_vlegend0.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: ps.map]]&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=File:Ps_out_vareas4.png&amp;diff=12058</id>
		<title>File:Ps out vareas4.png</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=File:Ps_out_vareas4.png&amp;diff=12058"/>
		<updated>2010-11-06T11:20:06Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: vareas with fill limit&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;vareas with fill limit&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12057</id>
		<title>Ps.output</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12057"/>
		<updated>2010-11-06T11:01:52Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: /* vareas */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ps.out''' try to update the standard postscript output of Grass adding new features to design borders, graticules, categorized legends, etc&lt;br /&gt;
&lt;br /&gt;
'''This is in progress and not all features are yet uploaded in ''addons''. '''&lt;br /&gt;
&lt;br /&gt;
== Command line flags ==&lt;br /&gt;
&lt;br /&gt;
'''-d ''': Draw a 1x1 cm grid on paper to help the placement of the elements of the map.&lt;br /&gt;
&lt;br /&gt;
'''-e''': Make an output file without the postscript header. Useful when is embebed into other ''ps.out'' map.&lt;br /&gt;
&lt;br /&gt;
'''-g''': Use the extended PostScript of Ghostscript (for transparent colors only)&lt;br /&gt;
&lt;br /&gt;
'''-s''': Draw the small digit in the coordinate numbers to lower instead upper possition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;100px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_grid.png|A4 paper with flag -d &lt;br /&gt;
File:ps_out_digit_upper.png|coordinate&lt;br /&gt;
File:ps_out_digit_lower.png|coordinate with flag -s&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generic Instructions ==&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== dimen ====&lt;br /&gt;
&lt;br /&gt;
Define a dimension. Accepted units are:&lt;br /&gt;
&lt;br /&gt;
*; ''unitless'' : e.g. 123. The dimension is the ''number'' by 1/72&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
*; inch : e.g. 1.2inch. &lt;br /&gt;
&lt;br /&gt;
*; milimeters : e.g. 2.3mm.&lt;br /&gt;
&lt;br /&gt;
*; centimeters : e.g. 1.4cm.&lt;br /&gt;
&lt;br /&gt;
*; percentage : e.g. 50%.&amp;lt;br&amp;gt;The position is relative to the size and position of the map in the paper being ''0%'' the left or bottom corner.&lt;br /&gt;
&lt;br /&gt;
==== color ====&lt;br /&gt;
&lt;br /&gt;
Define a color. Accepted formats are:&lt;br /&gt;
&lt;br /&gt;
*; standard GRASS name : e.g. indigo.&lt;br /&gt;
&lt;br /&gt;
*; R&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;G&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;B : e.g. 200:123:90&lt;br /&gt;
&lt;br /&gt;
*; user name : e.g. red5.&amp;lt;br&amp;gt;Defined in ''palette'' block&lt;br /&gt;
&lt;br /&gt;
All formats can add '$(0-1)' to define the opacity of the color (alpha channel); e.g., indigo$.75 or 200:120:120$.2&lt;br /&gt;
&lt;br /&gt;
==== number ====&lt;br /&gt;
&lt;br /&gt;
==== text ====&lt;br /&gt;
&lt;br /&gt;
=== Blocks of instructions ===&lt;br /&gt;
&lt;br /&gt;
A ''block'' begin with the keywords and finish with keyword ''end''&lt;br /&gt;
&lt;br /&gt;
==== font ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a font.&lt;br /&gt;
&lt;br /&gt;
; name (text) : Name of font.&lt;br /&gt;
&lt;br /&gt;
; size (dimen) : Size of font.&lt;br /&gt;
&lt;br /&gt;
; extend (dimen): Expand the width of font.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of font.&lt;br /&gt;
&lt;br /&gt;
; outline yes|no : Outline of the font.&lt;br /&gt;
&lt;br /&gt;
==== line ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a line.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of line.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of line.&lt;br /&gt;
&lt;br /&gt;
; style solid|dashed|dotted|dashdotted|(n1n2...) : Style of line.&lt;br /&gt;
&lt;br /&gt;
; cap butt|round|extended_butt : Cap&lt;br /&gt;
&lt;br /&gt;
; extended (type step height width) : Extended style of line.&lt;br /&gt;
&lt;br /&gt;
==== fill ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a fill area.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Fill color.&lt;br /&gt;
&lt;br /&gt;
; pat (file) : Fill pattern.&lt;br /&gt;
&lt;br /&gt;
; lwidth (dimen) : Line width of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; scale (number) : Scale of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; limit (dimen) : Limit the fill to the border with a width of ''dimen''.&lt;br /&gt;
&lt;br /&gt;
==== frame ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a frame.&lt;br /&gt;
&lt;br /&gt;
; where (dimen.1 dimen.2) : Position of frame.&lt;br /&gt;
&lt;br /&gt;
; offset (number.1 number.2) : Fine x and y adjust of the position of frame.&lt;br /&gt;
&lt;br /&gt;
; ref right|left|center upper|lower|center : Position is relative to the ''ref''.&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border line&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of the border line.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the frame.&lt;br /&gt;
&lt;br /&gt;
; rotate (dimen) : &amp;lt;u&amp;gt;todo&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== legend ====&lt;br /&gt;
&lt;br /&gt;
; lpos (number): Position in legend&amp;lt;br&amp;gt;Codes: -1, no show in legend; 0 automatic position; &amp;gt; 0 horizontal position.&lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]): Organize legend in ''number.1'' cols with a optional span of ''number.2''&lt;br /&gt;
&lt;br /&gt;
; interline (dimen): Set partial legend interline&lt;br /&gt;
&lt;br /&gt;
== Map paper ==&lt;br /&gt;
&lt;br /&gt;
=== paper ===&lt;br /&gt;
&lt;br /&gt;
Size of paper. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; paper [A0-6|B0-6|Legal|Ledger|Tabloid|Executive|Folio] : Type of paper (default A4).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; color (color) : Paper color.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Custom size of paper.&lt;br /&gt;
&lt;br /&gt;
; left (dimen), right (dimen), top (dimen), bottom (dimen) : Custom margins (default 0.5&amp;quot; left and right, and 1&amp;quot; top and bottom).&lt;br /&gt;
&lt;br /&gt;
; landscape yes|no : Paper orientation (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''. Set the default font of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''. Free draw as watermarks, before any feature of the map is drawn (see ''draw'').&lt;br /&gt;
&lt;br /&gt;
=== scale ===&lt;br /&gt;
&lt;br /&gt;
Scale of the map.&lt;br /&gt;
&lt;br /&gt;
Simple line command to define the scale of the map. The default is adjust map to the paper dimensions. If the remaining dimensions of the paper not permit the scale, ''ps.out'' adjust the scale to a new value that it fit in the paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scale 1&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;(number) : Scale of map.&amp;lt;br&amp;gt;For example, ''scale 1:500000'' to rescale maparea dimensions.&lt;br /&gt;
&lt;br /&gt;
=== maparea ===&lt;br /&gt;
Define specific dimensions of the map (default defined by command ''scale'')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; maparea : Define characteristics of the map area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border map.&amp;lt;br&amp;gt;Usefull with ''in'' and ''out'' formats of the ''grid'' and ''geogrid'', ignored in ''iho'' and ''can'' formats.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Border color-&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the map area.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Dimensions of the map.&lt;br /&gt;
&lt;br /&gt;
; top (dimen), bottom (dimen) : Position of the top-left corner of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''.&amp;lt;br&amp;gt;Draw onto the map but before the grid lines, vpoints and vlabels are drawn; i.e. this map elements are drawn over the draw elements.&lt;br /&gt;
&lt;br /&gt;
=== palette ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;testing&amp;lt;/U&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; palette&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; wheel (number text) :&lt;br /&gt;
&lt;br /&gt;
; monochrome (color number text) :&lt;br /&gt;
&lt;br /&gt;
; complementary (color number text) :&lt;br /&gt;
&lt;br /&gt;
; analogous (color number text) :&lt;br /&gt;
&lt;br /&gt;
; gradient (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; diverging (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
== Common elements ==&lt;br /&gt;
&lt;br /&gt;
=== grid and geogrid ===&lt;br /&gt;
&lt;br /&gt;
Draw a border around the map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; grid|geogrid :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; format in|out|+out|can|iho : Type of border (see examples).&lt;br /&gt;
&lt;br /&gt;
; major (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; minor (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; subminor (number) : ''number'' of subdivisons of the minor divisions.&lt;br /&gt;
&lt;br /&gt;
; trim (number) : Cut trailing zeros.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Color of the border.&lt;br /&gt;
&lt;br /&gt;
; cross (number) : Replace lines by cross&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_iho.png|format iho&lt;br /&gt;
File:ps_out_can.png|format can&lt;br /&gt;
File:ps_out_in.png |format in&lt;br /&gt;
File:ps_out_out.png|format +out&lt;br /&gt;
File:ps_out_out1.png|typical map border&lt;br /&gt;
File:ps_out_out2.png|typical map border with ''subminor 5'' and ''fcolor blue''&lt;br /&gt;
File:ps_out_out3.png|''cross 500'', ''fcolor indigo'', ''color 200:200:200'' in '''maparea'''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== scalebar ===&lt;br /&gt;
&lt;br /&gt;
Set a scalebar on the map.&amp;lt;br&amp;gt;Maximun 5 scalebars in each map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scalebar I|s|S|f|F : Define the type of scalebar (I: inner, s/S: simple, f/F: fill).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; length (number) : Length of the scale.&lt;br /&gt;
&lt;br /&gt;
; units meters|m|kilometers|km|feet|ft|miles|mil|nautical_miles|nm ([text]) : Unit of the length and ''text' to label the units.&lt;br /&gt;
&lt;br /&gt;
; major (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; minor (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor.&lt;br /&gt;
&lt;br /&gt;
; height (dimen) : Height of the bar or ticks.&lt;br /&gt;
&lt;br /&gt;
; zero yes|no : Set position relative to zero value of the scalebar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Scalerbar styles&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;50px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_scalebar_s.png|scalebar s&lt;br /&gt;
File:ps_out_scalebar_S.png|scalebar S&lt;br /&gt;
File:ps_out_scalebar_I.png|scalebar I (uppercase i)&lt;br /&gt;
File:ps_out_scalebar_f.png|scalebar f&lt;br /&gt;
File:ps_out_scalebar_F.png|scalebar F&lt;br /&gt;
File:ps_out_scalebar_3.png|Multiple scalebars zero centered with ''zero yes''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== note ===&lt;br /&gt;
Write special text or free text on any place of the paper with frame (also ''draw'' permit write free-text in paper). &lt;br /&gt;
&lt;br /&gt;
Maximun 20 notes by map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; note &amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;file|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;maplimits|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;dimen|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;scale (text)|(text) : Type of note and text to show.&amp;lt;br&amp;gt;When free text, use '|' to break lines and '.' as first character to center line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; text (text) : Another roption to enter the same as inline note text;&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of note.&lt;br /&gt;
&lt;br /&gt;
; angle (number) : ''number'' of degrees to rotate (do not work fine).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Note keywords and free text&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_note_ml.png  |note :maplimits&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_dimen.png|note :dimen&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scale.png|note :scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_free.png|note free text|in multiple lines&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_freec.png|note .free text|.in multiple [...]&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scaler.png|note :scale scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br&amp;gt;&amp;amp;nbsp;angle 90&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== draw ===&lt;br /&gt;
&lt;br /&gt;
Simple script language to draw predefined postscript code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; draw [none|paper|maparea|free] :  &lt;br /&gt;
''paper'': before any map feature is drawn (equivalent to place inside ''paper'' block); &amp;lt;br&amp;gt;&lt;br /&gt;
''maparea'' before the last elements of the map (equivalent to place inside ''mapare'' block) ; &amp;lt;br&amp;gt;&lt;br /&gt;
''none'': draw over all elements of the map but only in the map area; and &amp;lt;br&amp;gt;&lt;br /&gt;
''free'': after all map features are drawn in any place of the paper; and ''none''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; --- : &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_north1.png   |&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;north 700000 4700000&amp;lt;/source&amp;gt;&lt;br /&gt;
File:ps_out_north2.png   |north 5cm 16.5cm -&lt;br /&gt;
File:ps_out_maplimits.png|maplimits&lt;br /&gt;
File:ps_out_compass.png  |compass 700000 4700000 10000 10.2345&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Raster maps ==&lt;br /&gt;
&lt;br /&gt;
=== raster ===&lt;br /&gt;
&lt;br /&gt;
Draw one or two raster maps on the maparea. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; raster (raster|raster.1 raster.2|raster.R raster.G raster.B|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;group) : The ''raster'' value is the raster mapname, two raster maps ''raster.1'' or color and ''raster.2'' or shade to draw as relief map, three maps ''raster.R'', ''raster.G'' and ''raster.B'' to draw as RGB, or a groupname (leader by ':') with tree RGB maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; grey yes|no : Store and draw the rasters in grey scale (small size of file).&amp;lt;br&amp;gt;The conversion follows the NTSC video standard.&lt;br /&gt;
&lt;br /&gt;
; maskcell (raster.1 [raster.2]) : Set the ''raster.1'' map to use as mask (independent of the mask set in GRASS with [[r.mask]]) and, optionally, the ''raster.2'' map uses as background.&amp;lt;br&amp;gt;The background ''raster.2'' is painted in grey scale (NTSC) and tinted with ''maskcolor''.&lt;br /&gt;
&lt;br /&gt;
; maskcolor (color|none) : Set the ''color'' of the mask area.&amp;lt;br&amp;gt;If a raster map as background is set then it's drawn with a scale white-maskcolor.&lt;br /&gt;
&lt;br /&gt;
; outline : Block ''line''. Outline of categories.&lt;br /&gt;
&lt;br /&gt;
; setcolor null|default|(number) (color) : Replace the color of the cat ''number'' area with a new color.&amp;lt;br&amp;gt;Multiple ''setcolor'' are possibles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_raster1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_outline.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;outline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width .2mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;end&amp;lt;br/&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_setcolor.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor white&amp;lt;br&amp;gt;&amp;amp;nbsp;setcolor 37 magenta&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_grey.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;grey yes&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Vector maps ==&lt;br /&gt;
&lt;br /&gt;
All vector map accept optionally the following commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; layer (number) : Layer number used with cats/where option.&lt;br /&gt;
&lt;br /&gt;
; cats (n1,n2,...) : List of ''cat''s to show.&lt;br /&gt;
&lt;br /&gt;
; where (text) : Argument of the SQL where clausule to filter the areas to show.&lt;br /&gt;
&lt;br /&gt;
; masked yes|no : Masked or not by raster mask (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; label (text) : For description or title in ''vlegend''.&lt;br /&gt;
&lt;br /&gt;
; legend [(number)]: Position in legend (-1, no legend) or enter in a block ''legend''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vareas ===&lt;br /&gt;
&lt;br /&gt;
Draw areas on the map.&amp;lt;br&amp;gt;&lt;br /&gt;
The areas always are drawn first, on the bottom of other type of maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vareas (vector) : ''vector'' is a vector of areas, except when ''lwidth'' is different to zero that ''vector'' is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type area|line : Default ''area''.&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Style of the boundary.&lt;br /&gt;
&lt;br /&gt;
; fill : Block ''fill''. Style of the area.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic fill color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Text label when default conditions.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color][|dimen] text) : Make a item of a sublegend with label the ''text'' and title the text of the ''label''.&amp;lt;br&amp;gt;The fillcolor of the areas is set to ''color'' and the line width is set to ''dimen'' when ''column.2'' &amp;gt;= n1 and ''column.2'' &amp;lt; n2  (''column.2'' from ''rgbcol'').&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; island yes|no : Draw island as normal areas (fill as normal area then hide it).&lt;br /&gt;
&lt;br /&gt;
; mirror (dimen [number]) : The line is drawn as an area with a copy of the line placed with polar coordinates: ''dimen' and ''angle''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vareas: sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vareas0.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;color indigo&lt;br /&gt;
-|-&lt;br /&gt;
-|-&lt;br /&gt;
File:ps_out_vareas3.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;pat patterns/diag_up.eps&lt;br /&gt;
File:ps_out_vareas1.png|rgbcol - cat&amp;lt;br&amp;gt;setrule 0-500:red A&amp;lt;br/&amp;gt;setrule 500-1000:green B&amp;lt;br/&amp;gt;setrule 1000-5000:blue C&lt;br /&gt;
File:ps_out_vareas2.png|island no&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlines ===&lt;br /&gt;
&lt;br /&gt;
Draw lines on the map.&amp;lt;br&amp;gt;The areas always are drawn second, after ''vareas'' and before ''vpoints''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlines (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of lines, except if ''type'' is boundary that ''vector'' is a vector of areas.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Optional commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type line|boundary : Draw boundaries of a vector of areas or lines of a vector of lines (default ''line'').&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Normal line.&lt;br /&gt;
&lt;br /&gt;
; hline : Block ''line''. Highlight line.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Works with ''hline'' to offset from the center of ''line''.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic line color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Label in legend when default values and ''setcolor'' rules.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with ''text'' as label and title the text of the ''label''. Also, the color of the normal line with column &amp;gt;= n1 and column &amp;lt; n2 (column from rgbcol), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlines: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlines0.png|''Effect of the ''hline'' block ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;hline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width 1mm&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color red&amp;lt;br&amp;gt;&amp;amp;nbsp;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vpoints ===&lt;br /&gt;
&lt;br /&gt;
Draw points on the map.&amp;lt;br&amp;gt;The points always are drawn last, after ''vareas'' and ''vlines''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vpoints (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of points, except when '''type''' is ''centroid'' or ''boundary'' that it is a vector of areas, or when '''type''' is ''line'' that it is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; type centroid|line|boundary|point : Type of draw (default ''point'').&lt;br /&gt;
&lt;br /&gt;
; symbol (epsfile) : Symbol to use (default: basic/circle).&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Type of line in the symbol.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color): Static fillcolor of the symbol.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Offset of the symbol.&lt;br /&gt;
&lt;br /&gt;
; rotate (number|column) : Angle to rotate the symbol, static ''number'' or dynamic in a ''column'' of the database.&lt;br /&gt;
&lt;br /&gt;
; size (number|column [number]) : Size of the symbol take from ''number'' or from a ''column'' of the database. In the last option, there is a optional ''number'' to define the static size of the symbol in the legend when the size of symbols are dynamic. &lt;br /&gt;
&lt;br /&gt;
; scale (dimen.1 [dimen.2]) : Rescale the size of the symbol by the ''dimen.1'' and, optionally, add a ''dimen.2''. i.e., ''resize = dimen.1 * size + dimen.2''.&lt;br /&gt;
&lt;br /&gt;
; setsize (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;size] text) : Variable size of symbols from data in ''column'' of database set in ''size''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands when type is line&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; dist (dimen) : Define the distance in paper between symbol over the line.&lt;br /&gt;
&lt;br /&gt;
; cline : Block ''line''. Type of line that connect symbols.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vpoints: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vpoints0.png|''Points with same size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size 5&lt;br /&gt;
File:ps_out_vpoints1.png|''Points with dynamic size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT 5&amp;lt;br&amp;gt;&amp;amp;nbsp;scale 0.01 2&lt;br /&gt;
File:ps_out_vpoints2.png|''Points with conditional size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 200-1000:3 &amp;lt; 1000&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 1000-2500:9 &amp;gt; 1000&lt;br /&gt;
File:ps_out_vpoints3.png|''Points on line ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;type line&amp;lt;br&amp;gt;&amp;amp;nbsp;dist 1cm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlabels ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;in progress&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlabels none|(vector) :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; font :&lt;br /&gt;
&lt;br /&gt;
; labelcol (column) :&lt;br /&gt;
&lt;br /&gt;
; decimals (number) :&lt;br /&gt;
&lt;br /&gt;
; circled yes|no :&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2 text)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlabels0.png|vpoints firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;[...]&amp;lt;br/n&amp;gt;end&amp;lt;br/&amp;gt;vlabels firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;labelcol PUMPERS&amp;lt;br/n&amp;gt;&amp;amp;nbsp;font&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;name Univers-Bold&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;size 10&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color yellow&amp;lt;br/n&amp;gt;&amp;amp;nbsp;end&amp;lt;br/n&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Legend of the maps ==&lt;br /&gt;
&lt;br /&gt;
=== rlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the raster map.&amp;lt;br&amp;gt;The units ''meters'' in the gradient legend is set with [[r.support]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; rlegend [text] : Text is the title of the legend. &lt;br /&gt;
&lt;br /&gt;
; raster (raster) : the ''raster'' map to take the data of legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commads are optionals&amp;lt;/U&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; titlefont : Block ''font'' for the legend header.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font'' for the normal text.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Width of the symbol area.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For category legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; cols (number) [(number)] : Number of columns with symbols and separation between columns (default ''1'').&lt;br /&gt;
&lt;br /&gt;
; nodata yes|no : Remove category ''no data''.&lt;br /&gt;
&lt;br /&gt;
; order (n1,n2,...) : To reorder items.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For gradient legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; height (dimen), width (dimen) : Dimension of the frame with the legend.&lt;br /&gt;
&lt;br /&gt;
; vertical yes|no : Orientation of the gradient legend (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; range (n1 n2) : Manual set of the data range for legend.&lt;br /&gt;
&lt;br /&gt;
; gradient yes|no : Forze draw gradient legend with category data.&lt;br /&gt;
&lt;br /&gt;
; tick (dimen) : Length of the ticks.&lt;br /&gt;
&lt;br /&gt;
; whiteframe (dimen) : Width of the white frame around the bar color.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;250px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_rlegend.png|rlegend Zip Codes (wake)&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster zipcodes_wake&amp;lt;br/&amp;gt;&amp;amp;nbsp;cols 2 0&amp;lt;br/&amp;gt;&amp;amp;nbsp;swidth 8mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;order 20,10,30,22,34&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend1.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;height 8cm&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend2.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;width 8cm&amp;lt;br/&amp;gt;&amp;amp;nbsp;vertical no&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the vector maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlegend [text] : Optional the title or head of the legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; title : Block ''font'' for title of legend.&lt;br /&gt;
&lt;br /&gt;
; font : Block font for normal text of legend.&lt;br /&gt;
&lt;br /&gt;
; frame : &lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]) : Distribution of the items in ''number.1'' cols. Optionaly, ''number.2'' of span between columns.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Symbol width.&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Space between lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlegend: sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_output_vlegend0.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: ps.map]]&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12056</id>
		<title>Ps.output</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12056"/>
		<updated>2010-11-06T10:59:31Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: /* line */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ps.out''' try to update the standard postscript output of Grass adding new features to design borders, graticules, categorized legends, etc&lt;br /&gt;
&lt;br /&gt;
'''This is in progress and not all features are yet uploaded in ''addons''. '''&lt;br /&gt;
&lt;br /&gt;
== Command line flags ==&lt;br /&gt;
&lt;br /&gt;
'''-d ''': Draw a 1x1 cm grid on paper to help the placement of the elements of the map.&lt;br /&gt;
&lt;br /&gt;
'''-e''': Make an output file without the postscript header. Useful when is embebed into other ''ps.out'' map.&lt;br /&gt;
&lt;br /&gt;
'''-g''': Use the extended PostScript of Ghostscript (for transparent colors only)&lt;br /&gt;
&lt;br /&gt;
'''-s''': Draw the small digit in the coordinate numbers to lower instead upper possition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;100px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_grid.png|A4 paper with flag -d &lt;br /&gt;
File:ps_out_digit_upper.png|coordinate&lt;br /&gt;
File:ps_out_digit_lower.png|coordinate with flag -s&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generic Instructions ==&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== dimen ====&lt;br /&gt;
&lt;br /&gt;
Define a dimension. Accepted units are:&lt;br /&gt;
&lt;br /&gt;
*; ''unitless'' : e.g. 123. The dimension is the ''number'' by 1/72&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
*; inch : e.g. 1.2inch. &lt;br /&gt;
&lt;br /&gt;
*; milimeters : e.g. 2.3mm.&lt;br /&gt;
&lt;br /&gt;
*; centimeters : e.g. 1.4cm.&lt;br /&gt;
&lt;br /&gt;
*; percentage : e.g. 50%.&amp;lt;br&amp;gt;The position is relative to the size and position of the map in the paper being ''0%'' the left or bottom corner.&lt;br /&gt;
&lt;br /&gt;
==== color ====&lt;br /&gt;
&lt;br /&gt;
Define a color. Accepted formats are:&lt;br /&gt;
&lt;br /&gt;
*; standard GRASS name : e.g. indigo.&lt;br /&gt;
&lt;br /&gt;
*; R&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;G&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;B : e.g. 200:123:90&lt;br /&gt;
&lt;br /&gt;
*; user name : e.g. red5.&amp;lt;br&amp;gt;Defined in ''palette'' block&lt;br /&gt;
&lt;br /&gt;
All formats can add '$(0-1)' to define the opacity of the color (alpha channel); e.g., indigo$.75 or 200:120:120$.2&lt;br /&gt;
&lt;br /&gt;
==== number ====&lt;br /&gt;
&lt;br /&gt;
==== text ====&lt;br /&gt;
&lt;br /&gt;
=== Blocks of instructions ===&lt;br /&gt;
&lt;br /&gt;
A ''block'' begin with the keywords and finish with keyword ''end''&lt;br /&gt;
&lt;br /&gt;
==== font ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a font.&lt;br /&gt;
&lt;br /&gt;
; name (text) : Name of font.&lt;br /&gt;
&lt;br /&gt;
; size (dimen) : Size of font.&lt;br /&gt;
&lt;br /&gt;
; extend (dimen): Expand the width of font.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of font.&lt;br /&gt;
&lt;br /&gt;
; outline yes|no : Outline of the font.&lt;br /&gt;
&lt;br /&gt;
==== line ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a line.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of line.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of line.&lt;br /&gt;
&lt;br /&gt;
; style solid|dashed|dotted|dashdotted|(n1n2...) : Style of line.&lt;br /&gt;
&lt;br /&gt;
; cap butt|round|extended_butt : Cap&lt;br /&gt;
&lt;br /&gt;
; extended (type step height width) : Extended style of line.&lt;br /&gt;
&lt;br /&gt;
==== fill ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a fill area.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Fill color.&lt;br /&gt;
&lt;br /&gt;
; pat (file) : Fill pattern.&lt;br /&gt;
&lt;br /&gt;
; lwidth (dimen) : Line width of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; scale (number) : Scale of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; limit (dimen) : Limit the fill to the border with a width of ''dimen''.&lt;br /&gt;
&lt;br /&gt;
==== frame ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a frame.&lt;br /&gt;
&lt;br /&gt;
; where (dimen.1 dimen.2) : Position of frame.&lt;br /&gt;
&lt;br /&gt;
; offset (number.1 number.2) : Fine x and y adjust of the position of frame.&lt;br /&gt;
&lt;br /&gt;
; ref right|left|center upper|lower|center : Position is relative to the ''ref''.&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border line&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of the border line.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the frame.&lt;br /&gt;
&lt;br /&gt;
; rotate (dimen) : &amp;lt;u&amp;gt;todo&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== legend ====&lt;br /&gt;
&lt;br /&gt;
; lpos (number): Position in legend&amp;lt;br&amp;gt;Codes: -1, no show in legend; 0 automatic position; &amp;gt; 0 horizontal position.&lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]): Organize legend in ''number.1'' cols with a optional span of ''number.2''&lt;br /&gt;
&lt;br /&gt;
; interline (dimen): Set partial legend interline&lt;br /&gt;
&lt;br /&gt;
== Map paper ==&lt;br /&gt;
&lt;br /&gt;
=== paper ===&lt;br /&gt;
&lt;br /&gt;
Size of paper. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; paper [A0-6|B0-6|Legal|Ledger|Tabloid|Executive|Folio] : Type of paper (default A4).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; color (color) : Paper color.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Custom size of paper.&lt;br /&gt;
&lt;br /&gt;
; left (dimen), right (dimen), top (dimen), bottom (dimen) : Custom margins (default 0.5&amp;quot; left and right, and 1&amp;quot; top and bottom).&lt;br /&gt;
&lt;br /&gt;
; landscape yes|no : Paper orientation (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''. Set the default font of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''. Free draw as watermarks, before any feature of the map is drawn (see ''draw'').&lt;br /&gt;
&lt;br /&gt;
=== scale ===&lt;br /&gt;
&lt;br /&gt;
Scale of the map.&lt;br /&gt;
&lt;br /&gt;
Simple line command to define the scale of the map. The default is adjust map to the paper dimensions. If the remaining dimensions of the paper not permit the scale, ''ps.out'' adjust the scale to a new value that it fit in the paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scale 1&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;(number) : Scale of map.&amp;lt;br&amp;gt;For example, ''scale 1:500000'' to rescale maparea dimensions.&lt;br /&gt;
&lt;br /&gt;
=== maparea ===&lt;br /&gt;
Define specific dimensions of the map (default defined by command ''scale'')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; maparea : Define characteristics of the map area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border map.&amp;lt;br&amp;gt;Usefull with ''in'' and ''out'' formats of the ''grid'' and ''geogrid'', ignored in ''iho'' and ''can'' formats.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Border color-&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the map area.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Dimensions of the map.&lt;br /&gt;
&lt;br /&gt;
; top (dimen), bottom (dimen) : Position of the top-left corner of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''.&amp;lt;br&amp;gt;Draw onto the map but before the grid lines, vpoints and vlabels are drawn; i.e. this map elements are drawn over the draw elements.&lt;br /&gt;
&lt;br /&gt;
=== palette ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;testing&amp;lt;/U&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; palette&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; wheel (number text) :&lt;br /&gt;
&lt;br /&gt;
; monochrome (color number text) :&lt;br /&gt;
&lt;br /&gt;
; complementary (color number text) :&lt;br /&gt;
&lt;br /&gt;
; analogous (color number text) :&lt;br /&gt;
&lt;br /&gt;
; gradient (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; diverging (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
== Common elements ==&lt;br /&gt;
&lt;br /&gt;
=== grid and geogrid ===&lt;br /&gt;
&lt;br /&gt;
Draw a border around the map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; grid|geogrid :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; format in|out|+out|can|iho : Type of border (see examples).&lt;br /&gt;
&lt;br /&gt;
; major (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; minor (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; subminor (number) : ''number'' of subdivisons of the minor divisions.&lt;br /&gt;
&lt;br /&gt;
; trim (number) : Cut trailing zeros.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Color of the border.&lt;br /&gt;
&lt;br /&gt;
; cross (number) : Replace lines by cross&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_iho.png|format iho&lt;br /&gt;
File:ps_out_can.png|format can&lt;br /&gt;
File:ps_out_in.png |format in&lt;br /&gt;
File:ps_out_out.png|format +out&lt;br /&gt;
File:ps_out_out1.png|typical map border&lt;br /&gt;
File:ps_out_out2.png|typical map border with ''subminor 5'' and ''fcolor blue''&lt;br /&gt;
File:ps_out_out3.png|''cross 500'', ''fcolor indigo'', ''color 200:200:200'' in '''maparea'''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== scalebar ===&lt;br /&gt;
&lt;br /&gt;
Set a scalebar on the map.&amp;lt;br&amp;gt;Maximun 5 scalebars in each map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scalebar I|s|S|f|F : Define the type of scalebar (I: inner, s/S: simple, f/F: fill).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; length (number) : Length of the scale.&lt;br /&gt;
&lt;br /&gt;
; units meters|m|kilometers|km|feet|ft|miles|mil|nautical_miles|nm ([text]) : Unit of the length and ''text' to label the units.&lt;br /&gt;
&lt;br /&gt;
; major (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; minor (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor.&lt;br /&gt;
&lt;br /&gt;
; height (dimen) : Height of the bar or ticks.&lt;br /&gt;
&lt;br /&gt;
; zero yes|no : Set position relative to zero value of the scalebar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Scalerbar styles&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;50px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_scalebar_s.png|scalebar s&lt;br /&gt;
File:ps_out_scalebar_S.png|scalebar S&lt;br /&gt;
File:ps_out_scalebar_I.png|scalebar I (uppercase i)&lt;br /&gt;
File:ps_out_scalebar_f.png|scalebar f&lt;br /&gt;
File:ps_out_scalebar_F.png|scalebar F&lt;br /&gt;
File:ps_out_scalebar_3.png|Multiple scalebars zero centered with ''zero yes''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== note ===&lt;br /&gt;
Write special text or free text on any place of the paper with frame (also ''draw'' permit write free-text in paper). &lt;br /&gt;
&lt;br /&gt;
Maximun 20 notes by map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; note &amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;file|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;maplimits|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;dimen|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;scale (text)|(text) : Type of note and text to show.&amp;lt;br&amp;gt;When free text, use '|' to break lines and '.' as first character to center line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; text (text) : Another roption to enter the same as inline note text;&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of note.&lt;br /&gt;
&lt;br /&gt;
; angle (number) : ''number'' of degrees to rotate (do not work fine).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Note keywords and free text&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_note_ml.png  |note :maplimits&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_dimen.png|note :dimen&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scale.png|note :scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_free.png|note free text|in multiple lines&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_freec.png|note .free text|.in multiple [...]&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scaler.png|note :scale scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br&amp;gt;&amp;amp;nbsp;angle 90&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== draw ===&lt;br /&gt;
&lt;br /&gt;
Simple script language to draw predefined postscript code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; draw [none|paper|maparea|free] :  &lt;br /&gt;
''paper'': before any map feature is drawn (equivalent to place inside ''paper'' block); &amp;lt;br&amp;gt;&lt;br /&gt;
''maparea'' before the last elements of the map (equivalent to place inside ''mapare'' block) ; &amp;lt;br&amp;gt;&lt;br /&gt;
''none'': draw over all elements of the map but only in the map area; and &amp;lt;br&amp;gt;&lt;br /&gt;
''free'': after all map features are drawn in any place of the paper; and ''none''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; --- : &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_north1.png   |&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;north 700000 4700000&amp;lt;/source&amp;gt;&lt;br /&gt;
File:ps_out_north2.png   |north 5cm 16.5cm -&lt;br /&gt;
File:ps_out_maplimits.png|maplimits&lt;br /&gt;
File:ps_out_compass.png  |compass 700000 4700000 10000 10.2345&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Raster maps ==&lt;br /&gt;
&lt;br /&gt;
=== raster ===&lt;br /&gt;
&lt;br /&gt;
Draw one or two raster maps on the maparea. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; raster (raster|raster.1 raster.2|raster.R raster.G raster.B|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;group) : The ''raster'' value is the raster mapname, two raster maps ''raster.1'' or color and ''raster.2'' or shade to draw as relief map, three maps ''raster.R'', ''raster.G'' and ''raster.B'' to draw as RGB, or a groupname (leader by ':') with tree RGB maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; grey yes|no : Store and draw the rasters in grey scale (small size of file).&amp;lt;br&amp;gt;The conversion follows the NTSC video standard.&lt;br /&gt;
&lt;br /&gt;
; maskcell (raster.1 [raster.2]) : Set the ''raster.1'' map to use as mask (independent of the mask set in GRASS with [[r.mask]]) and, optionally, the ''raster.2'' map uses as background.&amp;lt;br&amp;gt;The background ''raster.2'' is painted in grey scale (NTSC) and tinted with ''maskcolor''.&lt;br /&gt;
&lt;br /&gt;
; maskcolor (color|none) : Set the ''color'' of the mask area.&amp;lt;br&amp;gt;If a raster map as background is set then it's drawn with a scale white-maskcolor.&lt;br /&gt;
&lt;br /&gt;
; outline : Block ''line''. Outline of categories.&lt;br /&gt;
&lt;br /&gt;
; setcolor null|default|(number) (color) : Replace the color of the cat ''number'' area with a new color.&amp;lt;br&amp;gt;Multiple ''setcolor'' are possibles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_raster1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_outline.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;outline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width .2mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;end&amp;lt;br/&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_setcolor.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor white&amp;lt;br&amp;gt;&amp;amp;nbsp;setcolor 37 magenta&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_grey.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;grey yes&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Vector maps ==&lt;br /&gt;
&lt;br /&gt;
All vector map accept optionally the following commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; layer (number) : Layer number used with cats/where option.&lt;br /&gt;
&lt;br /&gt;
; cats (n1,n2,...) : List of ''cat''s to show.&lt;br /&gt;
&lt;br /&gt;
; where (text) : Argument of the SQL where clausule to filter the areas to show.&lt;br /&gt;
&lt;br /&gt;
; masked yes|no : Masked or not by raster mask (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; label (text) : For description or title in ''vlegend''.&lt;br /&gt;
&lt;br /&gt;
; legend [(number)]: Position in legend (-1, no legend) or enter in a block ''legend''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vareas ===&lt;br /&gt;
&lt;br /&gt;
Draw areas on the map.&amp;lt;br&amp;gt;&lt;br /&gt;
The areas always are drawn first, on the bottom of other type of maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vareas (vector) : ''vector'' is a vector of areas, except when ''lwidth'' is different to zero that ''vector'' is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type area|line : Default ''area''.&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Style of the boundary.&lt;br /&gt;
&lt;br /&gt;
; fill : Block ''fill''. Style of the area.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic fill color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Text label when default conditions.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color][|dimen] text) : Make a item of a sublegend with label the ''text'' and title the text of the ''label''.&amp;lt;br&amp;gt;The fillcolor of the areas is set to ''color'' and the line width is set to ''dimen'' when ''column.2'' &amp;gt;= n1 and ''column.2'' &amp;lt; n2  (''column.2'' from ''rgbcol'').&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; island yes|no : Draw island as normal areas (fill as normal area then hide it).&lt;br /&gt;
&lt;br /&gt;
; mirror (dimen [number]) : The line is drawn as an area with a copy of the line placed with polar coordinates: ''dimen' and ''angle''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vareas: sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vareas0.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;color indigo&lt;br /&gt;
File:ps_out_vareas3.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;pat patterns/diag_up.eps&lt;br /&gt;
File:ps_out_vareas1.png|rgbcol - cat&amp;lt;br&amp;gt;setrule 0-500:red A&amp;lt;br/&amp;gt;setrule 500-1000:green B&amp;lt;br/&amp;gt;setrule 1000-5000:blue C&lt;br /&gt;
File:ps_out_vareas2.png|island no&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlines ===&lt;br /&gt;
&lt;br /&gt;
Draw lines on the map.&amp;lt;br&amp;gt;The areas always are drawn second, after ''vareas'' and before ''vpoints''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlines (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of lines, except if ''type'' is boundary that ''vector'' is a vector of areas.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Optional commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type line|boundary : Draw boundaries of a vector of areas or lines of a vector of lines (default ''line'').&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Normal line.&lt;br /&gt;
&lt;br /&gt;
; hline : Block ''line''. Highlight line.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Works with ''hline'' to offset from the center of ''line''.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic line color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Label in legend when default values and ''setcolor'' rules.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with ''text'' as label and title the text of the ''label''. Also, the color of the normal line with column &amp;gt;= n1 and column &amp;lt; n2 (column from rgbcol), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlines: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlines0.png|''Effect of the ''hline'' block ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;hline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width 1mm&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color red&amp;lt;br&amp;gt;&amp;amp;nbsp;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vpoints ===&lt;br /&gt;
&lt;br /&gt;
Draw points on the map.&amp;lt;br&amp;gt;The points always are drawn last, after ''vareas'' and ''vlines''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vpoints (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of points, except when '''type''' is ''centroid'' or ''boundary'' that it is a vector of areas, or when '''type''' is ''line'' that it is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; type centroid|line|boundary|point : Type of draw (default ''point'').&lt;br /&gt;
&lt;br /&gt;
; symbol (epsfile) : Symbol to use (default: basic/circle).&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Type of line in the symbol.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color): Static fillcolor of the symbol.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Offset of the symbol.&lt;br /&gt;
&lt;br /&gt;
; rotate (number|column) : Angle to rotate the symbol, static ''number'' or dynamic in a ''column'' of the database.&lt;br /&gt;
&lt;br /&gt;
; size (number|column [number]) : Size of the symbol take from ''number'' or from a ''column'' of the database. In the last option, there is a optional ''number'' to define the static size of the symbol in the legend when the size of symbols are dynamic. &lt;br /&gt;
&lt;br /&gt;
; scale (dimen.1 [dimen.2]) : Rescale the size of the symbol by the ''dimen.1'' and, optionally, add a ''dimen.2''. i.e., ''resize = dimen.1 * size + dimen.2''.&lt;br /&gt;
&lt;br /&gt;
; setsize (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;size] text) : Variable size of symbols from data in ''column'' of database set in ''size''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands when type is line&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; dist (dimen) : Define the distance in paper between symbol over the line.&lt;br /&gt;
&lt;br /&gt;
; cline : Block ''line''. Type of line that connect symbols.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vpoints: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vpoints0.png|''Points with same size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size 5&lt;br /&gt;
File:ps_out_vpoints1.png|''Points with dynamic size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT 5&amp;lt;br&amp;gt;&amp;amp;nbsp;scale 0.01 2&lt;br /&gt;
File:ps_out_vpoints2.png|''Points with conditional size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 200-1000:3 &amp;lt; 1000&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 1000-2500:9 &amp;gt; 1000&lt;br /&gt;
File:ps_out_vpoints3.png|''Points on line ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;type line&amp;lt;br&amp;gt;&amp;amp;nbsp;dist 1cm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlabels ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;in progress&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlabels none|(vector) :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; font :&lt;br /&gt;
&lt;br /&gt;
; labelcol (column) :&lt;br /&gt;
&lt;br /&gt;
; decimals (number) :&lt;br /&gt;
&lt;br /&gt;
; circled yes|no :&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2 text)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlabels0.png|vpoints firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;[...]&amp;lt;br/n&amp;gt;end&amp;lt;br/&amp;gt;vlabels firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;labelcol PUMPERS&amp;lt;br/n&amp;gt;&amp;amp;nbsp;font&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;name Univers-Bold&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;size 10&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color yellow&amp;lt;br/n&amp;gt;&amp;amp;nbsp;end&amp;lt;br/n&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Legend of the maps ==&lt;br /&gt;
&lt;br /&gt;
=== rlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the raster map.&amp;lt;br&amp;gt;The units ''meters'' in the gradient legend is set with [[r.support]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; rlegend [text] : Text is the title of the legend. &lt;br /&gt;
&lt;br /&gt;
; raster (raster) : the ''raster'' map to take the data of legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commads are optionals&amp;lt;/U&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; titlefont : Block ''font'' for the legend header.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font'' for the normal text.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Width of the symbol area.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For category legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; cols (number) [(number)] : Number of columns with symbols and separation between columns (default ''1'').&lt;br /&gt;
&lt;br /&gt;
; nodata yes|no : Remove category ''no data''.&lt;br /&gt;
&lt;br /&gt;
; order (n1,n2,...) : To reorder items.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For gradient legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; height (dimen), width (dimen) : Dimension of the frame with the legend.&lt;br /&gt;
&lt;br /&gt;
; vertical yes|no : Orientation of the gradient legend (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; range (n1 n2) : Manual set of the data range for legend.&lt;br /&gt;
&lt;br /&gt;
; gradient yes|no : Forze draw gradient legend with category data.&lt;br /&gt;
&lt;br /&gt;
; tick (dimen) : Length of the ticks.&lt;br /&gt;
&lt;br /&gt;
; whiteframe (dimen) : Width of the white frame around the bar color.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;250px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_rlegend.png|rlegend Zip Codes (wake)&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster zipcodes_wake&amp;lt;br/&amp;gt;&amp;amp;nbsp;cols 2 0&amp;lt;br/&amp;gt;&amp;amp;nbsp;swidth 8mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;order 20,10,30,22,34&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend1.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;height 8cm&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend2.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;width 8cm&amp;lt;br/&amp;gt;&amp;amp;nbsp;vertical no&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the vector maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlegend [text] : Optional the title or head of the legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; title : Block ''font'' for title of legend.&lt;br /&gt;
&lt;br /&gt;
; font : Block font for normal text of legend.&lt;br /&gt;
&lt;br /&gt;
; frame : &lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]) : Distribution of the items in ''number.1'' cols. Optionaly, ''number.2'' of span between columns.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Symbol width.&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Space between lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlegend: sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_output_vlegend0.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: ps.map]]&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12055</id>
		<title>Ps.output</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12055"/>
		<updated>2010-11-06T10:57:55Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: /* line */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ps.out''' try to update the standard postscript output of Grass adding new features to design borders, graticules, categorized legends, etc&lt;br /&gt;
&lt;br /&gt;
'''This is in progress and not all features are yet uploaded in ''addons''. '''&lt;br /&gt;
&lt;br /&gt;
== Command line flags ==&lt;br /&gt;
&lt;br /&gt;
'''-d ''': Draw a 1x1 cm grid on paper to help the placement of the elements of the map.&lt;br /&gt;
&lt;br /&gt;
'''-e''': Make an output file without the postscript header. Useful when is embebed into other ''ps.out'' map.&lt;br /&gt;
&lt;br /&gt;
'''-g''': Use the extended PostScript of Ghostscript (for transparent colors only)&lt;br /&gt;
&lt;br /&gt;
'''-s''': Draw the small digit in the coordinate numbers to lower instead upper possition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;100px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_grid.png|A4 paper with flag -d &lt;br /&gt;
File:ps_out_digit_upper.png|coordinate&lt;br /&gt;
File:ps_out_digit_lower.png|coordinate with flag -s&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generic Instructions ==&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== dimen ====&lt;br /&gt;
&lt;br /&gt;
Define a dimension. Accepted units are:&lt;br /&gt;
&lt;br /&gt;
*; ''unitless'' : e.g. 123. The dimension is the ''number'' by 1/72&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
*; inch : e.g. 1.2inch. &lt;br /&gt;
&lt;br /&gt;
*; milimeters : e.g. 2.3mm.&lt;br /&gt;
&lt;br /&gt;
*; centimeters : e.g. 1.4cm.&lt;br /&gt;
&lt;br /&gt;
*; percentage : e.g. 50%.&amp;lt;br&amp;gt;The position is relative to the size and position of the map in the paper being ''0%'' the left or bottom corner.&lt;br /&gt;
&lt;br /&gt;
==== color ====&lt;br /&gt;
&lt;br /&gt;
Define a color. Accepted formats are:&lt;br /&gt;
&lt;br /&gt;
*; standard GRASS name : e.g. indigo.&lt;br /&gt;
&lt;br /&gt;
*; R&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;G&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;B : e.g. 200:123:90&lt;br /&gt;
&lt;br /&gt;
*; user name : e.g. red5.&amp;lt;br&amp;gt;Defined in ''palette'' block&lt;br /&gt;
&lt;br /&gt;
All formats can add '$(0-1)' to define the opacity of the color (alpha channel); e.g., indigo$.75 or 200:120:120$.2&lt;br /&gt;
&lt;br /&gt;
==== number ====&lt;br /&gt;
&lt;br /&gt;
==== text ====&lt;br /&gt;
&lt;br /&gt;
=== Blocks of instructions ===&lt;br /&gt;
&lt;br /&gt;
A ''block'' begin with the keywords and finish with keyword ''end''&lt;br /&gt;
&lt;br /&gt;
==== font ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a font.&lt;br /&gt;
&lt;br /&gt;
; name (text) : Name of font.&lt;br /&gt;
&lt;br /&gt;
; size (dimen) : Size of font.&lt;br /&gt;
&lt;br /&gt;
; extend (dimen): Expand the width of font.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of font.&lt;br /&gt;
&lt;br /&gt;
; outline yes|no : Outline of the font.&lt;br /&gt;
&lt;br /&gt;
==== line ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a line.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of line.&lt;br /&gt;
&lt;br /&gt;
; color (color) : COlor of line.&lt;br /&gt;
&lt;br /&gt;
; style solid|dashed|dotted|dashdotted|(n1n2...) : Style of line.&lt;br /&gt;
&lt;br /&gt;
; cap butt|round|extended_butt : Cap&lt;br /&gt;
&lt;br /&gt;
==== fill ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a fill area.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Fill color.&lt;br /&gt;
&lt;br /&gt;
; pat (file) : Fill pattern.&lt;br /&gt;
&lt;br /&gt;
; lwidth (dimen) : Line width of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; scale (number) : Scale of the fill pattern.&lt;br /&gt;
&lt;br /&gt;
; limit (dimen) : Limit the fill to the border with a width of ''dimen''.&lt;br /&gt;
&lt;br /&gt;
==== frame ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a frame.&lt;br /&gt;
&lt;br /&gt;
; where (dimen.1 dimen.2) : Position of frame.&lt;br /&gt;
&lt;br /&gt;
; offset (number.1 number.2) : Fine x and y adjust of the position of frame.&lt;br /&gt;
&lt;br /&gt;
; ref right|left|center upper|lower|center : Position is relative to the ''ref''.&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border line&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of the border line.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the frame.&lt;br /&gt;
&lt;br /&gt;
; rotate (dimen) : &amp;lt;u&amp;gt;todo&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== legend ====&lt;br /&gt;
&lt;br /&gt;
; lpos (number): Position in legend&amp;lt;br&amp;gt;Codes: -1, no show in legend; 0 automatic position; &amp;gt; 0 horizontal position.&lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]): Organize legend in ''number.1'' cols with a optional span of ''number.2''&lt;br /&gt;
&lt;br /&gt;
; interline (dimen): Set partial legend interline&lt;br /&gt;
&lt;br /&gt;
== Map paper ==&lt;br /&gt;
&lt;br /&gt;
=== paper ===&lt;br /&gt;
&lt;br /&gt;
Size of paper. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; paper [A0-6|B0-6|Legal|Ledger|Tabloid|Executive|Folio] : Type of paper (default A4).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; color (color) : Paper color.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Custom size of paper.&lt;br /&gt;
&lt;br /&gt;
; left (dimen), right (dimen), top (dimen), bottom (dimen) : Custom margins (default 0.5&amp;quot; left and right, and 1&amp;quot; top and bottom).&lt;br /&gt;
&lt;br /&gt;
; landscape yes|no : Paper orientation (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''. Set the default font of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''. Free draw as watermarks, before any feature of the map is drawn (see ''draw'').&lt;br /&gt;
&lt;br /&gt;
=== scale ===&lt;br /&gt;
&lt;br /&gt;
Scale of the map.&lt;br /&gt;
&lt;br /&gt;
Simple line command to define the scale of the map. The default is adjust map to the paper dimensions. If the remaining dimensions of the paper not permit the scale, ''ps.out'' adjust the scale to a new value that it fit in the paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scale 1&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;(number) : Scale of map.&amp;lt;br&amp;gt;For example, ''scale 1:500000'' to rescale maparea dimensions.&lt;br /&gt;
&lt;br /&gt;
=== maparea ===&lt;br /&gt;
Define specific dimensions of the map (default defined by command ''scale'')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; maparea : Define characteristics of the map area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border map.&amp;lt;br&amp;gt;Usefull with ''in'' and ''out'' formats of the ''grid'' and ''geogrid'', ignored in ''iho'' and ''can'' formats.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Border color-&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the map area.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Dimensions of the map.&lt;br /&gt;
&lt;br /&gt;
; top (dimen), bottom (dimen) : Position of the top-left corner of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''.&amp;lt;br&amp;gt;Draw onto the map but before the grid lines, vpoints and vlabels are drawn; i.e. this map elements are drawn over the draw elements.&lt;br /&gt;
&lt;br /&gt;
=== palette ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;testing&amp;lt;/U&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; palette&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; wheel (number text) :&lt;br /&gt;
&lt;br /&gt;
; monochrome (color number text) :&lt;br /&gt;
&lt;br /&gt;
; complementary (color number text) :&lt;br /&gt;
&lt;br /&gt;
; analogous (color number text) :&lt;br /&gt;
&lt;br /&gt;
; gradient (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; diverging (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
== Common elements ==&lt;br /&gt;
&lt;br /&gt;
=== grid and geogrid ===&lt;br /&gt;
&lt;br /&gt;
Draw a border around the map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; grid|geogrid :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; format in|out|+out|can|iho : Type of border (see examples).&lt;br /&gt;
&lt;br /&gt;
; major (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; minor (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; subminor (number) : ''number'' of subdivisons of the minor divisions.&lt;br /&gt;
&lt;br /&gt;
; trim (number) : Cut trailing zeros.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Color of the border.&lt;br /&gt;
&lt;br /&gt;
; cross (number) : Replace lines by cross&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_iho.png|format iho&lt;br /&gt;
File:ps_out_can.png|format can&lt;br /&gt;
File:ps_out_in.png |format in&lt;br /&gt;
File:ps_out_out.png|format +out&lt;br /&gt;
File:ps_out_out1.png|typical map border&lt;br /&gt;
File:ps_out_out2.png|typical map border with ''subminor 5'' and ''fcolor blue''&lt;br /&gt;
File:ps_out_out3.png|''cross 500'', ''fcolor indigo'', ''color 200:200:200'' in '''maparea'''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== scalebar ===&lt;br /&gt;
&lt;br /&gt;
Set a scalebar on the map.&amp;lt;br&amp;gt;Maximun 5 scalebars in each map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scalebar I|s|S|f|F : Define the type of scalebar (I: inner, s/S: simple, f/F: fill).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; length (number) : Length of the scale.&lt;br /&gt;
&lt;br /&gt;
; units meters|m|kilometers|km|feet|ft|miles|mil|nautical_miles|nm ([text]) : Unit of the length and ''text' to label the units.&lt;br /&gt;
&lt;br /&gt;
; major (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; minor (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor.&lt;br /&gt;
&lt;br /&gt;
; height (dimen) : Height of the bar or ticks.&lt;br /&gt;
&lt;br /&gt;
; zero yes|no : Set position relative to zero value of the scalebar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Scalerbar styles&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;50px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_scalebar_s.png|scalebar s&lt;br /&gt;
File:ps_out_scalebar_S.png|scalebar S&lt;br /&gt;
File:ps_out_scalebar_I.png|scalebar I (uppercase i)&lt;br /&gt;
File:ps_out_scalebar_f.png|scalebar f&lt;br /&gt;
File:ps_out_scalebar_F.png|scalebar F&lt;br /&gt;
File:ps_out_scalebar_3.png|Multiple scalebars zero centered with ''zero yes''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== note ===&lt;br /&gt;
Write special text or free text on any place of the paper with frame (also ''draw'' permit write free-text in paper). &lt;br /&gt;
&lt;br /&gt;
Maximun 20 notes by map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; note &amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;file|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;maplimits|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;dimen|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;scale (text)|(text) : Type of note and text to show.&amp;lt;br&amp;gt;When free text, use '|' to break lines and '.' as first character to center line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; text (text) : Another roption to enter the same as inline note text;&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of note.&lt;br /&gt;
&lt;br /&gt;
; angle (number) : ''number'' of degrees to rotate (do not work fine).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Note keywords and free text&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_note_ml.png  |note :maplimits&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_dimen.png|note :dimen&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scale.png|note :scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_free.png|note free text|in multiple lines&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_freec.png|note .free text|.in multiple [...]&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scaler.png|note :scale scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br&amp;gt;&amp;amp;nbsp;angle 90&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== draw ===&lt;br /&gt;
&lt;br /&gt;
Simple script language to draw predefined postscript code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; draw [none|paper|maparea|free] :  &lt;br /&gt;
''paper'': before any map feature is drawn (equivalent to place inside ''paper'' block); &amp;lt;br&amp;gt;&lt;br /&gt;
''maparea'' before the last elements of the map (equivalent to place inside ''mapare'' block) ; &amp;lt;br&amp;gt;&lt;br /&gt;
''none'': draw over all elements of the map but only in the map area; and &amp;lt;br&amp;gt;&lt;br /&gt;
''free'': after all map features are drawn in any place of the paper; and ''none''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; --- : &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_north1.png   |&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;north 700000 4700000&amp;lt;/source&amp;gt;&lt;br /&gt;
File:ps_out_north2.png   |north 5cm 16.5cm -&lt;br /&gt;
File:ps_out_maplimits.png|maplimits&lt;br /&gt;
File:ps_out_compass.png  |compass 700000 4700000 10000 10.2345&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Raster maps ==&lt;br /&gt;
&lt;br /&gt;
=== raster ===&lt;br /&gt;
&lt;br /&gt;
Draw one or two raster maps on the maparea. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; raster (raster|raster.1 raster.2|raster.R raster.G raster.B|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;group) : The ''raster'' value is the raster mapname, two raster maps ''raster.1'' or color and ''raster.2'' or shade to draw as relief map, three maps ''raster.R'', ''raster.G'' and ''raster.B'' to draw as RGB, or a groupname (leader by ':') with tree RGB maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; grey yes|no : Store and draw the rasters in grey scale (small size of file).&amp;lt;br&amp;gt;The conversion follows the NTSC video standard.&lt;br /&gt;
&lt;br /&gt;
; maskcell (raster.1 [raster.2]) : Set the ''raster.1'' map to use as mask (independent of the mask set in GRASS with [[r.mask]]) and, optionally, the ''raster.2'' map uses as background.&amp;lt;br&amp;gt;The background ''raster.2'' is painted in grey scale (NTSC) and tinted with ''maskcolor''.&lt;br /&gt;
&lt;br /&gt;
; maskcolor (color|none) : Set the ''color'' of the mask area.&amp;lt;br&amp;gt;If a raster map as background is set then it's drawn with a scale white-maskcolor.&lt;br /&gt;
&lt;br /&gt;
; outline : Block ''line''. Outline of categories.&lt;br /&gt;
&lt;br /&gt;
; setcolor null|default|(number) (color) : Replace the color of the cat ''number'' area with a new color.&amp;lt;br&amp;gt;Multiple ''setcolor'' are possibles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_raster1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_outline.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;outline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width .2mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;end&amp;lt;br/&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_setcolor.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor white&amp;lt;br&amp;gt;&amp;amp;nbsp;setcolor 37 magenta&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_grey.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;grey yes&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Vector maps ==&lt;br /&gt;
&lt;br /&gt;
All vector map accept optionally the following commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; layer (number) : Layer number used with cats/where option.&lt;br /&gt;
&lt;br /&gt;
; cats (n1,n2,...) : List of ''cat''s to show.&lt;br /&gt;
&lt;br /&gt;
; where (text) : Argument of the SQL where clausule to filter the areas to show.&lt;br /&gt;
&lt;br /&gt;
; masked yes|no : Masked or not by raster mask (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; label (text) : For description or title in ''vlegend''.&lt;br /&gt;
&lt;br /&gt;
; legend [(number)]: Position in legend (-1, no legend) or enter in a block ''legend''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vareas ===&lt;br /&gt;
&lt;br /&gt;
Draw areas on the map.&amp;lt;br&amp;gt;&lt;br /&gt;
The areas always are drawn first, on the bottom of other type of maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vareas (vector) : ''vector'' is a vector of areas, except when ''lwidth'' is different to zero that ''vector'' is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type area|line : Default ''area''.&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Style of the boundary.&lt;br /&gt;
&lt;br /&gt;
; fill : Block ''fill''. Style of the area.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic fill color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Text label when default conditions.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color][|dimen] text) : Make a item of a sublegend with label the ''text'' and title the text of the ''label''.&amp;lt;br&amp;gt;The fillcolor of the areas is set to ''color'' and the line width is set to ''dimen'' when ''column.2'' &amp;gt;= n1 and ''column.2'' &amp;lt; n2  (''column.2'' from ''rgbcol'').&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; island yes|no : Draw island as normal areas (fill as normal area then hide it).&lt;br /&gt;
&lt;br /&gt;
; mirror (dimen [number]) : The line is drawn as an area with a copy of the line placed with polar coordinates: ''dimen' and ''angle''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vareas: sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vareas0.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;color indigo&lt;br /&gt;
File:ps_out_vareas3.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;pat patterns/diag_up.eps&lt;br /&gt;
File:ps_out_vareas1.png|rgbcol - cat&amp;lt;br&amp;gt;setrule 0-500:red A&amp;lt;br/&amp;gt;setrule 500-1000:green B&amp;lt;br/&amp;gt;setrule 1000-5000:blue C&lt;br /&gt;
File:ps_out_vareas2.png|island no&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlines ===&lt;br /&gt;
&lt;br /&gt;
Draw lines on the map.&amp;lt;br&amp;gt;The areas always are drawn second, after ''vareas'' and before ''vpoints''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlines (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of lines, except if ''type'' is boundary that ''vector'' is a vector of areas.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Optional commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type line|boundary : Draw boundaries of a vector of areas or lines of a vector of lines (default ''line'').&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Normal line.&lt;br /&gt;
&lt;br /&gt;
; hline : Block ''line''. Highlight line.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Works with ''hline'' to offset from the center of ''line''.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic line color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Label in legend when default values and ''setcolor'' rules.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with ''text'' as label and title the text of the ''label''. Also, the color of the normal line with column &amp;gt;= n1 and column &amp;lt; n2 (column from rgbcol), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlines: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlines0.png|''Effect of the ''hline'' block ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;hline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width 1mm&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color red&amp;lt;br&amp;gt;&amp;amp;nbsp;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vpoints ===&lt;br /&gt;
&lt;br /&gt;
Draw points on the map.&amp;lt;br&amp;gt;The points always are drawn last, after ''vareas'' and ''vlines''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vpoints (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of points, except when '''type''' is ''centroid'' or ''boundary'' that it is a vector of areas, or when '''type''' is ''line'' that it is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; type centroid|line|boundary|point : Type of draw (default ''point'').&lt;br /&gt;
&lt;br /&gt;
; symbol (epsfile) : Symbol to use (default: basic/circle).&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Type of line in the symbol.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color): Static fillcolor of the symbol.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Offset of the symbol.&lt;br /&gt;
&lt;br /&gt;
; rotate (number|column) : Angle to rotate the symbol, static ''number'' or dynamic in a ''column'' of the database.&lt;br /&gt;
&lt;br /&gt;
; size (number|column [number]) : Size of the symbol take from ''number'' or from a ''column'' of the database. In the last option, there is a optional ''number'' to define the static size of the symbol in the legend when the size of symbols are dynamic. &lt;br /&gt;
&lt;br /&gt;
; scale (dimen.1 [dimen.2]) : Rescale the size of the symbol by the ''dimen.1'' and, optionally, add a ''dimen.2''. i.e., ''resize = dimen.1 * size + dimen.2''.&lt;br /&gt;
&lt;br /&gt;
; setsize (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;size] text) : Variable size of symbols from data in ''column'' of database set in ''size''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands when type is line&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; dist (dimen) : Define the distance in paper between symbol over the line.&lt;br /&gt;
&lt;br /&gt;
; cline : Block ''line''. Type of line that connect symbols.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vpoints: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vpoints0.png|''Points with same size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size 5&lt;br /&gt;
File:ps_out_vpoints1.png|''Points with dynamic size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT 5&amp;lt;br&amp;gt;&amp;amp;nbsp;scale 0.01 2&lt;br /&gt;
File:ps_out_vpoints2.png|''Points with conditional size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 200-1000:3 &amp;lt; 1000&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 1000-2500:9 &amp;gt; 1000&lt;br /&gt;
File:ps_out_vpoints3.png|''Points on line ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;type line&amp;lt;br&amp;gt;&amp;amp;nbsp;dist 1cm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlabels ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;in progress&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlabels none|(vector) :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; font :&lt;br /&gt;
&lt;br /&gt;
; labelcol (column) :&lt;br /&gt;
&lt;br /&gt;
; decimals (number) :&lt;br /&gt;
&lt;br /&gt;
; circled yes|no :&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2 text)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlabels0.png|vpoints firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;[...]&amp;lt;br/n&amp;gt;end&amp;lt;br/&amp;gt;vlabels firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;labelcol PUMPERS&amp;lt;br/n&amp;gt;&amp;amp;nbsp;font&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;name Univers-Bold&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;size 10&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color yellow&amp;lt;br/n&amp;gt;&amp;amp;nbsp;end&amp;lt;br/n&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Legend of the maps ==&lt;br /&gt;
&lt;br /&gt;
=== rlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the raster map.&amp;lt;br&amp;gt;The units ''meters'' in the gradient legend is set with [[r.support]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; rlegend [text] : Text is the title of the legend. &lt;br /&gt;
&lt;br /&gt;
; raster (raster) : the ''raster'' map to take the data of legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commads are optionals&amp;lt;/U&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; titlefont : Block ''font'' for the legend header.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font'' for the normal text.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Width of the symbol area.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For category legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; cols (number) [(number)] : Number of columns with symbols and separation between columns (default ''1'').&lt;br /&gt;
&lt;br /&gt;
; nodata yes|no : Remove category ''no data''.&lt;br /&gt;
&lt;br /&gt;
; order (n1,n2,...) : To reorder items.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For gradient legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; height (dimen), width (dimen) : Dimension of the frame with the legend.&lt;br /&gt;
&lt;br /&gt;
; vertical yes|no : Orientation of the gradient legend (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; range (n1 n2) : Manual set of the data range for legend.&lt;br /&gt;
&lt;br /&gt;
; gradient yes|no : Forze draw gradient legend with category data.&lt;br /&gt;
&lt;br /&gt;
; tick (dimen) : Length of the ticks.&lt;br /&gt;
&lt;br /&gt;
; whiteframe (dimen) : Width of the white frame around the bar color.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;250px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_rlegend.png|rlegend Zip Codes (wake)&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster zipcodes_wake&amp;lt;br/&amp;gt;&amp;amp;nbsp;cols 2 0&amp;lt;br/&amp;gt;&amp;amp;nbsp;swidth 8mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;order 20,10,30,22,34&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend1.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;height 8cm&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend2.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;width 8cm&amp;lt;br/&amp;gt;&amp;amp;nbsp;vertical no&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the vector maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlegend [text] : Optional the title or head of the legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; title : Block ''font'' for title of legend.&lt;br /&gt;
&lt;br /&gt;
; font : Block font for normal text of legend.&lt;br /&gt;
&lt;br /&gt;
; frame : &lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]) : Distribution of the items in ''number.1'' cols. Optionaly, ''number.2'' of span between columns.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Symbol width.&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Space between lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlegend: sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_output_vlegend0.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: ps.map]]&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12054</id>
		<title>Ps.output</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12054"/>
		<updated>2010-11-06T10:54:12Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: /* vareas */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ps.out''' try to update the standard postscript output of Grass adding new features to design borders, graticules, categorized legends, etc&lt;br /&gt;
&lt;br /&gt;
'''This is in progress and not all features are yet uploaded in ''addons''. '''&lt;br /&gt;
&lt;br /&gt;
== Command line flags ==&lt;br /&gt;
&lt;br /&gt;
'''-d ''': Draw a 1x1 cm grid on paper to help the placement of the elements of the map.&lt;br /&gt;
&lt;br /&gt;
'''-e''': Make an output file without the postscript header. Useful when is embebed into other ''ps.out'' map.&lt;br /&gt;
&lt;br /&gt;
'''-g''': Use the extended PostScript of Ghostscript (for transparent colors only)&lt;br /&gt;
&lt;br /&gt;
'''-s''': Draw the small digit in the coordinate numbers to lower instead upper possition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;100px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_grid.png|A4 paper with flag -d &lt;br /&gt;
File:ps_out_digit_upper.png|coordinate&lt;br /&gt;
File:ps_out_digit_lower.png|coordinate with flag -s&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generic Instructions ==&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== dimen ====&lt;br /&gt;
&lt;br /&gt;
Define a dimension. Accepted units are:&lt;br /&gt;
&lt;br /&gt;
*; ''unitless'' : e.g. 123. The dimension is the ''number'' by 1/72&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
*; inch : e.g. 1.2inch. &lt;br /&gt;
&lt;br /&gt;
*; milimeters : e.g. 2.3mm.&lt;br /&gt;
&lt;br /&gt;
*; centimeters : e.g. 1.4cm.&lt;br /&gt;
&lt;br /&gt;
*; percentage : e.g. 50%.&amp;lt;br&amp;gt;The position is relative to the size and position of the map in the paper being ''0%'' the left or bottom corner.&lt;br /&gt;
&lt;br /&gt;
==== color ====&lt;br /&gt;
&lt;br /&gt;
Define a color. Accepted formats are:&lt;br /&gt;
&lt;br /&gt;
*; standard GRASS name : e.g. indigo.&lt;br /&gt;
&lt;br /&gt;
*; R&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;G&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;B : e.g. 200:123:90&lt;br /&gt;
&lt;br /&gt;
*; user name : e.g. red5.&amp;lt;br&amp;gt;Defined in ''palette'' block&lt;br /&gt;
&lt;br /&gt;
All formats can add '$(0-1)' to define the opacity of the color (alpha channel); e.g., indigo$.75 or 200:120:120$.2&lt;br /&gt;
&lt;br /&gt;
==== number ====&lt;br /&gt;
&lt;br /&gt;
==== text ====&lt;br /&gt;
&lt;br /&gt;
=== Blocks of instructions ===&lt;br /&gt;
&lt;br /&gt;
A ''block'' begin with the keywords and finish with keyword ''end''&lt;br /&gt;
&lt;br /&gt;
==== font ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a font.&lt;br /&gt;
&lt;br /&gt;
; name (text) : Name of font.&lt;br /&gt;
&lt;br /&gt;
; size (dimen) : Size of font.&lt;br /&gt;
&lt;br /&gt;
; extend (dimen): Expand the width of font.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of font.&lt;br /&gt;
&lt;br /&gt;
; outline yes|no : Outline of the font.&lt;br /&gt;
&lt;br /&gt;
==== line ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a line.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of line.&lt;br /&gt;
&lt;br /&gt;
; color (color) : COlor of line.&lt;br /&gt;
&lt;br /&gt;
; style solid|dashed|dotted|dashdotted|(n1n2...) : Style of line.&lt;br /&gt;
&lt;br /&gt;
; cap butt|round|extended_butt : Cap&lt;br /&gt;
&lt;br /&gt;
==== frame ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a frame.&lt;br /&gt;
&lt;br /&gt;
; where (dimen.1 dimen.2) : Position of frame.&lt;br /&gt;
&lt;br /&gt;
; offset (number.1 number.2) : Fine x and y adjust of the position of frame.&lt;br /&gt;
&lt;br /&gt;
; ref right|left|center upper|lower|center : Position is relative to the ''ref''.&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border line&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of the border line.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the frame.&lt;br /&gt;
&lt;br /&gt;
; rotate (dimen) : &amp;lt;u&amp;gt;todo&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== legend ====&lt;br /&gt;
&lt;br /&gt;
; lpos (number): Position in legend&amp;lt;br&amp;gt;Codes: -1, no show in legend; 0 automatic position; &amp;gt; 0 horizontal position.&lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]): Organize legend in ''number.1'' cols with a optional span of ''number.2''&lt;br /&gt;
&lt;br /&gt;
; interline (dimen): Set partial legend interline&lt;br /&gt;
&lt;br /&gt;
== Map paper ==&lt;br /&gt;
&lt;br /&gt;
=== paper ===&lt;br /&gt;
&lt;br /&gt;
Size of paper. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; paper [A0-6|B0-6|Legal|Ledger|Tabloid|Executive|Folio] : Type of paper (default A4).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; color (color) : Paper color.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Custom size of paper.&lt;br /&gt;
&lt;br /&gt;
; left (dimen), right (dimen), top (dimen), bottom (dimen) : Custom margins (default 0.5&amp;quot; left and right, and 1&amp;quot; top and bottom).&lt;br /&gt;
&lt;br /&gt;
; landscape yes|no : Paper orientation (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''. Set the default font of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''. Free draw as watermarks, before any feature of the map is drawn (see ''draw'').&lt;br /&gt;
&lt;br /&gt;
=== scale ===&lt;br /&gt;
&lt;br /&gt;
Scale of the map.&lt;br /&gt;
&lt;br /&gt;
Simple line command to define the scale of the map. The default is adjust map to the paper dimensions. If the remaining dimensions of the paper not permit the scale, ''ps.out'' adjust the scale to a new value that it fit in the paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scale 1&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;(number) : Scale of map.&amp;lt;br&amp;gt;For example, ''scale 1:500000'' to rescale maparea dimensions.&lt;br /&gt;
&lt;br /&gt;
=== maparea ===&lt;br /&gt;
Define specific dimensions of the map (default defined by command ''scale'')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; maparea : Define characteristics of the map area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border map.&amp;lt;br&amp;gt;Usefull with ''in'' and ''out'' formats of the ''grid'' and ''geogrid'', ignored in ''iho'' and ''can'' formats.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Border color-&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the map area.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Dimensions of the map.&lt;br /&gt;
&lt;br /&gt;
; top (dimen), bottom (dimen) : Position of the top-left corner of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''.&amp;lt;br&amp;gt;Draw onto the map but before the grid lines, vpoints and vlabels are drawn; i.e. this map elements are drawn over the draw elements.&lt;br /&gt;
&lt;br /&gt;
=== palette ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;testing&amp;lt;/U&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; palette&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; wheel (number text) :&lt;br /&gt;
&lt;br /&gt;
; monochrome (color number text) :&lt;br /&gt;
&lt;br /&gt;
; complementary (color number text) :&lt;br /&gt;
&lt;br /&gt;
; analogous (color number text) :&lt;br /&gt;
&lt;br /&gt;
; gradient (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; diverging (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
== Common elements ==&lt;br /&gt;
&lt;br /&gt;
=== grid and geogrid ===&lt;br /&gt;
&lt;br /&gt;
Draw a border around the map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; grid|geogrid :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; format in|out|+out|can|iho : Type of border (see examples).&lt;br /&gt;
&lt;br /&gt;
; major (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; minor (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; subminor (number) : ''number'' of subdivisons of the minor divisions.&lt;br /&gt;
&lt;br /&gt;
; trim (number) : Cut trailing zeros.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Color of the border.&lt;br /&gt;
&lt;br /&gt;
; cross (number) : Replace lines by cross&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_iho.png|format iho&lt;br /&gt;
File:ps_out_can.png|format can&lt;br /&gt;
File:ps_out_in.png |format in&lt;br /&gt;
File:ps_out_out.png|format +out&lt;br /&gt;
File:ps_out_out1.png|typical map border&lt;br /&gt;
File:ps_out_out2.png|typical map border with ''subminor 5'' and ''fcolor blue''&lt;br /&gt;
File:ps_out_out3.png|''cross 500'', ''fcolor indigo'', ''color 200:200:200'' in '''maparea'''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== scalebar ===&lt;br /&gt;
&lt;br /&gt;
Set a scalebar on the map.&amp;lt;br&amp;gt;Maximun 5 scalebars in each map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scalebar I|s|S|f|F : Define the type of scalebar (I: inner, s/S: simple, f/F: fill).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; length (number) : Length of the scale.&lt;br /&gt;
&lt;br /&gt;
; units meters|m|kilometers|km|feet|ft|miles|mil|nautical_miles|nm ([text]) : Unit of the length and ''text' to label the units.&lt;br /&gt;
&lt;br /&gt;
; major (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; minor (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor.&lt;br /&gt;
&lt;br /&gt;
; height (dimen) : Height of the bar or ticks.&lt;br /&gt;
&lt;br /&gt;
; zero yes|no : Set position relative to zero value of the scalebar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Scalerbar styles&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;50px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_scalebar_s.png|scalebar s&lt;br /&gt;
File:ps_out_scalebar_S.png|scalebar S&lt;br /&gt;
File:ps_out_scalebar_I.png|scalebar I (uppercase i)&lt;br /&gt;
File:ps_out_scalebar_f.png|scalebar f&lt;br /&gt;
File:ps_out_scalebar_F.png|scalebar F&lt;br /&gt;
File:ps_out_scalebar_3.png|Multiple scalebars zero centered with ''zero yes''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== note ===&lt;br /&gt;
Write special text or free text on any place of the paper with frame (also ''draw'' permit write free-text in paper). &lt;br /&gt;
&lt;br /&gt;
Maximun 20 notes by map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; note &amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;file|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;maplimits|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;dimen|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;scale (text)|(text) : Type of note and text to show.&amp;lt;br&amp;gt;When free text, use '|' to break lines and '.' as first character to center line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; text (text) : Another roption to enter the same as inline note text;&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of note.&lt;br /&gt;
&lt;br /&gt;
; angle (number) : ''number'' of degrees to rotate (do not work fine).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Note keywords and free text&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_note_ml.png  |note :maplimits&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_dimen.png|note :dimen&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scale.png|note :scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_free.png|note free text|in multiple lines&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_freec.png|note .free text|.in multiple [...]&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scaler.png|note :scale scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br&amp;gt;&amp;amp;nbsp;angle 90&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== draw ===&lt;br /&gt;
&lt;br /&gt;
Simple script language to draw predefined postscript code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; draw [none|paper|maparea|free] :  &lt;br /&gt;
''paper'': before any map feature is drawn (equivalent to place inside ''paper'' block); &amp;lt;br&amp;gt;&lt;br /&gt;
''maparea'' before the last elements of the map (equivalent to place inside ''mapare'' block) ; &amp;lt;br&amp;gt;&lt;br /&gt;
''none'': draw over all elements of the map but only in the map area; and &amp;lt;br&amp;gt;&lt;br /&gt;
''free'': after all map features are drawn in any place of the paper; and ''none''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; --- : &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_north1.png   |&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;north 700000 4700000&amp;lt;/source&amp;gt;&lt;br /&gt;
File:ps_out_north2.png   |north 5cm 16.5cm -&lt;br /&gt;
File:ps_out_maplimits.png|maplimits&lt;br /&gt;
File:ps_out_compass.png  |compass 700000 4700000 10000 10.2345&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Raster maps ==&lt;br /&gt;
&lt;br /&gt;
=== raster ===&lt;br /&gt;
&lt;br /&gt;
Draw one or two raster maps on the maparea. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; raster (raster|raster.1 raster.2|raster.R raster.G raster.B|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;group) : The ''raster'' value is the raster mapname, two raster maps ''raster.1'' or color and ''raster.2'' or shade to draw as relief map, three maps ''raster.R'', ''raster.G'' and ''raster.B'' to draw as RGB, or a groupname (leader by ':') with tree RGB maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; grey yes|no : Store and draw the rasters in grey scale (small size of file).&amp;lt;br&amp;gt;The conversion follows the NTSC video standard.&lt;br /&gt;
&lt;br /&gt;
; maskcell (raster.1 [raster.2]) : Set the ''raster.1'' map to use as mask (independent of the mask set in GRASS with [[r.mask]]) and, optionally, the ''raster.2'' map uses as background.&amp;lt;br&amp;gt;The background ''raster.2'' is painted in grey scale (NTSC) and tinted with ''maskcolor''.&lt;br /&gt;
&lt;br /&gt;
; maskcolor (color|none) : Set the ''color'' of the mask area.&amp;lt;br&amp;gt;If a raster map as background is set then it's drawn with a scale white-maskcolor.&lt;br /&gt;
&lt;br /&gt;
; outline : Block ''line''. Outline of categories.&lt;br /&gt;
&lt;br /&gt;
; setcolor null|default|(number) (color) : Replace the color of the cat ''number'' area with a new color.&amp;lt;br&amp;gt;Multiple ''setcolor'' are possibles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_raster1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_outline.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;outline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width .2mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;end&amp;lt;br/&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_setcolor.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor white&amp;lt;br&amp;gt;&amp;amp;nbsp;setcolor 37 magenta&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_grey.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;grey yes&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Vector maps ==&lt;br /&gt;
&lt;br /&gt;
All vector map accept optionally the following commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; layer (number) : Layer number used with cats/where option.&lt;br /&gt;
&lt;br /&gt;
; cats (n1,n2,...) : List of ''cat''s to show.&lt;br /&gt;
&lt;br /&gt;
; where (text) : Argument of the SQL where clausule to filter the areas to show.&lt;br /&gt;
&lt;br /&gt;
; masked yes|no : Masked or not by raster mask (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; label (text) : For description or title in ''vlegend''.&lt;br /&gt;
&lt;br /&gt;
; legend [(number)]: Position in legend (-1, no legend) or enter in a block ''legend''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vareas ===&lt;br /&gt;
&lt;br /&gt;
Draw areas on the map.&amp;lt;br&amp;gt;&lt;br /&gt;
The areas always are drawn first, on the bottom of other type of maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vareas (vector) : ''vector'' is a vector of areas, except when ''lwidth'' is different to zero that ''vector'' is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type area|line : Default ''area''.&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Style of the boundary.&lt;br /&gt;
&lt;br /&gt;
; fill : Block ''fill''. Style of the area.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic fill color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Text label when default conditions.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color][|dimen] text) : Make a item of a sublegend with label the ''text'' and title the text of the ''label''.&amp;lt;br&amp;gt;The fillcolor of the areas is set to ''color'' and the line width is set to ''dimen'' when ''column.2'' &amp;gt;= n1 and ''column.2'' &amp;lt; n2  (''column.2'' from ''rgbcol'').&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; island yes|no : Draw island as normal areas (fill as normal area then hide it).&lt;br /&gt;
&lt;br /&gt;
; mirror (dimen [number]) : The line is drawn as an area with a copy of the line placed with polar coordinates: ''dimen' and ''angle''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vareas: sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vareas0.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;color indigo&lt;br /&gt;
File:ps_out_vareas3.png|fill&amp;lt;br&amp;gt;&amp;amp;nbsp;pat patterns/diag_up.eps&lt;br /&gt;
File:ps_out_vareas1.png|rgbcol - cat&amp;lt;br&amp;gt;setrule 0-500:red A&amp;lt;br/&amp;gt;setrule 500-1000:green B&amp;lt;br/&amp;gt;setrule 1000-5000:blue C&lt;br /&gt;
File:ps_out_vareas2.png|island no&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlines ===&lt;br /&gt;
&lt;br /&gt;
Draw lines on the map.&amp;lt;br&amp;gt;The areas always are drawn second, after ''vareas'' and before ''vpoints''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlines (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of lines, except if ''type'' is boundary that ''vector'' is a vector of areas.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Optional commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type line|boundary : Draw boundaries of a vector of areas or lines of a vector of lines (default ''line'').&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Normal line.&lt;br /&gt;
&lt;br /&gt;
; hline : Block ''line''. Highlight line.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Works with ''hline'' to offset from the center of ''line''.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic line color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Label in legend when default values and ''setcolor'' rules.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with ''text'' as label and title the text of the ''label''. Also, the color of the normal line with column &amp;gt;= n1 and column &amp;lt; n2 (column from rgbcol), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlines: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlines0.png|''Effect of the ''hline'' block ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;hline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width 1mm&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color red&amp;lt;br&amp;gt;&amp;amp;nbsp;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vpoints ===&lt;br /&gt;
&lt;br /&gt;
Draw points on the map.&amp;lt;br&amp;gt;The points always are drawn last, after ''vareas'' and ''vlines''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vpoints (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of points, except when '''type''' is ''centroid'' or ''boundary'' that it is a vector of areas, or when '''type''' is ''line'' that it is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; type centroid|line|boundary|point : Type of draw (default ''point'').&lt;br /&gt;
&lt;br /&gt;
; symbol (epsfile) : Symbol to use (default: basic/circle).&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Type of line in the symbol.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color): Static fillcolor of the symbol.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Offset of the symbol.&lt;br /&gt;
&lt;br /&gt;
; rotate (number|column) : Angle to rotate the symbol, static ''number'' or dynamic in a ''column'' of the database.&lt;br /&gt;
&lt;br /&gt;
; size (number|column [number]) : Size of the symbol take from ''number'' or from a ''column'' of the database. In the last option, there is a optional ''number'' to define the static size of the symbol in the legend when the size of symbols are dynamic. &lt;br /&gt;
&lt;br /&gt;
; scale (dimen.1 [dimen.2]) : Rescale the size of the symbol by the ''dimen.1'' and, optionally, add a ''dimen.2''. i.e., ''resize = dimen.1 * size + dimen.2''.&lt;br /&gt;
&lt;br /&gt;
; setsize (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;size] text) : Variable size of symbols from data in ''column'' of database set in ''size''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands when type is line&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; dist (dimen) : Define the distance in paper between symbol over the line.&lt;br /&gt;
&lt;br /&gt;
; cline : Block ''line''. Type of line that connect symbols.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vpoints: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vpoints0.png|''Points with same size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size 5&lt;br /&gt;
File:ps_out_vpoints1.png|''Points with dynamic size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT 5&amp;lt;br&amp;gt;&amp;amp;nbsp;scale 0.01 2&lt;br /&gt;
File:ps_out_vpoints2.png|''Points with conditional size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 200-1000:3 &amp;lt; 1000&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 1000-2500:9 &amp;gt; 1000&lt;br /&gt;
File:ps_out_vpoints3.png|''Points on line ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;type line&amp;lt;br&amp;gt;&amp;amp;nbsp;dist 1cm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlabels ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;in progress&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlabels none|(vector) :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; font :&lt;br /&gt;
&lt;br /&gt;
; labelcol (column) :&lt;br /&gt;
&lt;br /&gt;
; decimals (number) :&lt;br /&gt;
&lt;br /&gt;
; circled yes|no :&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2 text)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlabels0.png|vpoints firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;[...]&amp;lt;br/n&amp;gt;end&amp;lt;br/&amp;gt;vlabels firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;labelcol PUMPERS&amp;lt;br/n&amp;gt;&amp;amp;nbsp;font&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;name Univers-Bold&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;size 10&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color yellow&amp;lt;br/n&amp;gt;&amp;amp;nbsp;end&amp;lt;br/n&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Legend of the maps ==&lt;br /&gt;
&lt;br /&gt;
=== rlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the raster map.&amp;lt;br&amp;gt;The units ''meters'' in the gradient legend is set with [[r.support]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; rlegend [text] : Text is the title of the legend. &lt;br /&gt;
&lt;br /&gt;
; raster (raster) : the ''raster'' map to take the data of legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commads are optionals&amp;lt;/U&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; titlefont : Block ''font'' for the legend header.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font'' for the normal text.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Width of the symbol area.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For category legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; cols (number) [(number)] : Number of columns with symbols and separation between columns (default ''1'').&lt;br /&gt;
&lt;br /&gt;
; nodata yes|no : Remove category ''no data''.&lt;br /&gt;
&lt;br /&gt;
; order (n1,n2,...) : To reorder items.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For gradient legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; height (dimen), width (dimen) : Dimension of the frame with the legend.&lt;br /&gt;
&lt;br /&gt;
; vertical yes|no : Orientation of the gradient legend (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; range (n1 n2) : Manual set of the data range for legend.&lt;br /&gt;
&lt;br /&gt;
; gradient yes|no : Forze draw gradient legend with category data.&lt;br /&gt;
&lt;br /&gt;
; tick (dimen) : Length of the ticks.&lt;br /&gt;
&lt;br /&gt;
; whiteframe (dimen) : Width of the white frame around the bar color.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;250px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_rlegend.png|rlegend Zip Codes (wake)&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster zipcodes_wake&amp;lt;br/&amp;gt;&amp;amp;nbsp;cols 2 0&amp;lt;br/&amp;gt;&amp;amp;nbsp;swidth 8mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;order 20,10,30,22,34&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend1.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;height 8cm&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend2.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;width 8cm&amp;lt;br/&amp;gt;&amp;amp;nbsp;vertical no&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the vector maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlegend [text] : Optional the title or head of the legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; title : Block ''font'' for title of legend.&lt;br /&gt;
&lt;br /&gt;
; font : Block font for normal text of legend.&lt;br /&gt;
&lt;br /&gt;
; frame : &lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]) : Distribution of the items in ''number.1'' cols. Optionaly, ''number.2'' of span between columns.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Symbol width.&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Space between lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlegend: sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_output_vlegend0.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: ps.map]]&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12053</id>
		<title>Ps.output</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12053"/>
		<updated>2010-11-06T10:49:53Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: /* vareas */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ps.out''' try to update the standard postscript output of Grass adding new features to design borders, graticules, categorized legends, etc&lt;br /&gt;
&lt;br /&gt;
'''This is in progress and not all features are yet uploaded in ''addons''. '''&lt;br /&gt;
&lt;br /&gt;
== Command line flags ==&lt;br /&gt;
&lt;br /&gt;
'''-d ''': Draw a 1x1 cm grid on paper to help the placement of the elements of the map.&lt;br /&gt;
&lt;br /&gt;
'''-e''': Make an output file without the postscript header. Useful when is embebed into other ''ps.out'' map.&lt;br /&gt;
&lt;br /&gt;
'''-g''': Use the extended PostScript of Ghostscript (for transparent colors only)&lt;br /&gt;
&lt;br /&gt;
'''-s''': Draw the small digit in the coordinate numbers to lower instead upper possition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;100px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_grid.png|A4 paper with flag -d &lt;br /&gt;
File:ps_out_digit_upper.png|coordinate&lt;br /&gt;
File:ps_out_digit_lower.png|coordinate with flag -s&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generic Instructions ==&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== dimen ====&lt;br /&gt;
&lt;br /&gt;
Define a dimension. Accepted units are:&lt;br /&gt;
&lt;br /&gt;
*; ''unitless'' : e.g. 123. The dimension is the ''number'' by 1/72&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
*; inch : e.g. 1.2inch. &lt;br /&gt;
&lt;br /&gt;
*; milimeters : e.g. 2.3mm.&lt;br /&gt;
&lt;br /&gt;
*; centimeters : e.g. 1.4cm.&lt;br /&gt;
&lt;br /&gt;
*; percentage : e.g. 50%.&amp;lt;br&amp;gt;The position is relative to the size and position of the map in the paper being ''0%'' the left or bottom corner.&lt;br /&gt;
&lt;br /&gt;
==== color ====&lt;br /&gt;
&lt;br /&gt;
Define a color. Accepted formats are:&lt;br /&gt;
&lt;br /&gt;
*; standard GRASS name : e.g. indigo.&lt;br /&gt;
&lt;br /&gt;
*; R&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;G&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;B : e.g. 200:123:90&lt;br /&gt;
&lt;br /&gt;
*; user name : e.g. red5.&amp;lt;br&amp;gt;Defined in ''palette'' block&lt;br /&gt;
&lt;br /&gt;
All formats can add '$(0-1)' to define the opacity of the color (alpha channel); e.g., indigo$.75 or 200:120:120$.2&lt;br /&gt;
&lt;br /&gt;
==== number ====&lt;br /&gt;
&lt;br /&gt;
==== text ====&lt;br /&gt;
&lt;br /&gt;
=== Blocks of instructions ===&lt;br /&gt;
&lt;br /&gt;
A ''block'' begin with the keywords and finish with keyword ''end''&lt;br /&gt;
&lt;br /&gt;
==== font ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a font.&lt;br /&gt;
&lt;br /&gt;
; name (text) : Name of font.&lt;br /&gt;
&lt;br /&gt;
; size (dimen) : Size of font.&lt;br /&gt;
&lt;br /&gt;
; extend (dimen): Expand the width of font.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of font.&lt;br /&gt;
&lt;br /&gt;
; outline yes|no : Outline of the font.&lt;br /&gt;
&lt;br /&gt;
==== line ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a line.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of line.&lt;br /&gt;
&lt;br /&gt;
; color (color) : COlor of line.&lt;br /&gt;
&lt;br /&gt;
; style solid|dashed|dotted|dashdotted|(n1n2...) : Style of line.&lt;br /&gt;
&lt;br /&gt;
; cap butt|round|extended_butt : Cap&lt;br /&gt;
&lt;br /&gt;
==== frame ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a frame.&lt;br /&gt;
&lt;br /&gt;
; where (dimen.1 dimen.2) : Position of frame.&lt;br /&gt;
&lt;br /&gt;
; offset (number.1 number.2) : Fine x and y adjust of the position of frame.&lt;br /&gt;
&lt;br /&gt;
; ref right|left|center upper|lower|center : Position is relative to the ''ref''.&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border line&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of the border line.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the frame.&lt;br /&gt;
&lt;br /&gt;
; rotate (dimen) : &amp;lt;u&amp;gt;todo&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== legend ====&lt;br /&gt;
&lt;br /&gt;
; lpos (number): Position in legend&amp;lt;br&amp;gt;Codes: -1, no show in legend; 0 automatic position; &amp;gt; 0 horizontal position.&lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]): Organize legend in ''number.1'' cols with a optional span of ''number.2''&lt;br /&gt;
&lt;br /&gt;
; interline (dimen): Set partial legend interline&lt;br /&gt;
&lt;br /&gt;
== Map paper ==&lt;br /&gt;
&lt;br /&gt;
=== paper ===&lt;br /&gt;
&lt;br /&gt;
Size of paper. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; paper [A0-6|B0-6|Legal|Ledger|Tabloid|Executive|Folio] : Type of paper (default A4).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; color (color) : Paper color.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Custom size of paper.&lt;br /&gt;
&lt;br /&gt;
; left (dimen), right (dimen), top (dimen), bottom (dimen) : Custom margins (default 0.5&amp;quot; left and right, and 1&amp;quot; top and bottom).&lt;br /&gt;
&lt;br /&gt;
; landscape yes|no : Paper orientation (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''. Set the default font of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''. Free draw as watermarks, before any feature of the map is drawn (see ''draw'').&lt;br /&gt;
&lt;br /&gt;
=== scale ===&lt;br /&gt;
&lt;br /&gt;
Scale of the map.&lt;br /&gt;
&lt;br /&gt;
Simple line command to define the scale of the map. The default is adjust map to the paper dimensions. If the remaining dimensions of the paper not permit the scale, ''ps.out'' adjust the scale to a new value that it fit in the paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scale 1&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;(number) : Scale of map.&amp;lt;br&amp;gt;For example, ''scale 1:500000'' to rescale maparea dimensions.&lt;br /&gt;
&lt;br /&gt;
=== maparea ===&lt;br /&gt;
Define specific dimensions of the map (default defined by command ''scale'')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; maparea : Define characteristics of the map area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border map.&amp;lt;br&amp;gt;Usefull with ''in'' and ''out'' formats of the ''grid'' and ''geogrid'', ignored in ''iho'' and ''can'' formats.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Border color-&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the map area.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Dimensions of the map.&lt;br /&gt;
&lt;br /&gt;
; top (dimen), bottom (dimen) : Position of the top-left corner of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''.&amp;lt;br&amp;gt;Draw onto the map but before the grid lines, vpoints and vlabels are drawn; i.e. this map elements are drawn over the draw elements.&lt;br /&gt;
&lt;br /&gt;
=== palette ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;testing&amp;lt;/U&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; palette&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; wheel (number text) :&lt;br /&gt;
&lt;br /&gt;
; monochrome (color number text) :&lt;br /&gt;
&lt;br /&gt;
; complementary (color number text) :&lt;br /&gt;
&lt;br /&gt;
; analogous (color number text) :&lt;br /&gt;
&lt;br /&gt;
; gradient (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; diverging (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
== Common elements ==&lt;br /&gt;
&lt;br /&gt;
=== grid and geogrid ===&lt;br /&gt;
&lt;br /&gt;
Draw a border around the map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; grid|geogrid :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; format in|out|+out|can|iho : Type of border (see examples).&lt;br /&gt;
&lt;br /&gt;
; major (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; minor (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; subminor (number) : ''number'' of subdivisons of the minor divisions.&lt;br /&gt;
&lt;br /&gt;
; trim (number) : Cut trailing zeros.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Color of the border.&lt;br /&gt;
&lt;br /&gt;
; cross (number) : Replace lines by cross&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_iho.png|format iho&lt;br /&gt;
File:ps_out_can.png|format can&lt;br /&gt;
File:ps_out_in.png |format in&lt;br /&gt;
File:ps_out_out.png|format +out&lt;br /&gt;
File:ps_out_out1.png|typical map border&lt;br /&gt;
File:ps_out_out2.png|typical map border with ''subminor 5'' and ''fcolor blue''&lt;br /&gt;
File:ps_out_out3.png|''cross 500'', ''fcolor indigo'', ''color 200:200:200'' in '''maparea'''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== scalebar ===&lt;br /&gt;
&lt;br /&gt;
Set a scalebar on the map.&amp;lt;br&amp;gt;Maximun 5 scalebars in each map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scalebar I|s|S|f|F : Define the type of scalebar (I: inner, s/S: simple, f/F: fill).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; length (number) : Length of the scale.&lt;br /&gt;
&lt;br /&gt;
; units meters|m|kilometers|km|feet|ft|miles|mil|nautical_miles|nm ([text]) : Unit of the length and ''text' to label the units.&lt;br /&gt;
&lt;br /&gt;
; major (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; minor (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor.&lt;br /&gt;
&lt;br /&gt;
; height (dimen) : Height of the bar or ticks.&lt;br /&gt;
&lt;br /&gt;
; zero yes|no : Set position relative to zero value of the scalebar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Scalerbar styles&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;50px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_scalebar_s.png|scalebar s&lt;br /&gt;
File:ps_out_scalebar_S.png|scalebar S&lt;br /&gt;
File:ps_out_scalebar_I.png|scalebar I (uppercase i)&lt;br /&gt;
File:ps_out_scalebar_f.png|scalebar f&lt;br /&gt;
File:ps_out_scalebar_F.png|scalebar F&lt;br /&gt;
File:ps_out_scalebar_3.png|Multiple scalebars zero centered with ''zero yes''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== note ===&lt;br /&gt;
Write special text or free text on any place of the paper with frame (also ''draw'' permit write free-text in paper). &lt;br /&gt;
&lt;br /&gt;
Maximun 20 notes by map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; note &amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;file|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;maplimits|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;dimen|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;scale (text)|(text) : Type of note and text to show.&amp;lt;br&amp;gt;When free text, use '|' to break lines and '.' as first character to center line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; text (text) : Another roption to enter the same as inline note text;&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of note.&lt;br /&gt;
&lt;br /&gt;
; angle (number) : ''number'' of degrees to rotate (do not work fine).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Note keywords and free text&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_note_ml.png  |note :maplimits&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_dimen.png|note :dimen&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scale.png|note :scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_free.png|note free text|in multiple lines&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_freec.png|note .free text|.in multiple [...]&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scaler.png|note :scale scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br&amp;gt;&amp;amp;nbsp;angle 90&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== draw ===&lt;br /&gt;
&lt;br /&gt;
Simple script language to draw predefined postscript code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; draw [none|paper|maparea|free] :  &lt;br /&gt;
''paper'': before any map feature is drawn (equivalent to place inside ''paper'' block); &amp;lt;br&amp;gt;&lt;br /&gt;
''maparea'' before the last elements of the map (equivalent to place inside ''mapare'' block) ; &amp;lt;br&amp;gt;&lt;br /&gt;
''none'': draw over all elements of the map but only in the map area; and &amp;lt;br&amp;gt;&lt;br /&gt;
''free'': after all map features are drawn in any place of the paper; and ''none''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; --- : &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_north1.png   |&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;north 700000 4700000&amp;lt;/source&amp;gt;&lt;br /&gt;
File:ps_out_north2.png   |north 5cm 16.5cm -&lt;br /&gt;
File:ps_out_maplimits.png|maplimits&lt;br /&gt;
File:ps_out_compass.png  |compass 700000 4700000 10000 10.2345&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Raster maps ==&lt;br /&gt;
&lt;br /&gt;
=== raster ===&lt;br /&gt;
&lt;br /&gt;
Draw one or two raster maps on the maparea. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; raster (raster|raster.1 raster.2|raster.R raster.G raster.B|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;group) : The ''raster'' value is the raster mapname, two raster maps ''raster.1'' or color and ''raster.2'' or shade to draw as relief map, three maps ''raster.R'', ''raster.G'' and ''raster.B'' to draw as RGB, or a groupname (leader by ':') with tree RGB maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; grey yes|no : Store and draw the rasters in grey scale (small size of file).&amp;lt;br&amp;gt;The conversion follows the NTSC video standard.&lt;br /&gt;
&lt;br /&gt;
; maskcell (raster.1 [raster.2]) : Set the ''raster.1'' map to use as mask (independent of the mask set in GRASS with [[r.mask]]) and, optionally, the ''raster.2'' map uses as background.&amp;lt;br&amp;gt;The background ''raster.2'' is painted in grey scale (NTSC) and tinted with ''maskcolor''.&lt;br /&gt;
&lt;br /&gt;
; maskcolor (color|none) : Set the ''color'' of the mask area.&amp;lt;br&amp;gt;If a raster map as background is set then it's drawn with a scale white-maskcolor.&lt;br /&gt;
&lt;br /&gt;
; outline : Block ''line''. Outline of categories.&lt;br /&gt;
&lt;br /&gt;
; setcolor null|default|(number) (color) : Replace the color of the cat ''number'' area with a new color.&amp;lt;br&amp;gt;Multiple ''setcolor'' are possibles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_raster1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_outline.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;outline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width .2mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;end&amp;lt;br/&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_setcolor.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor white&amp;lt;br&amp;gt;&amp;amp;nbsp;setcolor 37 magenta&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_grey.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;grey yes&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Vector maps ==&lt;br /&gt;
&lt;br /&gt;
All vector map accept optionally the following commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; layer (number) : Layer number used with cats/where option.&lt;br /&gt;
&lt;br /&gt;
; cats (n1,n2,...) : List of ''cat''s to show.&lt;br /&gt;
&lt;br /&gt;
; where (text) : Argument of the SQL where clausule to filter the areas to show.&lt;br /&gt;
&lt;br /&gt;
; masked yes|no : Masked or not by raster mask (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; label (text) : For description or title in ''vlegend''.&lt;br /&gt;
&lt;br /&gt;
; legend [(number)]: Position in legend (-1, no legend) or enter in a block ''legend''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vareas ===&lt;br /&gt;
&lt;br /&gt;
Draw areas on the map.&amp;lt;br&amp;gt;&lt;br /&gt;
The areas always are drawn first, on the bottom of other type of maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vareas (vector) : ''vector'' is a vector of areas, except when ''lwidth'' is different to zero that ''vector'' is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type area|line : Default ''area''.&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Style of the boundary.&lt;br /&gt;
&lt;br /&gt;
; fill : Block ''fill''. Style of the area.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic fill color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Text label when default conditions.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color][|dimen] text) : Make a item of a sublegend with label the ''text'' and title the text of the ''label''.&amp;lt;br&amp;gt;The fillcolor of the areas is set to ''color'' and the line width is set to ''dimen'' when ''column.2'' &amp;gt;= n1 and ''column.2'' &amp;lt; n2  (''column.2'' from ''rgbcol'').&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; island yes|no : Draw island as normal areas (fill as normal area then hide it).&lt;br /&gt;
&lt;br /&gt;
; mirror (dimen [number]) : The line is drawn as an area with a copy of the line placed with polar coordinates: ''dimen' and ''angle''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vareas: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vareas0.png|&amp;amp;nbsp;vareas geology&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;where GEO_NAME like 'Zb'&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;fcolor indigo&amp;lt;br&amp;gt;&amp;amp;nbsp;end&lt;br /&gt;
File:ps_out_vareas3.png|''with ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;pat ../patterns/diag_up.eps&amp;lt;br&amp;gt;&amp;amp;nbsp;pscale .5&lt;br /&gt;
File:ps_out_vareas1.png|''with ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;fcolor none cat&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 0-500:red A&amp;lt;br/&amp;gt;&amp;amp;nbsp;setrule 500-1000:green B&amp;lt;br/&amp;gt;&amp;amp;nbsp;setrule 1000-5000:blue C&lt;br /&gt;
File:ps_out_vareas2.png|''with ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;island no&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlines ===&lt;br /&gt;
&lt;br /&gt;
Draw lines on the map.&amp;lt;br&amp;gt;The areas always are drawn second, after ''vareas'' and before ''vpoints''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlines (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of lines, except if ''type'' is boundary that ''vector'' is a vector of areas.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Optional commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type line|boundary : Draw boundaries of a vector of areas or lines of a vector of lines (default ''line'').&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Normal line.&lt;br /&gt;
&lt;br /&gt;
; hline : Block ''line''. Highlight line.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Works with ''hline'' to offset from the center of ''line''.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic line color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Label in legend when default values and ''setcolor'' rules.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with ''text'' as label and title the text of the ''label''. Also, the color of the normal line with column &amp;gt;= n1 and column &amp;lt; n2 (column from rgbcol), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlines: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlines0.png|''Effect of the ''hline'' block ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;hline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width 1mm&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color red&amp;lt;br&amp;gt;&amp;amp;nbsp;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vpoints ===&lt;br /&gt;
&lt;br /&gt;
Draw points on the map.&amp;lt;br&amp;gt;The points always are drawn last, after ''vareas'' and ''vlines''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vpoints (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of points, except when '''type''' is ''centroid'' or ''boundary'' that it is a vector of areas, or when '''type''' is ''line'' that it is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; type centroid|line|boundary|point : Type of draw (default ''point'').&lt;br /&gt;
&lt;br /&gt;
; symbol (epsfile) : Symbol to use (default: basic/circle).&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Type of line in the symbol.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color): Static fillcolor of the symbol.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Offset of the symbol.&lt;br /&gt;
&lt;br /&gt;
; rotate (number|column) : Angle to rotate the symbol, static ''number'' or dynamic in a ''column'' of the database.&lt;br /&gt;
&lt;br /&gt;
; size (number|column [number]) : Size of the symbol take from ''number'' or from a ''column'' of the database. In the last option, there is a optional ''number'' to define the static size of the symbol in the legend when the size of symbols are dynamic. &lt;br /&gt;
&lt;br /&gt;
; scale (dimen.1 [dimen.2]) : Rescale the size of the symbol by the ''dimen.1'' and, optionally, add a ''dimen.2''. i.e., ''resize = dimen.1 * size + dimen.2''.&lt;br /&gt;
&lt;br /&gt;
; setsize (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;size] text) : Variable size of symbols from data in ''column'' of database set in ''size''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands when type is line&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; dist (dimen) : Define the distance in paper between symbol over the line.&lt;br /&gt;
&lt;br /&gt;
; cline : Block ''line''. Type of line that connect symbols.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vpoints: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vpoints0.png|''Points with same size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size 5&lt;br /&gt;
File:ps_out_vpoints1.png|''Points with dynamic size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT 5&amp;lt;br&amp;gt;&amp;amp;nbsp;scale 0.01 2&lt;br /&gt;
File:ps_out_vpoints2.png|''Points with conditional size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 200-1000:3 &amp;lt; 1000&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 1000-2500:9 &amp;gt; 1000&lt;br /&gt;
File:ps_out_vpoints3.png|''Points on line ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;type line&amp;lt;br&amp;gt;&amp;amp;nbsp;dist 1cm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlabels ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;in progress&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlabels none|(vector) :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; font :&lt;br /&gt;
&lt;br /&gt;
; labelcol (column) :&lt;br /&gt;
&lt;br /&gt;
; decimals (number) :&lt;br /&gt;
&lt;br /&gt;
; circled yes|no :&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2 text)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlabels0.png|vpoints firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;[...]&amp;lt;br/n&amp;gt;end&amp;lt;br/&amp;gt;vlabels firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;labelcol PUMPERS&amp;lt;br/n&amp;gt;&amp;amp;nbsp;font&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;name Univers-Bold&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;size 10&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color yellow&amp;lt;br/n&amp;gt;&amp;amp;nbsp;end&amp;lt;br/n&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Legend of the maps ==&lt;br /&gt;
&lt;br /&gt;
=== rlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the raster map.&amp;lt;br&amp;gt;The units ''meters'' in the gradient legend is set with [[r.support]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; rlegend [text] : Text is the title of the legend. &lt;br /&gt;
&lt;br /&gt;
; raster (raster) : the ''raster'' map to take the data of legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commads are optionals&amp;lt;/U&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; titlefont : Block ''font'' for the legend header.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font'' for the normal text.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Width of the symbol area.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For category legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; cols (number) [(number)] : Number of columns with symbols and separation between columns (default ''1'').&lt;br /&gt;
&lt;br /&gt;
; nodata yes|no : Remove category ''no data''.&lt;br /&gt;
&lt;br /&gt;
; order (n1,n2,...) : To reorder items.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For gradient legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; height (dimen), width (dimen) : Dimension of the frame with the legend.&lt;br /&gt;
&lt;br /&gt;
; vertical yes|no : Orientation of the gradient legend (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; range (n1 n2) : Manual set of the data range for legend.&lt;br /&gt;
&lt;br /&gt;
; gradient yes|no : Forze draw gradient legend with category data.&lt;br /&gt;
&lt;br /&gt;
; tick (dimen) : Length of the ticks.&lt;br /&gt;
&lt;br /&gt;
; whiteframe (dimen) : Width of the white frame around the bar color.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;250px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_rlegend.png|rlegend Zip Codes (wake)&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster zipcodes_wake&amp;lt;br/&amp;gt;&amp;amp;nbsp;cols 2 0&amp;lt;br/&amp;gt;&amp;amp;nbsp;swidth 8mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;order 20,10,30,22,34&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend1.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;height 8cm&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend2.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;width 8cm&amp;lt;br/&amp;gt;&amp;amp;nbsp;vertical no&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the vector maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlegend [text] : Optional the title or head of the legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; title : Block ''font'' for title of legend.&lt;br /&gt;
&lt;br /&gt;
; font : Block font for normal text of legend.&lt;br /&gt;
&lt;br /&gt;
; frame : &lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]) : Distribution of the items in ''number.1'' cols. Optionaly, ''number.2'' of span between columns.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Symbol width.&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Space between lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlegend: sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_output_vlegend0.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: ps.map]]&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12052</id>
		<title>Ps.output</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12052"/>
		<updated>2010-11-06T10:47:38Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: /* raster */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ps.out''' try to update the standard postscript output of Grass adding new features to design borders, graticules, categorized legends, etc&lt;br /&gt;
&lt;br /&gt;
'''This is in progress and not all features are yet uploaded in ''addons''. '''&lt;br /&gt;
&lt;br /&gt;
== Command line flags ==&lt;br /&gt;
&lt;br /&gt;
'''-d ''': Draw a 1x1 cm grid on paper to help the placement of the elements of the map.&lt;br /&gt;
&lt;br /&gt;
'''-e''': Make an output file without the postscript header. Useful when is embebed into other ''ps.out'' map.&lt;br /&gt;
&lt;br /&gt;
'''-g''': Use the extended PostScript of Ghostscript (for transparent colors only)&lt;br /&gt;
&lt;br /&gt;
'''-s''': Draw the small digit in the coordinate numbers to lower instead upper possition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;100px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_grid.png|A4 paper with flag -d &lt;br /&gt;
File:ps_out_digit_upper.png|coordinate&lt;br /&gt;
File:ps_out_digit_lower.png|coordinate with flag -s&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generic Instructions ==&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== dimen ====&lt;br /&gt;
&lt;br /&gt;
Define a dimension. Accepted units are:&lt;br /&gt;
&lt;br /&gt;
*; ''unitless'' : e.g. 123. The dimension is the ''number'' by 1/72&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
*; inch : e.g. 1.2inch. &lt;br /&gt;
&lt;br /&gt;
*; milimeters : e.g. 2.3mm.&lt;br /&gt;
&lt;br /&gt;
*; centimeters : e.g. 1.4cm.&lt;br /&gt;
&lt;br /&gt;
*; percentage : e.g. 50%.&amp;lt;br&amp;gt;The position is relative to the size and position of the map in the paper being ''0%'' the left or bottom corner.&lt;br /&gt;
&lt;br /&gt;
==== color ====&lt;br /&gt;
&lt;br /&gt;
Define a color. Accepted formats are:&lt;br /&gt;
&lt;br /&gt;
*; standard GRASS name : e.g. indigo.&lt;br /&gt;
&lt;br /&gt;
*; R&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;G&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;B : e.g. 200:123:90&lt;br /&gt;
&lt;br /&gt;
*; user name : e.g. red5.&amp;lt;br&amp;gt;Defined in ''palette'' block&lt;br /&gt;
&lt;br /&gt;
All formats can add '$(0-1)' to define the opacity of the color (alpha channel); e.g., indigo$.75 or 200:120:120$.2&lt;br /&gt;
&lt;br /&gt;
==== number ====&lt;br /&gt;
&lt;br /&gt;
==== text ====&lt;br /&gt;
&lt;br /&gt;
=== Blocks of instructions ===&lt;br /&gt;
&lt;br /&gt;
A ''block'' begin with the keywords and finish with keyword ''end''&lt;br /&gt;
&lt;br /&gt;
==== font ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a font.&lt;br /&gt;
&lt;br /&gt;
; name (text) : Name of font.&lt;br /&gt;
&lt;br /&gt;
; size (dimen) : Size of font.&lt;br /&gt;
&lt;br /&gt;
; extend (dimen): Expand the width of font.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of font.&lt;br /&gt;
&lt;br /&gt;
; outline yes|no : Outline of the font.&lt;br /&gt;
&lt;br /&gt;
==== line ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a line.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of line.&lt;br /&gt;
&lt;br /&gt;
; color (color) : COlor of line.&lt;br /&gt;
&lt;br /&gt;
; style solid|dashed|dotted|dashdotted|(n1n2...) : Style of line.&lt;br /&gt;
&lt;br /&gt;
; cap butt|round|extended_butt : Cap&lt;br /&gt;
&lt;br /&gt;
==== frame ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a frame.&lt;br /&gt;
&lt;br /&gt;
; where (dimen.1 dimen.2) : Position of frame.&lt;br /&gt;
&lt;br /&gt;
; offset (number.1 number.2) : Fine x and y adjust of the position of frame.&lt;br /&gt;
&lt;br /&gt;
; ref right|left|center upper|lower|center : Position is relative to the ''ref''.&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border line&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of the border line.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the frame.&lt;br /&gt;
&lt;br /&gt;
; rotate (dimen) : &amp;lt;u&amp;gt;todo&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== legend ====&lt;br /&gt;
&lt;br /&gt;
; lpos (number): Position in legend&amp;lt;br&amp;gt;Codes: -1, no show in legend; 0 automatic position; &amp;gt; 0 horizontal position.&lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]): Organize legend in ''number.1'' cols with a optional span of ''number.2''&lt;br /&gt;
&lt;br /&gt;
; interline (dimen): Set partial legend interline&lt;br /&gt;
&lt;br /&gt;
== Map paper ==&lt;br /&gt;
&lt;br /&gt;
=== paper ===&lt;br /&gt;
&lt;br /&gt;
Size of paper. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; paper [A0-6|B0-6|Legal|Ledger|Tabloid|Executive|Folio] : Type of paper (default A4).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; color (color) : Paper color.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Custom size of paper.&lt;br /&gt;
&lt;br /&gt;
; left (dimen), right (dimen), top (dimen), bottom (dimen) : Custom margins (default 0.5&amp;quot; left and right, and 1&amp;quot; top and bottom).&lt;br /&gt;
&lt;br /&gt;
; landscape yes|no : Paper orientation (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''. Set the default font of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''. Free draw as watermarks, before any feature of the map is drawn (see ''draw'').&lt;br /&gt;
&lt;br /&gt;
=== scale ===&lt;br /&gt;
&lt;br /&gt;
Scale of the map.&lt;br /&gt;
&lt;br /&gt;
Simple line command to define the scale of the map. The default is adjust map to the paper dimensions. If the remaining dimensions of the paper not permit the scale, ''ps.out'' adjust the scale to a new value that it fit in the paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scale 1&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;(number) : Scale of map.&amp;lt;br&amp;gt;For example, ''scale 1:500000'' to rescale maparea dimensions.&lt;br /&gt;
&lt;br /&gt;
=== maparea ===&lt;br /&gt;
Define specific dimensions of the map (default defined by command ''scale'')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; maparea : Define characteristics of the map area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border map.&amp;lt;br&amp;gt;Usefull with ''in'' and ''out'' formats of the ''grid'' and ''geogrid'', ignored in ''iho'' and ''can'' formats.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Border color-&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the map area.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Dimensions of the map.&lt;br /&gt;
&lt;br /&gt;
; top (dimen), bottom (dimen) : Position of the top-left corner of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''.&amp;lt;br&amp;gt;Draw onto the map but before the grid lines, vpoints and vlabels are drawn; i.e. this map elements are drawn over the draw elements.&lt;br /&gt;
&lt;br /&gt;
=== palette ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;testing&amp;lt;/U&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; palette&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; wheel (number text) :&lt;br /&gt;
&lt;br /&gt;
; monochrome (color number text) :&lt;br /&gt;
&lt;br /&gt;
; complementary (color number text) :&lt;br /&gt;
&lt;br /&gt;
; analogous (color number text) :&lt;br /&gt;
&lt;br /&gt;
; gradient (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; diverging (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
== Common elements ==&lt;br /&gt;
&lt;br /&gt;
=== grid and geogrid ===&lt;br /&gt;
&lt;br /&gt;
Draw a border around the map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; grid|geogrid :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; format in|out|+out|can|iho : Type of border (see examples).&lt;br /&gt;
&lt;br /&gt;
; major (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; minor (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; subminor (number) : ''number'' of subdivisons of the minor divisions.&lt;br /&gt;
&lt;br /&gt;
; trim (number) : Cut trailing zeros.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Color of the border.&lt;br /&gt;
&lt;br /&gt;
; cross (number) : Replace lines by cross&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_iho.png|format iho&lt;br /&gt;
File:ps_out_can.png|format can&lt;br /&gt;
File:ps_out_in.png |format in&lt;br /&gt;
File:ps_out_out.png|format +out&lt;br /&gt;
File:ps_out_out1.png|typical map border&lt;br /&gt;
File:ps_out_out2.png|typical map border with ''subminor 5'' and ''fcolor blue''&lt;br /&gt;
File:ps_out_out3.png|''cross 500'', ''fcolor indigo'', ''color 200:200:200'' in '''maparea'''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== scalebar ===&lt;br /&gt;
&lt;br /&gt;
Set a scalebar on the map.&amp;lt;br&amp;gt;Maximun 5 scalebars in each map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scalebar I|s|S|f|F : Define the type of scalebar (I: inner, s/S: simple, f/F: fill).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; length (number) : Length of the scale.&lt;br /&gt;
&lt;br /&gt;
; units meters|m|kilometers|km|feet|ft|miles|mil|nautical_miles|nm ([text]) : Unit of the length and ''text' to label the units.&lt;br /&gt;
&lt;br /&gt;
; major (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; minor (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor.&lt;br /&gt;
&lt;br /&gt;
; height (dimen) : Height of the bar or ticks.&lt;br /&gt;
&lt;br /&gt;
; zero yes|no : Set position relative to zero value of the scalebar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Scalerbar styles&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;50px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_scalebar_s.png|scalebar s&lt;br /&gt;
File:ps_out_scalebar_S.png|scalebar S&lt;br /&gt;
File:ps_out_scalebar_I.png|scalebar I (uppercase i)&lt;br /&gt;
File:ps_out_scalebar_f.png|scalebar f&lt;br /&gt;
File:ps_out_scalebar_F.png|scalebar F&lt;br /&gt;
File:ps_out_scalebar_3.png|Multiple scalebars zero centered with ''zero yes''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== note ===&lt;br /&gt;
Write special text or free text on any place of the paper with frame (also ''draw'' permit write free-text in paper). &lt;br /&gt;
&lt;br /&gt;
Maximun 20 notes by map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; note &amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;file|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;maplimits|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;dimen|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;scale (text)|(text) : Type of note and text to show.&amp;lt;br&amp;gt;When free text, use '|' to break lines and '.' as first character to center line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; text (text) : Another roption to enter the same as inline note text;&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of note.&lt;br /&gt;
&lt;br /&gt;
; angle (number) : ''number'' of degrees to rotate (do not work fine).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Note keywords and free text&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_note_ml.png  |note :maplimits&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_dimen.png|note :dimen&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scale.png|note :scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_free.png|note free text|in multiple lines&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_freec.png|note .free text|.in multiple [...]&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scaler.png|note :scale scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br&amp;gt;&amp;amp;nbsp;angle 90&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== draw ===&lt;br /&gt;
&lt;br /&gt;
Simple script language to draw predefined postscript code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; draw [none|paper|maparea|free] :  &lt;br /&gt;
''paper'': before any map feature is drawn (equivalent to place inside ''paper'' block); &amp;lt;br&amp;gt;&lt;br /&gt;
''maparea'' before the last elements of the map (equivalent to place inside ''mapare'' block) ; &amp;lt;br&amp;gt;&lt;br /&gt;
''none'': draw over all elements of the map but only in the map area; and &amp;lt;br&amp;gt;&lt;br /&gt;
''free'': after all map features are drawn in any place of the paper; and ''none''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; --- : &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_north1.png   |&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;north 700000 4700000&amp;lt;/source&amp;gt;&lt;br /&gt;
File:ps_out_north2.png   |north 5cm 16.5cm -&lt;br /&gt;
File:ps_out_maplimits.png|maplimits&lt;br /&gt;
File:ps_out_compass.png  |compass 700000 4700000 10000 10.2345&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Raster maps ==&lt;br /&gt;
&lt;br /&gt;
=== raster ===&lt;br /&gt;
&lt;br /&gt;
Draw one or two raster maps on the maparea. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; raster (raster|raster.1 raster.2|raster.R raster.G raster.B|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;group) : The ''raster'' value is the raster mapname, two raster maps ''raster.1'' or color and ''raster.2'' or shade to draw as relief map, three maps ''raster.R'', ''raster.G'' and ''raster.B'' to draw as RGB, or a groupname (leader by ':') with tree RGB maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; grey yes|no : Store and draw the rasters in grey scale (small size of file).&amp;lt;br&amp;gt;The conversion follows the NTSC video standard.&lt;br /&gt;
&lt;br /&gt;
; maskcell (raster.1 [raster.2]) : Set the ''raster.1'' map to use as mask (independent of the mask set in GRASS with [[r.mask]]) and, optionally, the ''raster.2'' map uses as background.&amp;lt;br&amp;gt;The background ''raster.2'' is painted in grey scale (NTSC) and tinted with ''maskcolor''.&lt;br /&gt;
&lt;br /&gt;
; maskcolor (color|none) : Set the ''color'' of the mask area.&amp;lt;br&amp;gt;If a raster map as background is set then it's drawn with a scale white-maskcolor.&lt;br /&gt;
&lt;br /&gt;
; outline : Block ''line''. Outline of categories.&lt;br /&gt;
&lt;br /&gt;
; setcolor null|default|(number) (color) : Replace the color of the cat ''number'' area with a new color.&amp;lt;br&amp;gt;Multiple ''setcolor'' are possibles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_raster1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_outline.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;outline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width .2mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;end&amp;lt;br/&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_setcolor.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor white&amp;lt;br&amp;gt;&amp;amp;nbsp;setcolor 37 magenta&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_grey.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;grey yes&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Vector maps ==&lt;br /&gt;
&lt;br /&gt;
All vector map accept optionally the following commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; layer (number) : Layer number used with cats/where option.&lt;br /&gt;
&lt;br /&gt;
; cats (n1,n2,...) : List of ''cat''s to show.&lt;br /&gt;
&lt;br /&gt;
; where (text) : Argument of the SQL where clausule to filter the areas to show.&lt;br /&gt;
&lt;br /&gt;
; masked yes|no : Masked or not by raster mask (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; label (text) : For description or title in ''vlegend''.&lt;br /&gt;
&lt;br /&gt;
; legend [(number)]: Position in legend (-1, no legend) or enter in a block ''legend''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vareas ===&lt;br /&gt;
&lt;br /&gt;
Draw areas on the map.&amp;lt;br&amp;gt;&lt;br /&gt;
The areas always are drawn first, on the bottom of other type of maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vareas (vector) : ''vector'' is a vector of areas, except when ''lwidth'' is different to zero that ''vector'' is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type area|line : Default ''area''.&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Style of the boundary.&lt;br /&gt;
&lt;br /&gt;
; fill : Block ''fill''. Style of the area.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic fill color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Text label when default conditions.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with label the ''text'' and title the text of the ''label''. Also, the fillcolor of the areas of the map with ''column'' &amp;gt;= n1 and ''column'' &amp;lt; n2  (''column'' from ''fcolor''), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; island yes|no : Draw island as normal areas (fill as normal area then hide it).&lt;br /&gt;
&lt;br /&gt;
; mirror (dimen [number]) : The line is drawn as an area with a copy of the line placed with polar coordinates: ''dimen' and ''angle''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vareas: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vareas0.png|&amp;amp;nbsp;vareas geology&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;where GEO_NAME like 'Zb'&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;fcolor indigo&amp;lt;br&amp;gt;&amp;amp;nbsp;end&lt;br /&gt;
File:ps_out_vareas3.png|''with ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;pat ../patterns/diag_up.eps&amp;lt;br&amp;gt;&amp;amp;nbsp;pscale .5&lt;br /&gt;
File:ps_out_vareas1.png|''with ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;fcolor none cat&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 0-500:red A&amp;lt;br/&amp;gt;&amp;amp;nbsp;setrule 500-1000:green B&amp;lt;br/&amp;gt;&amp;amp;nbsp;setrule 1000-5000:blue C&lt;br /&gt;
File:ps_out_vareas2.png|''with ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;island no&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlines ===&lt;br /&gt;
&lt;br /&gt;
Draw lines on the map.&amp;lt;br&amp;gt;The areas always are drawn second, after ''vareas'' and before ''vpoints''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlines (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of lines, except if ''type'' is boundary that ''vector'' is a vector of areas.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Optional commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type line|boundary : Draw boundaries of a vector of areas or lines of a vector of lines (default ''line'').&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Normal line.&lt;br /&gt;
&lt;br /&gt;
; hline : Block ''line''. Highlight line.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Works with ''hline'' to offset from the center of ''line''.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic line color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Label in legend when default values and ''setcolor'' rules.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with ''text'' as label and title the text of the ''label''. Also, the color of the normal line with column &amp;gt;= n1 and column &amp;lt; n2 (column from rgbcol), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlines: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlines0.png|''Effect of the ''hline'' block ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;hline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width 1mm&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color red&amp;lt;br&amp;gt;&amp;amp;nbsp;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vpoints ===&lt;br /&gt;
&lt;br /&gt;
Draw points on the map.&amp;lt;br&amp;gt;The points always are drawn last, after ''vareas'' and ''vlines''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vpoints (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of points, except when '''type''' is ''centroid'' or ''boundary'' that it is a vector of areas, or when '''type''' is ''line'' that it is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; type centroid|line|boundary|point : Type of draw (default ''point'').&lt;br /&gt;
&lt;br /&gt;
; symbol (epsfile) : Symbol to use (default: basic/circle).&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Type of line in the symbol.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color): Static fillcolor of the symbol.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Offset of the symbol.&lt;br /&gt;
&lt;br /&gt;
; rotate (number|column) : Angle to rotate the symbol, static ''number'' or dynamic in a ''column'' of the database.&lt;br /&gt;
&lt;br /&gt;
; size (number|column [number]) : Size of the symbol take from ''number'' or from a ''column'' of the database. In the last option, there is a optional ''number'' to define the static size of the symbol in the legend when the size of symbols are dynamic. &lt;br /&gt;
&lt;br /&gt;
; scale (dimen.1 [dimen.2]) : Rescale the size of the symbol by the ''dimen.1'' and, optionally, add a ''dimen.2''. i.e., ''resize = dimen.1 * size + dimen.2''.&lt;br /&gt;
&lt;br /&gt;
; setsize (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;size] text) : Variable size of symbols from data in ''column'' of database set in ''size''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands when type is line&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; dist (dimen) : Define the distance in paper between symbol over the line.&lt;br /&gt;
&lt;br /&gt;
; cline : Block ''line''. Type of line that connect symbols.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vpoints: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vpoints0.png|''Points with same size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size 5&lt;br /&gt;
File:ps_out_vpoints1.png|''Points with dynamic size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT 5&amp;lt;br&amp;gt;&amp;amp;nbsp;scale 0.01 2&lt;br /&gt;
File:ps_out_vpoints2.png|''Points with conditional size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 200-1000:3 &amp;lt; 1000&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 1000-2500:9 &amp;gt; 1000&lt;br /&gt;
File:ps_out_vpoints3.png|''Points on line ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;type line&amp;lt;br&amp;gt;&amp;amp;nbsp;dist 1cm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlabels ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;in progress&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlabels none|(vector) :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; font :&lt;br /&gt;
&lt;br /&gt;
; labelcol (column) :&lt;br /&gt;
&lt;br /&gt;
; decimals (number) :&lt;br /&gt;
&lt;br /&gt;
; circled yes|no :&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2 text)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlabels0.png|vpoints firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;[...]&amp;lt;br/n&amp;gt;end&amp;lt;br/&amp;gt;vlabels firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;labelcol PUMPERS&amp;lt;br/n&amp;gt;&amp;amp;nbsp;font&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;name Univers-Bold&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;size 10&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color yellow&amp;lt;br/n&amp;gt;&amp;amp;nbsp;end&amp;lt;br/n&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Legend of the maps ==&lt;br /&gt;
&lt;br /&gt;
=== rlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the raster map.&amp;lt;br&amp;gt;The units ''meters'' in the gradient legend is set with [[r.support]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; rlegend [text] : Text is the title of the legend. &lt;br /&gt;
&lt;br /&gt;
; raster (raster) : the ''raster'' map to take the data of legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commads are optionals&amp;lt;/U&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; titlefont : Block ''font'' for the legend header.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font'' for the normal text.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Width of the symbol area.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For category legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; cols (number) [(number)] : Number of columns with symbols and separation between columns (default ''1'').&lt;br /&gt;
&lt;br /&gt;
; nodata yes|no : Remove category ''no data''.&lt;br /&gt;
&lt;br /&gt;
; order (n1,n2,...) : To reorder items.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For gradient legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; height (dimen), width (dimen) : Dimension of the frame with the legend.&lt;br /&gt;
&lt;br /&gt;
; vertical yes|no : Orientation of the gradient legend (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; range (n1 n2) : Manual set of the data range for legend.&lt;br /&gt;
&lt;br /&gt;
; gradient yes|no : Forze draw gradient legend with category data.&lt;br /&gt;
&lt;br /&gt;
; tick (dimen) : Length of the ticks.&lt;br /&gt;
&lt;br /&gt;
; whiteframe (dimen) : Width of the white frame around the bar color.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;250px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_rlegend.png|rlegend Zip Codes (wake)&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster zipcodes_wake&amp;lt;br/&amp;gt;&amp;amp;nbsp;cols 2 0&amp;lt;br/&amp;gt;&amp;amp;nbsp;swidth 8mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;order 20,10,30,22,34&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend1.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;height 8cm&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend2.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;width 8cm&amp;lt;br/&amp;gt;&amp;amp;nbsp;vertical no&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the vector maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlegend [text] : Optional the title or head of the legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; title : Block ''font'' for title of legend.&lt;br /&gt;
&lt;br /&gt;
; font : Block font for normal text of legend.&lt;br /&gt;
&lt;br /&gt;
; frame : &lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]) : Distribution of the items in ''number.1'' cols. Optionaly, ''number.2'' of span between columns.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Symbol width.&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Space between lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlegend: sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_output_vlegend0.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: ps.map]]&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12045</id>
		<title>Ps.output</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12045"/>
		<updated>2010-11-01T19:37:30Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: /* vareas */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ps.out''' try to update the standard postscript output of Grass adding new features to design borders, graticules, categorized legends, etc&lt;br /&gt;
&lt;br /&gt;
'''This is in progress and not all features are yet uploaded in ''addons''. '''&lt;br /&gt;
&lt;br /&gt;
== Command line flags ==&lt;br /&gt;
&lt;br /&gt;
'''-d ''': Draw a 1x1 cm grid on paper to help the placement of the elements of the map.&lt;br /&gt;
&lt;br /&gt;
'''-e''': Make an output file without the postscript header. Useful when is embebed into other ''ps.out'' map.&lt;br /&gt;
&lt;br /&gt;
'''-g''': Use the extended PostScript of Ghostscript (for transparent colors only)&lt;br /&gt;
&lt;br /&gt;
'''-s''': Draw the small digit in the coordinate numbers to lower instead upper possition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;100px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_grid.png|A4 paper with flag -d &lt;br /&gt;
File:ps_out_digit_upper.png|coordinate&lt;br /&gt;
File:ps_out_digit_lower.png|coordinate with flag -s&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generic Instructions ==&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== dimen ====&lt;br /&gt;
&lt;br /&gt;
Define a dimension. Accepted units are:&lt;br /&gt;
&lt;br /&gt;
*; ''unitless'' : e.g. 123. The dimension is the ''number'' by 1/72&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
*; inch : e.g. 1.2inch. &lt;br /&gt;
&lt;br /&gt;
*; milimeters : e.g. 2.3mm.&lt;br /&gt;
&lt;br /&gt;
*; centimeters : e.g. 1.4cm.&lt;br /&gt;
&lt;br /&gt;
*; percentage : e.g. 50%.&amp;lt;br&amp;gt;The position is relative to the size and position of the map in the paper being ''0%'' the left or bottom corner.&lt;br /&gt;
&lt;br /&gt;
==== color ====&lt;br /&gt;
&lt;br /&gt;
Define a color. Accepted formats are:&lt;br /&gt;
&lt;br /&gt;
*; standard GRASS name : e.g. indigo.&lt;br /&gt;
&lt;br /&gt;
*; R&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;G&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;B : e.g. 200:123:90&lt;br /&gt;
&lt;br /&gt;
*; user name : e.g. red5.&amp;lt;br&amp;gt;Defined in ''palette'' block&lt;br /&gt;
&lt;br /&gt;
All formats can add '$(0-1)' to define the opacity of the color (alpha channel); e.g., indigo$.75 or 200:120:120$.2&lt;br /&gt;
&lt;br /&gt;
==== number ====&lt;br /&gt;
&lt;br /&gt;
==== text ====&lt;br /&gt;
&lt;br /&gt;
=== Blocks of instructions ===&lt;br /&gt;
&lt;br /&gt;
A ''block'' begin with the keywords and finish with keyword ''end''&lt;br /&gt;
&lt;br /&gt;
==== font ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a font.&lt;br /&gt;
&lt;br /&gt;
; name (text) : Name of font.&lt;br /&gt;
&lt;br /&gt;
; size (dimen) : Size of font.&lt;br /&gt;
&lt;br /&gt;
; extend (dimen): Expand the width of font.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of font.&lt;br /&gt;
&lt;br /&gt;
; outline yes|no : Outline of the font.&lt;br /&gt;
&lt;br /&gt;
==== line ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a line.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of line.&lt;br /&gt;
&lt;br /&gt;
; color (color) : COlor of line.&lt;br /&gt;
&lt;br /&gt;
; style solid|dashed|dotted|dashdotted|(n1n2...) : Style of line.&lt;br /&gt;
&lt;br /&gt;
; cap butt|round|extended_butt : Cap&lt;br /&gt;
&lt;br /&gt;
==== frame ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a frame.&lt;br /&gt;
&lt;br /&gt;
; where (dimen.1 dimen.2) : Position of frame.&lt;br /&gt;
&lt;br /&gt;
; offset (number.1 number.2) : Fine x and y adjust of the position of frame.&lt;br /&gt;
&lt;br /&gt;
; ref right|left|center upper|lower|center : Position is relative to the ''ref''.&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border line&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of the border line.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the frame.&lt;br /&gt;
&lt;br /&gt;
; rotate (dimen) : &amp;lt;u&amp;gt;todo&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== legend ====&lt;br /&gt;
&lt;br /&gt;
; lpos (number): Position in legend&amp;lt;br&amp;gt;Codes: -1, no show in legend; 0 automatic position; &amp;gt; 0 horizontal position.&lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]): Organize legend in ''number.1'' cols with a optional span of ''number.2''&lt;br /&gt;
&lt;br /&gt;
; interline (dimen): Set partial legend interline&lt;br /&gt;
&lt;br /&gt;
== Map paper ==&lt;br /&gt;
&lt;br /&gt;
=== paper ===&lt;br /&gt;
&lt;br /&gt;
Size of paper. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; paper [A0-6|B0-6|Legal|Ledger|Tabloid|Executive|Folio] : Type of paper (default A4).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; color (color) : Paper color.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Custom size of paper.&lt;br /&gt;
&lt;br /&gt;
; left (dimen), right (dimen), top (dimen), bottom (dimen) : Custom margins (default 0.5&amp;quot; left and right, and 1&amp;quot; top and bottom).&lt;br /&gt;
&lt;br /&gt;
; landscape yes|no : Paper orientation (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''. Set the default font of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''. Free draw as watermarks, before any feature of the map is drawn (see ''draw'').&lt;br /&gt;
&lt;br /&gt;
=== scale ===&lt;br /&gt;
&lt;br /&gt;
Scale of the map.&lt;br /&gt;
&lt;br /&gt;
Simple line command to define the scale of the map. The default is adjust map to the paper dimensions. If the remaining dimensions of the paper not permit the scale, ''ps.out'' adjust the scale to a new value that it fit in the paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scale 1&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;(number) : Scale of map.&amp;lt;br&amp;gt;For example, ''scale 1:500000'' to rescale maparea dimensions.&lt;br /&gt;
&lt;br /&gt;
=== maparea ===&lt;br /&gt;
Define specific dimensions of the map (default defined by command ''scale'')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; maparea : Define characteristics of the map area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border map.&amp;lt;br&amp;gt;Usefull with ''in'' and ''out'' formats of the ''grid'' and ''geogrid'', ignored in ''iho'' and ''can'' formats.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Border color-&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the map area.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Dimensions of the map.&lt;br /&gt;
&lt;br /&gt;
; top (dimen), bottom (dimen) : Position of the top-left corner of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''.&amp;lt;br&amp;gt;Draw onto the map but before the grid lines, vpoints and vlabels are drawn; i.e. this map elements are drawn over the draw elements.&lt;br /&gt;
&lt;br /&gt;
=== palette ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;testing&amp;lt;/U&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; palette&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; wheel (number text) :&lt;br /&gt;
&lt;br /&gt;
; monochrome (color number text) :&lt;br /&gt;
&lt;br /&gt;
; complementary (color number text) :&lt;br /&gt;
&lt;br /&gt;
; analogous (color number text) :&lt;br /&gt;
&lt;br /&gt;
; gradient (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; diverging (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
== Common elements ==&lt;br /&gt;
&lt;br /&gt;
=== grid and geogrid ===&lt;br /&gt;
&lt;br /&gt;
Draw a border around the map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; grid|geogrid :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; format in|out|+out|can|iho : Type of border (see examples).&lt;br /&gt;
&lt;br /&gt;
; major (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; minor (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; subminor (number) : ''number'' of subdivisons of the minor divisions.&lt;br /&gt;
&lt;br /&gt;
; trim (number) : Cut trailing zeros.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Color of the border.&lt;br /&gt;
&lt;br /&gt;
; cross (number) : Replace lines by cross&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_iho.png|format iho&lt;br /&gt;
File:ps_out_can.png|format can&lt;br /&gt;
File:ps_out_in.png |format in&lt;br /&gt;
File:ps_out_out.png|format +out&lt;br /&gt;
File:ps_out_out1.png|typical map border&lt;br /&gt;
File:ps_out_out2.png|typical map border with ''subminor 5'' and ''fcolor blue''&lt;br /&gt;
File:ps_out_out3.png|''cross 500'', ''fcolor indigo'', ''color 200:200:200'' in '''maparea'''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== scalebar ===&lt;br /&gt;
&lt;br /&gt;
Set a scalebar on the map.&amp;lt;br&amp;gt;Maximun 5 scalebars in each map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scalebar I|s|S|f|F : Define the type of scalebar (I: inner, s/S: simple, f/F: fill).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; length (number) : Length of the scale.&lt;br /&gt;
&lt;br /&gt;
; units meters|m|kilometers|km|feet|ft|miles|mil|nautical_miles|nm ([text]) : Unit of the length and ''text' to label the units.&lt;br /&gt;
&lt;br /&gt;
; major (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; minor (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor.&lt;br /&gt;
&lt;br /&gt;
; height (dimen) : Height of the bar or ticks.&lt;br /&gt;
&lt;br /&gt;
; zero yes|no : Set position relative to zero value of the scalebar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Scalerbar styles&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;50px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_scalebar_s.png|scalebar s&lt;br /&gt;
File:ps_out_scalebar_S.png|scalebar S&lt;br /&gt;
File:ps_out_scalebar_I.png|scalebar I (uppercase i)&lt;br /&gt;
File:ps_out_scalebar_f.png|scalebar f&lt;br /&gt;
File:ps_out_scalebar_F.png|scalebar F&lt;br /&gt;
File:ps_out_scalebar_3.png|Multiple scalebars zero centered with ''zero yes''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== note ===&lt;br /&gt;
Write special text or free text on any place of the paper with frame (also ''draw'' permit write free-text in paper). &lt;br /&gt;
&lt;br /&gt;
Maximun 20 notes by map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; note &amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;file|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;maplimits|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;dimen|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;scale (text)|(text) : Type of note and text to show.&amp;lt;br&amp;gt;When free text, use '|' to break lines and '.' as first character to center line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; text (text) : Another roption to enter the same as inline note text;&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of note.&lt;br /&gt;
&lt;br /&gt;
; angle (number) : ''number'' of degrees to rotate (do not work fine).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Note keywords and free text&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_note_ml.png  |note :maplimits&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_dimen.png|note :dimen&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scale.png|note :scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_free.png|note free text|in multiple lines&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_freec.png|note .free text|.in multiple [...]&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scaler.png|note :scale scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br&amp;gt;&amp;amp;nbsp;angle 90&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== draw ===&lt;br /&gt;
&lt;br /&gt;
Simple script language to draw predefined postscript code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; draw [none|paper|maparea|free] :  &lt;br /&gt;
''paper'': before any map feature is drawn (equivalent to place inside ''paper'' block); &amp;lt;br&amp;gt;&lt;br /&gt;
''maparea'' before the last elements of the map (equivalent to place inside ''mapare'' block) ; &amp;lt;br&amp;gt;&lt;br /&gt;
''none'': draw over all elements of the map but only in the map area; and &amp;lt;br&amp;gt;&lt;br /&gt;
''free'': after all map features are drawn in any place of the paper; and ''none''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; --- : &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_north1.png   |&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;north 700000 4700000&amp;lt;/source&amp;gt;&lt;br /&gt;
File:ps_out_north2.png   |north 5cm 16.5cm -&lt;br /&gt;
File:ps_out_maplimits.png|maplimits&lt;br /&gt;
File:ps_out_compass.png  |compass 700000 4700000 10000 10.2345&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Raster maps ==&lt;br /&gt;
&lt;br /&gt;
=== raster ===&lt;br /&gt;
&lt;br /&gt;
Draw one or two raster maps on the maparea. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; raster (raster|raster.1 raster.2|raster.R raster.G raster.B|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;group) : The ''raster'' value is the raster mapname, two raster maps ''raster.1'' or color and ''raster.2'' or shade to draw as relief map, three maps ''raster.R'', ''raster.G'' and ''raster.B'' to draw as RGB, or a groupname (leader by ':') with tree RGB maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; grey yes|no : Store and draw the rasters in grey scale (small size of file).&amp;lt;br&amp;gt;The conversion follows the NTSC video standard.&lt;br /&gt;
&lt;br /&gt;
; maskcell (raster.1 [raster.2]) : Set the ''raster.1'' map to use as mask (independent of the mask set in GRASS with [[r.mask]]) and, optionally, the ''raster.2'' map uses as background.&amp;lt;br&amp;gt;The background ''raster.2'' is painted in grey scale (NTSC) and tinted with ''maskcolor''.&lt;br /&gt;
&lt;br /&gt;
; maskcolor (color|none) : Set the ''color'' of the mask area.&amp;lt;br&amp;gt;If a raster map as background is set then it's drawn with a scale white-maskcolor.&lt;br /&gt;
&lt;br /&gt;
; outline : Block ''line''. Outline of categories.&lt;br /&gt;
&lt;br /&gt;
; setcolor null|default|(number) (color) : Replace the color of the cat ''number'' area with a new color.&amp;lt;br&amp;gt;Multiple ''setcolor'' are possibles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following gallery show the output of the commands inside the '''raster''' block (all mapnames are of type ''raster'').&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_raster1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_outline.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;outline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width .2mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;end&amp;lt;br/&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_setcolor.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor white&amp;lt;br&amp;gt;&amp;amp;nbsp;setcolor 37 magenta&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_grey.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;grey yes&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Vector maps ==&lt;br /&gt;
&lt;br /&gt;
All vector map accept optionally the following commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; layer (number) : Layer number used with cats/where option.&lt;br /&gt;
&lt;br /&gt;
; cats (n1,n2,...) : List of ''cat''s to show.&lt;br /&gt;
&lt;br /&gt;
; where (text) : Argument of the SQL where clausule to filter the areas to show.&lt;br /&gt;
&lt;br /&gt;
; masked yes|no : Masked or not by raster mask (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; label (text) : For description or title in ''vlegend''.&lt;br /&gt;
&lt;br /&gt;
; legend [(number)]: Position in legend (-1, no legend) or enter in a block ''legend''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vareas ===&lt;br /&gt;
&lt;br /&gt;
Draw areas on the map.&amp;lt;br&amp;gt;&lt;br /&gt;
The areas always are drawn first, on the bottom of other type of maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vareas (vector) : ''vector'' is a vector of areas, except when ''lwidth'' is different to zero that ''vector'' is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type area|line : Default ''area''.&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Style of the boundary.&lt;br /&gt;
&lt;br /&gt;
; fill : Block ''fill''. Style of the area.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic fill color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Text label when default conditions.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with label the ''text'' and title the text of the ''label''. Also, the fillcolor of the areas of the map with ''column'' &amp;gt;= n1 and ''column'' &amp;lt; n2  (''column'' from ''fcolor''), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; island yes|no : Draw island as normal areas (fill as normal area then hide it).&lt;br /&gt;
&lt;br /&gt;
; mirror (dimen [number]) : The line is drawn as an area with a copy of the line placed with polar coordinates: ''dimen' and ''angle''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vareas: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vareas0.png|&amp;amp;nbsp;vareas geology&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;where GEO_NAME like 'Zb'&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;fcolor indigo&amp;lt;br&amp;gt;&amp;amp;nbsp;end&lt;br /&gt;
File:ps_out_vareas3.png|''with ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;pat ../patterns/diag_up.eps&amp;lt;br&amp;gt;&amp;amp;nbsp;pscale .5&lt;br /&gt;
File:ps_out_vareas1.png|''with ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;fcolor none cat&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 0-500:red A&amp;lt;br/&amp;gt;&amp;amp;nbsp;setrule 500-1000:green B&amp;lt;br/&amp;gt;&amp;amp;nbsp;setrule 1000-5000:blue C&lt;br /&gt;
File:ps_out_vareas2.png|''with ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;island no&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlines ===&lt;br /&gt;
&lt;br /&gt;
Draw lines on the map.&amp;lt;br&amp;gt;The areas always are drawn second, after ''vareas'' and before ''vpoints''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlines (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of lines, except if ''type'' is boundary that ''vector'' is a vector of areas.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Optional commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type line|boundary : Draw boundaries of a vector of areas or lines of a vector of lines (default ''line'').&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Normal line.&lt;br /&gt;
&lt;br /&gt;
; hline : Block ''line''. Highlight line.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Works with ''hline'' to offset from the center of ''line''.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic line color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Label in legend when default values and ''setcolor'' rules.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with ''text'' as label and title the text of the ''label''. Also, the color of the normal line with column &amp;gt;= n1 and column &amp;lt; n2 (column from rgbcol), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlines: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlines0.png|''Effect of the ''hline'' block ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;hline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width 1mm&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color red&amp;lt;br&amp;gt;&amp;amp;nbsp;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vpoints ===&lt;br /&gt;
&lt;br /&gt;
Draw points on the map.&amp;lt;br&amp;gt;The points always are drawn last, after ''vareas'' and ''vlines''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vpoints (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of points, except when '''type''' is ''centroid'' or ''boundary'' that it is a vector of areas, or when '''type''' is ''line'' that it is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; type centroid|line|boundary|point : Type of draw (default ''point'').&lt;br /&gt;
&lt;br /&gt;
; symbol (epsfile) : Symbol to use (default: basic/circle).&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Type of line in the symbol.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color): Static fillcolor of the symbol.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Offset of the symbol.&lt;br /&gt;
&lt;br /&gt;
; rotate (number|column) : Angle to rotate the symbol, static ''number'' or dynamic in a ''column'' of the database.&lt;br /&gt;
&lt;br /&gt;
; size (number|column [number]) : Size of the symbol take from ''number'' or from a ''column'' of the database. In the last option, there is a optional ''number'' to define the static size of the symbol in the legend when the size of symbols are dynamic. &lt;br /&gt;
&lt;br /&gt;
; scale (dimen.1 [dimen.2]) : Rescale the size of the symbol by the ''dimen.1'' and, optionally, add a ''dimen.2''. i.e., ''resize = dimen.1 * size + dimen.2''.&lt;br /&gt;
&lt;br /&gt;
; setsize (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;size] text) : Variable size of symbols from data in ''column'' of database set in ''size''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands when type is line&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; dist (dimen) : Define the distance in paper between symbol over the line.&lt;br /&gt;
&lt;br /&gt;
; cline : Block ''line''. Type of line that connect symbols.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vpoints: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vpoints0.png|''Points with same size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size 5&lt;br /&gt;
File:ps_out_vpoints1.png|''Points with dynamic size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT 5&amp;lt;br&amp;gt;&amp;amp;nbsp;scale 0.01 2&lt;br /&gt;
File:ps_out_vpoints2.png|''Points with conditional size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 200-1000:3 &amp;lt; 1000&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 1000-2500:9 &amp;gt; 1000&lt;br /&gt;
File:ps_out_vpoints3.png|''Points on line ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;type line&amp;lt;br&amp;gt;&amp;amp;nbsp;dist 1cm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlabels ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;in progress&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlabels none|(vector) :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; font :&lt;br /&gt;
&lt;br /&gt;
; labelcol (column) :&lt;br /&gt;
&lt;br /&gt;
; decimals (number) :&lt;br /&gt;
&lt;br /&gt;
; circled yes|no :&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2 text)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlabels0.png|vpoints firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;[...]&amp;lt;br/n&amp;gt;end&amp;lt;br/&amp;gt;vlabels firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;labelcol PUMPERS&amp;lt;br/n&amp;gt;&amp;amp;nbsp;font&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;name Univers-Bold&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;size 10&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color yellow&amp;lt;br/n&amp;gt;&amp;amp;nbsp;end&amp;lt;br/n&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Legend of the maps ==&lt;br /&gt;
&lt;br /&gt;
=== rlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the raster map.&amp;lt;br&amp;gt;The units ''meters'' in the gradient legend is set with [[r.support]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; rlegend [text] : Text is the title of the legend. &lt;br /&gt;
&lt;br /&gt;
; raster (raster) : the ''raster'' map to take the data of legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commads are optionals&amp;lt;/U&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; titlefont : Block ''font'' for the legend header.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font'' for the normal text.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Width of the symbol area.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For category legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; cols (number) [(number)] : Number of columns with symbols and separation between columns (default ''1'').&lt;br /&gt;
&lt;br /&gt;
; nodata yes|no : Remove category ''no data''.&lt;br /&gt;
&lt;br /&gt;
; order (n1,n2,...) : To reorder items.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For gradient legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; height (dimen), width (dimen) : Dimension of the frame with the legend.&lt;br /&gt;
&lt;br /&gt;
; vertical yes|no : Orientation of the gradient legend (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; range (n1 n2) : Manual set of the data range for legend.&lt;br /&gt;
&lt;br /&gt;
; gradient yes|no : Forze draw gradient legend with category data.&lt;br /&gt;
&lt;br /&gt;
; tick (dimen) : Length of the ticks.&lt;br /&gt;
&lt;br /&gt;
; whiteframe (dimen) : Width of the white frame around the bar color.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;250px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_rlegend.png|rlegend Zip Codes (wake)&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster zipcodes_wake&amp;lt;br/&amp;gt;&amp;amp;nbsp;cols 2 0&amp;lt;br/&amp;gt;&amp;amp;nbsp;swidth 8mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;order 20,10,30,22,34&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend1.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;height 8cm&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend2.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;width 8cm&amp;lt;br/&amp;gt;&amp;amp;nbsp;vertical no&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the vector maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlegend [text] : Optional the title or head of the legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; title : Block ''font'' for title of legend.&lt;br /&gt;
&lt;br /&gt;
; font : Block font for normal text of legend.&lt;br /&gt;
&lt;br /&gt;
; frame : &lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]) : Distribution of the items in ''number.1'' cols. Optionaly, ''number.2'' of span between columns.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Symbol width.&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Space between lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlegend: sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_output_vlegend0.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: ps.map]]&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12036</id>
		<title>Ps.output</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12036"/>
		<updated>2010-11-01T00:48:11Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: /* vlines */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ps.out''' try to update the standard postscript output of Grass adding new features to design borders, graticules, categorized legends, etc&lt;br /&gt;
&lt;br /&gt;
'''This is in progress and not all features are yet uploaded in ''addons''. '''&lt;br /&gt;
&lt;br /&gt;
== Command line flags ==&lt;br /&gt;
&lt;br /&gt;
'''-d ''': Draw a 1x1 cm grid on paper to help the placement of the elements of the map.&lt;br /&gt;
&lt;br /&gt;
'''-e''': Make an output file without the postscript header. Useful when is embebed into other ''ps.out'' map.&lt;br /&gt;
&lt;br /&gt;
'''-g''': Use the extended PostScript of Ghostscript (for transparent colors only)&lt;br /&gt;
&lt;br /&gt;
'''-s''': Draw the small digit in the coordinate numbers to lower instead upper possition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;100px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_grid.png|A4 paper with flag -d &lt;br /&gt;
File:ps_out_digit_upper.png|coordinate&lt;br /&gt;
File:ps_out_digit_lower.png|coordinate with flag -s&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generic Instructions ==&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== dimen ====&lt;br /&gt;
&lt;br /&gt;
Define a dimension. Accepted units are:&lt;br /&gt;
&lt;br /&gt;
*; ''unitless'' : e.g. 123. The dimension is the ''number'' by 1/72&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
*; inch : e.g. 1.2inch. &lt;br /&gt;
&lt;br /&gt;
*; milimeters : e.g. 2.3mm.&lt;br /&gt;
&lt;br /&gt;
*; centimeters : e.g. 1.4cm.&lt;br /&gt;
&lt;br /&gt;
*; percentage : e.g. 50%.&amp;lt;br&amp;gt;The position is relative to the size and position of the map in the paper being ''0%'' the left or bottom corner.&lt;br /&gt;
&lt;br /&gt;
==== color ====&lt;br /&gt;
&lt;br /&gt;
Define a color. Accepted formats are:&lt;br /&gt;
&lt;br /&gt;
*; standard GRASS name : e.g. indigo.&lt;br /&gt;
&lt;br /&gt;
*; R&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;G&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;B : e.g. 200:123:90&lt;br /&gt;
&lt;br /&gt;
*; user name : e.g. red5.&amp;lt;br&amp;gt;Defined in ''palette'' block&lt;br /&gt;
&lt;br /&gt;
All formats can add '$(0-1)' to define the opacity of the color (alpha channel); e.g., indigo$.75 or 200:120:120$.2&lt;br /&gt;
&lt;br /&gt;
==== number ====&lt;br /&gt;
&lt;br /&gt;
==== text ====&lt;br /&gt;
&lt;br /&gt;
=== Blocks of instructions ===&lt;br /&gt;
&lt;br /&gt;
A ''block'' begin with the keywords and finish with keyword ''end''&lt;br /&gt;
&lt;br /&gt;
==== font ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a font.&lt;br /&gt;
&lt;br /&gt;
; name (text) : Name of font.&lt;br /&gt;
&lt;br /&gt;
; size (dimen) : Size of font.&lt;br /&gt;
&lt;br /&gt;
; extend (dimen): Expand the width of font.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of font.&lt;br /&gt;
&lt;br /&gt;
; outline yes|no : Outline of the font.&lt;br /&gt;
&lt;br /&gt;
==== line ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a line.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of line.&lt;br /&gt;
&lt;br /&gt;
; color (color) : COlor of line.&lt;br /&gt;
&lt;br /&gt;
; style solid|dashed|dotted|dashdotted|(n1n2...) : Style of line.&lt;br /&gt;
&lt;br /&gt;
; cap butt|round|extended_butt : Cap&lt;br /&gt;
&lt;br /&gt;
==== frame ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a frame.&lt;br /&gt;
&lt;br /&gt;
; where (dimen.1 dimen.2) : Position of frame.&lt;br /&gt;
&lt;br /&gt;
; offset (number.1 number.2) : Fine x and y adjust of the position of frame.&lt;br /&gt;
&lt;br /&gt;
; ref right|left|center upper|lower|center : Position is relative to the ''ref''.&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border line&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of the border line.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the frame.&lt;br /&gt;
&lt;br /&gt;
; rotate (dimen) : &amp;lt;u&amp;gt;todo&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== legend ====&lt;br /&gt;
&lt;br /&gt;
; lpos (number): Position in legend&amp;lt;br&amp;gt;Codes: -1, no show in legend; 0 automatic position; &amp;gt; 0 horizontal position.&lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]): Organize legend in ''number.1'' cols with a optional span of ''number.2''&lt;br /&gt;
&lt;br /&gt;
; interline (dimen): Set partial legend interline&lt;br /&gt;
&lt;br /&gt;
== Map paper ==&lt;br /&gt;
&lt;br /&gt;
=== paper ===&lt;br /&gt;
&lt;br /&gt;
Size of paper. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; paper [A0-6|B0-6|Legal|Ledger|Tabloid|Executive|Folio] : Type of paper (default A4).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; color (color) : Paper color.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Custom size of paper.&lt;br /&gt;
&lt;br /&gt;
; left (dimen), right (dimen), top (dimen), bottom (dimen) : Custom margins (default 0.5&amp;quot; left and right, and 1&amp;quot; top and bottom).&lt;br /&gt;
&lt;br /&gt;
; landscape yes|no : Paper orientation (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''. Set the default font of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''. Free draw as watermarks, before any feature of the map is drawn (see ''draw'').&lt;br /&gt;
&lt;br /&gt;
=== scale ===&lt;br /&gt;
&lt;br /&gt;
Scale of the map.&lt;br /&gt;
&lt;br /&gt;
Simple line command to define the scale of the map. The default is adjust map to the paper dimensions. If the remaining dimensions of the paper not permit the scale, ''ps.out'' adjust the scale to a new value that it fit in the paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scale 1&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;(number) : Scale of map.&amp;lt;br&amp;gt;For example, ''scale 1:500000'' to rescale maparea dimensions.&lt;br /&gt;
&lt;br /&gt;
=== maparea ===&lt;br /&gt;
Define specific dimensions of the map (default defined by command ''scale'')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; maparea : Define characteristics of the map area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border map.&amp;lt;br&amp;gt;Usefull with ''in'' and ''out'' formats of the ''grid'' and ''geogrid'', ignored in ''iho'' and ''can'' formats.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Border color-&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the map area.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Dimensions of the map.&lt;br /&gt;
&lt;br /&gt;
; top (dimen), bottom (dimen) : Position of the top-left corner of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''.&amp;lt;br&amp;gt;Draw onto the map but before the grid lines, vpoints and vlabels are drawn; i.e. this map elements are drawn over the draw elements.&lt;br /&gt;
&lt;br /&gt;
=== palette ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;testing&amp;lt;/U&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; palette&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; wheel (number text) :&lt;br /&gt;
&lt;br /&gt;
; monochrome (color number text) :&lt;br /&gt;
&lt;br /&gt;
; complementary (color number text) :&lt;br /&gt;
&lt;br /&gt;
; analogous (color number text) :&lt;br /&gt;
&lt;br /&gt;
; gradient (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; diverging (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
== Common elements ==&lt;br /&gt;
&lt;br /&gt;
=== grid and geogrid ===&lt;br /&gt;
&lt;br /&gt;
Draw a border around the map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; grid|geogrid :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; format in|out|+out|can|iho : Type of border (see examples).&lt;br /&gt;
&lt;br /&gt;
; major (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; minor (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; subminor (number) : ''number'' of subdivisons of the minor divisions.&lt;br /&gt;
&lt;br /&gt;
; trim (number) : Cut trailing zeros.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Color of the border.&lt;br /&gt;
&lt;br /&gt;
; cross (number) : Replace lines by cross&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_iho.png|format iho&lt;br /&gt;
File:ps_out_can.png|format can&lt;br /&gt;
File:ps_out_in.png |format in&lt;br /&gt;
File:ps_out_out.png|format +out&lt;br /&gt;
File:ps_out_out1.png|typical map border&lt;br /&gt;
File:ps_out_out2.png|typical map border with ''subminor 5'' and ''fcolor blue''&lt;br /&gt;
File:ps_out_out3.png|''cross 500'', ''fcolor indigo'', ''color 200:200:200'' in '''maparea'''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== scalebar ===&lt;br /&gt;
&lt;br /&gt;
Set a scalebar on the map.&amp;lt;br&amp;gt;Maximun 5 scalebars in each map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scalebar I|s|S|f|F : Define the type of scalebar (I: inner, s/S: simple, f/F: fill).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; length (number) : Length of the scale.&lt;br /&gt;
&lt;br /&gt;
; units meters|m|kilometers|km|feet|ft|miles|mil|nautical_miles|nm ([text]) : Unit of the length and ''text' to label the units.&lt;br /&gt;
&lt;br /&gt;
; major (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; minor (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor.&lt;br /&gt;
&lt;br /&gt;
; height (dimen) : Height of the bar or ticks.&lt;br /&gt;
&lt;br /&gt;
; zero yes|no : Set position relative to zero value of the scalebar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Scalerbar styles&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;50px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_scalebar_s.png|scalebar s&lt;br /&gt;
File:ps_out_scalebar_S.png|scalebar S&lt;br /&gt;
File:ps_out_scalebar_I.png|scalebar I (uppercase i)&lt;br /&gt;
File:ps_out_scalebar_f.png|scalebar f&lt;br /&gt;
File:ps_out_scalebar_F.png|scalebar F&lt;br /&gt;
File:ps_out_scalebar_3.png|Multiple scalebars zero centered with ''zero yes''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== note ===&lt;br /&gt;
Write special text or free text on any place of the paper with frame (also ''draw'' permit write free-text in paper). &lt;br /&gt;
&lt;br /&gt;
Maximun 20 notes by map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; note &amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;file|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;maplimits|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;dimen|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;scale (text)|(text) : Type of note and text to show.&amp;lt;br&amp;gt;When free text, use '|' to break lines and '.' as first character to center line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; text (text) : Another roption to enter the same as inline note text;&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of note.&lt;br /&gt;
&lt;br /&gt;
; angle (number) : ''number'' of degrees to rotate (do not work fine).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Note keywords and free text&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_note_ml.png  |note :maplimits&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_dimen.png|note :dimen&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scale.png|note :scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_free.png|note free text|in multiple lines&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_freec.png|note .free text|.in multiple [...]&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scaler.png|note :scale scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br&amp;gt;&amp;amp;nbsp;angle 90&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== draw ===&lt;br /&gt;
&lt;br /&gt;
Simple script language to draw predefined postscript code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; draw [none|paper|maparea|free] :  &lt;br /&gt;
''paper'': before any map feature is drawn (equivalent to place inside ''paper'' block); &amp;lt;br&amp;gt;&lt;br /&gt;
''maparea'' before the last elements of the map (equivalent to place inside ''mapare'' block) ; &amp;lt;br&amp;gt;&lt;br /&gt;
''none'': draw over all elements of the map but only in the map area; and &amp;lt;br&amp;gt;&lt;br /&gt;
''free'': after all map features are drawn in any place of the paper; and ''none''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; --- : &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_north1.png   |&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;north 700000 4700000&amp;lt;/source&amp;gt;&lt;br /&gt;
File:ps_out_north2.png   |north 5cm 16.5cm -&lt;br /&gt;
File:ps_out_maplimits.png|maplimits&lt;br /&gt;
File:ps_out_compass.png  |compass 700000 4700000 10000 10.2345&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Raster maps ==&lt;br /&gt;
&lt;br /&gt;
=== raster ===&lt;br /&gt;
&lt;br /&gt;
Draw one or two raster maps on the maparea. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; raster (raster|raster.1 raster.2|raster.R raster.G raster.B|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;group) : The ''raster'' value is the raster mapname, two raster maps ''raster.1'' or color and ''raster.2'' or shade to draw as relief map, three maps ''raster.R'', ''raster.G'' and ''raster.B'' to draw as RGB, or a groupname (leader by ':') with tree RGB maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; grey yes|no : Store and draw the rasters in grey scale (small size of file).&amp;lt;br&amp;gt;The conversion follows the NTSC video standard.&lt;br /&gt;
&lt;br /&gt;
; maskcell (raster.1 [raster.2]) : Set the ''raster.1'' map to use as mask (independent of the mask set in GRASS with [[r.mask]]) and, optionally, the ''raster.2'' map uses as background.&amp;lt;br&amp;gt;The background ''raster.2'' is painted in grey scale (NTSC) and tinted with ''maskcolor''.&lt;br /&gt;
&lt;br /&gt;
; maskcolor (color|none) : Set the ''color'' of the mask area.&amp;lt;br&amp;gt;If a raster map as background is set then it's drawn with a scale white-maskcolor.&lt;br /&gt;
&lt;br /&gt;
; outline : Block ''line''. Outline of categories.&lt;br /&gt;
&lt;br /&gt;
; setcolor null|default|(number) (color) : Replace the color of the cat ''number'' area with a new color.&amp;lt;br&amp;gt;Multiple ''setcolor'' are possibles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following gallery show the output of the commands inside the '''raster''' block (all mapnames are of type ''raster'').&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_raster1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_outline.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;outline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width .2mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;end&amp;lt;br/&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_setcolor.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor white&amp;lt;br&amp;gt;&amp;amp;nbsp;setcolor 37 magenta&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_grey.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;grey yes&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Vector maps ==&lt;br /&gt;
&lt;br /&gt;
All vector map accept optionally the following commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; layer (number) : Layer number used with cats/where option.&lt;br /&gt;
&lt;br /&gt;
; cats (n1,n2,...) : List of ''cat''s to show.&lt;br /&gt;
&lt;br /&gt;
; where (text) : Argument of the SQL where clausule to filter the areas to show.&lt;br /&gt;
&lt;br /&gt;
; masked yes|no : Masked or not by raster mask (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; label (text) : For description or title in ''vlegend''.&lt;br /&gt;
&lt;br /&gt;
; legend [(number)]: Position in legend (-1, no legend) or enter in a block ''legend''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vareas ===&lt;br /&gt;
&lt;br /&gt;
Draw areas on the map.&amp;lt;br&amp;gt;&lt;br /&gt;
The areas always are drawn first, on the bottom of other type of maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vareas (vector) : ''vector'' is a vector of areas, except when ''lwidth'' is different to zero that ''vector'' is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type area|line : Default ''area''.&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Style of the boundary.&lt;br /&gt;
&lt;br /&gt;
; fill : Block ''fill''. Style of the area.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic fill color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Text label when default conditions.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with label the ''text'' and title the text of the ''label''. Also, the fillcolor of the areas of the map with ''column'' &amp;gt;= n1 and ''column'' &amp;lt; n2  (''column'' from ''fcolor''), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; island yes|no : Draw island as normal areas (fill as normal area then hide it).&lt;br /&gt;
&lt;br /&gt;
; lwidth (dimen) : Line map draws as an area with a width = ''lwidth''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vareas: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vareas0.png|&amp;amp;nbsp;vareas geology&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;where GEO_NAME like 'Zb'&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;fcolor indigo&amp;lt;br&amp;gt;&amp;amp;nbsp;end&lt;br /&gt;
File:ps_out_vareas3.png|''with ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;pat ../patterns/diag_up.eps&amp;lt;br&amp;gt;&amp;amp;nbsp;pscale .5&lt;br /&gt;
File:ps_out_vareas1.png|''with ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;fcolor none cat&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 0-500:red A&amp;lt;br/&amp;gt;&amp;amp;nbsp;setrule 500-1000:green B&amp;lt;br/&amp;gt;&amp;amp;nbsp;setrule 1000-5000:blue C&lt;br /&gt;
File:ps_out_vareas2.png|''with ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;island no&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlines ===&lt;br /&gt;
&lt;br /&gt;
Draw lines on the map.&amp;lt;br&amp;gt;The areas always are drawn second, after ''vareas'' and before ''vpoints''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlines (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of lines, except if ''type'' is boundary that ''vector'' is a vector of areas.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Optional commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type line|boundary : Draw boundaries of a vector of areas or lines of a vector of lines (default ''line'').&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Normal line.&lt;br /&gt;
&lt;br /&gt;
; hline : Block ''line''. Highlight line.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Works with ''hline'' to offset from the center of ''line''.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic line color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Label in legend when default values and ''setcolor'' rules.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with ''text'' as label and title the text of the ''label''. Also, the color of the normal line with column &amp;gt;= n1 and column &amp;lt; n2 (column from rgbcol), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlines: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlines0.png|''Effect of the ''hline'' block ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;hline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width 1mm&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color red&amp;lt;br&amp;gt;&amp;amp;nbsp;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vpoints ===&lt;br /&gt;
&lt;br /&gt;
Draw points on the map.&amp;lt;br&amp;gt;The points always are drawn last, after ''vareas'' and ''vlines''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vpoints (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of points, except when '''type''' is ''centroid'' or ''boundary'' that it is a vector of areas, or when '''type''' is ''line'' that it is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; type centroid|line|boundary|point : Type of draw (default ''point'').&lt;br /&gt;
&lt;br /&gt;
; symbol (epsfile) : Symbol to use (default: basic/circle).&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Type of line in the symbol.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color): Static fillcolor of the symbol.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Offset of the symbol.&lt;br /&gt;
&lt;br /&gt;
; rotate (number|column) : Angle to rotate the symbol, static ''number'' or dynamic in a ''column'' of the database.&lt;br /&gt;
&lt;br /&gt;
; size (number|column [number]) : Size of the symbol take from ''number'' or from a ''column'' of the database. In the last option, there is a optional ''number'' to define the static size of the symbol in the legend when the size of symbols are dynamic. &lt;br /&gt;
&lt;br /&gt;
; scale (dimen.1 [dimen.2]) : Rescale the size of the symbol by the ''dimen.1'' and, optionally, add a ''dimen.2''. i.e., ''resize = dimen.1 * size + dimen.2''.&lt;br /&gt;
&lt;br /&gt;
; setsize (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;size] text) : Variable size of symbols from data in ''column'' of database set in ''size''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands when type is line&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; dist (dimen) : Define the distance in paper between symbol over the line.&lt;br /&gt;
&lt;br /&gt;
; cline : Block ''line''. Type of line that connect symbols.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vpoints: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vpoints0.png|''Points with same size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size 5&lt;br /&gt;
File:ps_out_vpoints1.png|''Points with dynamic size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT 5&amp;lt;br&amp;gt;&amp;amp;nbsp;scale 0.01 2&lt;br /&gt;
File:ps_out_vpoints2.png|''Points with conditional size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 200-1000:3 &amp;lt; 1000&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 1000-2500:9 &amp;gt; 1000&lt;br /&gt;
File:ps_out_vpoints3.png|''Points on line ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;type line&amp;lt;br&amp;gt;&amp;amp;nbsp;dist 1cm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlabels ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;in progress&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlabels none|(vector) :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; font :&lt;br /&gt;
&lt;br /&gt;
; labelcol (column) :&lt;br /&gt;
&lt;br /&gt;
; decimals (number) :&lt;br /&gt;
&lt;br /&gt;
; circled yes|no :&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2 text)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlabels0.png|vpoints firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;[...]&amp;lt;br/n&amp;gt;end&amp;lt;br/&amp;gt;vlabels firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;labelcol PUMPERS&amp;lt;br/n&amp;gt;&amp;amp;nbsp;font&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;name Univers-Bold&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;size 10&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color yellow&amp;lt;br/n&amp;gt;&amp;amp;nbsp;end&amp;lt;br/n&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Legend of the maps ==&lt;br /&gt;
&lt;br /&gt;
=== rlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the raster map.&amp;lt;br&amp;gt;The units ''meters'' in the gradient legend is set with [[r.support]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; rlegend [text] : Text is the title of the legend. &lt;br /&gt;
&lt;br /&gt;
; raster (raster) : the ''raster'' map to take the data of legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commads are optionals&amp;lt;/U&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; titlefont : Block ''font'' for the legend header.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font'' for the normal text.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Width of the symbol area.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For category legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; cols (number) [(number)] : Number of columns with symbols and separation between columns (default ''1'').&lt;br /&gt;
&lt;br /&gt;
; nodata yes|no : Remove category ''no data''.&lt;br /&gt;
&lt;br /&gt;
; order (n1,n2,...) : To reorder items.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For gradient legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; height (dimen), width (dimen) : Dimension of the frame with the legend.&lt;br /&gt;
&lt;br /&gt;
; vertical yes|no : Orientation of the gradient legend (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; range (n1 n2) : Manual set of the data range for legend.&lt;br /&gt;
&lt;br /&gt;
; gradient yes|no : Forze draw gradient legend with category data.&lt;br /&gt;
&lt;br /&gt;
; tick (dimen) : Length of the ticks.&lt;br /&gt;
&lt;br /&gt;
; whiteframe (dimen) : Width of the white frame around the bar color.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;250px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_rlegend.png|rlegend Zip Codes (wake)&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster zipcodes_wake&amp;lt;br/&amp;gt;&amp;amp;nbsp;cols 2 0&amp;lt;br/&amp;gt;&amp;amp;nbsp;swidth 8mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;order 20,10,30,22,34&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend1.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;height 8cm&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend2.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;width 8cm&amp;lt;br/&amp;gt;&amp;amp;nbsp;vertical no&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the vector maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlegend [text] : Optional the title or head of the legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; title : Block ''font'' for title of legend.&lt;br /&gt;
&lt;br /&gt;
; font : Block font for normal text of legend.&lt;br /&gt;
&lt;br /&gt;
; frame : &lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]) : Distribution of the items in ''number.1'' cols. Optionaly, ''number.2'' of span between columns.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Symbol width.&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Space between lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlegend: sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_output_vlegend0.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: ps.map]]&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12035</id>
		<title>Ps.output</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12035"/>
		<updated>2010-11-01T00:47:08Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: /* vlines */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ps.out''' try to update the standard postscript output of Grass adding new features to design borders, graticules, categorized legends, etc&lt;br /&gt;
&lt;br /&gt;
'''This is in progress and not all features are yet uploaded in ''addons''. '''&lt;br /&gt;
&lt;br /&gt;
== Command line flags ==&lt;br /&gt;
&lt;br /&gt;
'''-d ''': Draw a 1x1 cm grid on paper to help the placement of the elements of the map.&lt;br /&gt;
&lt;br /&gt;
'''-e''': Make an output file without the postscript header. Useful when is embebed into other ''ps.out'' map.&lt;br /&gt;
&lt;br /&gt;
'''-g''': Use the extended PostScript of Ghostscript (for transparent colors only)&lt;br /&gt;
&lt;br /&gt;
'''-s''': Draw the small digit in the coordinate numbers to lower instead upper possition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;100px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_grid.png|A4 paper with flag -d &lt;br /&gt;
File:ps_out_digit_upper.png|coordinate&lt;br /&gt;
File:ps_out_digit_lower.png|coordinate with flag -s&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generic Instructions ==&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== dimen ====&lt;br /&gt;
&lt;br /&gt;
Define a dimension. Accepted units are:&lt;br /&gt;
&lt;br /&gt;
*; ''unitless'' : e.g. 123. The dimension is the ''number'' by 1/72&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
*; inch : e.g. 1.2inch. &lt;br /&gt;
&lt;br /&gt;
*; milimeters : e.g. 2.3mm.&lt;br /&gt;
&lt;br /&gt;
*; centimeters : e.g. 1.4cm.&lt;br /&gt;
&lt;br /&gt;
*; percentage : e.g. 50%.&amp;lt;br&amp;gt;The position is relative to the size and position of the map in the paper being ''0%'' the left or bottom corner.&lt;br /&gt;
&lt;br /&gt;
==== color ====&lt;br /&gt;
&lt;br /&gt;
Define a color. Accepted formats are:&lt;br /&gt;
&lt;br /&gt;
*; standard GRASS name : e.g. indigo.&lt;br /&gt;
&lt;br /&gt;
*; R&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;G&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;B : e.g. 200:123:90&lt;br /&gt;
&lt;br /&gt;
*; user name : e.g. red5.&amp;lt;br&amp;gt;Defined in ''palette'' block&lt;br /&gt;
&lt;br /&gt;
All formats can add '$(0-1)' to define the opacity of the color (alpha channel); e.g., indigo$.75 or 200:120:120$.2&lt;br /&gt;
&lt;br /&gt;
==== number ====&lt;br /&gt;
&lt;br /&gt;
==== text ====&lt;br /&gt;
&lt;br /&gt;
=== Blocks of instructions ===&lt;br /&gt;
&lt;br /&gt;
A ''block'' begin with the keywords and finish with keyword ''end''&lt;br /&gt;
&lt;br /&gt;
==== font ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a font.&lt;br /&gt;
&lt;br /&gt;
; name (text) : Name of font.&lt;br /&gt;
&lt;br /&gt;
; size (dimen) : Size of font.&lt;br /&gt;
&lt;br /&gt;
; extend (dimen): Expand the width of font.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of font.&lt;br /&gt;
&lt;br /&gt;
; outline yes|no : Outline of the font.&lt;br /&gt;
&lt;br /&gt;
==== line ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a line.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of line.&lt;br /&gt;
&lt;br /&gt;
; color (color) : COlor of line.&lt;br /&gt;
&lt;br /&gt;
; style solid|dashed|dotted|dashdotted|(n1n2...) : Style of line.&lt;br /&gt;
&lt;br /&gt;
; cap butt|round|extended_butt : Cap&lt;br /&gt;
&lt;br /&gt;
==== frame ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a frame.&lt;br /&gt;
&lt;br /&gt;
; where (dimen.1 dimen.2) : Position of frame.&lt;br /&gt;
&lt;br /&gt;
; offset (number.1 number.2) : Fine x and y adjust of the position of frame.&lt;br /&gt;
&lt;br /&gt;
; ref right|left|center upper|lower|center : Position is relative to the ''ref''.&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border line&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of the border line.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the frame.&lt;br /&gt;
&lt;br /&gt;
; rotate (dimen) : &amp;lt;u&amp;gt;todo&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== legend ====&lt;br /&gt;
&lt;br /&gt;
; lpos (number): Position in legend&amp;lt;br&amp;gt;Codes: -1, no show in legend; 0 automatic position; &amp;gt; 0 horizontal position.&lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]): Organize legend in ''number.1'' cols with a optional span of ''number.2''&lt;br /&gt;
&lt;br /&gt;
; interline (dimen): Set partial legend interline&lt;br /&gt;
&lt;br /&gt;
== Map paper ==&lt;br /&gt;
&lt;br /&gt;
=== paper ===&lt;br /&gt;
&lt;br /&gt;
Size of paper. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; paper [A0-6|B0-6|Legal|Ledger|Tabloid|Executive|Folio] : Type of paper (default A4).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; color (color) : Paper color.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Custom size of paper.&lt;br /&gt;
&lt;br /&gt;
; left (dimen), right (dimen), top (dimen), bottom (dimen) : Custom margins (default 0.5&amp;quot; left and right, and 1&amp;quot; top and bottom).&lt;br /&gt;
&lt;br /&gt;
; landscape yes|no : Paper orientation (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''. Set the default font of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''. Free draw as watermarks, before any feature of the map is drawn (see ''draw'').&lt;br /&gt;
&lt;br /&gt;
=== scale ===&lt;br /&gt;
&lt;br /&gt;
Scale of the map.&lt;br /&gt;
&lt;br /&gt;
Simple line command to define the scale of the map. The default is adjust map to the paper dimensions. If the remaining dimensions of the paper not permit the scale, ''ps.out'' adjust the scale to a new value that it fit in the paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scale 1&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;(number) : Scale of map.&amp;lt;br&amp;gt;For example, ''scale 1:500000'' to rescale maparea dimensions.&lt;br /&gt;
&lt;br /&gt;
=== maparea ===&lt;br /&gt;
Define specific dimensions of the map (default defined by command ''scale'')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; maparea : Define characteristics of the map area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border map.&amp;lt;br&amp;gt;Usefull with ''in'' and ''out'' formats of the ''grid'' and ''geogrid'', ignored in ''iho'' and ''can'' formats.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Border color-&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the map area.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Dimensions of the map.&lt;br /&gt;
&lt;br /&gt;
; top (dimen), bottom (dimen) : Position of the top-left corner of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''.&amp;lt;br&amp;gt;Draw onto the map but before the grid lines, vpoints and vlabels are drawn; i.e. this map elements are drawn over the draw elements.&lt;br /&gt;
&lt;br /&gt;
=== palette ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;testing&amp;lt;/U&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; palette&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; wheel (number text) :&lt;br /&gt;
&lt;br /&gt;
; monochrome (color number text) :&lt;br /&gt;
&lt;br /&gt;
; complementary (color number text) :&lt;br /&gt;
&lt;br /&gt;
; analogous (color number text) :&lt;br /&gt;
&lt;br /&gt;
; gradient (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; diverging (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
== Common elements ==&lt;br /&gt;
&lt;br /&gt;
=== grid and geogrid ===&lt;br /&gt;
&lt;br /&gt;
Draw a border around the map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; grid|geogrid :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; format in|out|+out|can|iho : Type of border (see examples).&lt;br /&gt;
&lt;br /&gt;
; major (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; minor (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; subminor (number) : ''number'' of subdivisons of the minor divisions.&lt;br /&gt;
&lt;br /&gt;
; trim (number) : Cut trailing zeros.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Color of the border.&lt;br /&gt;
&lt;br /&gt;
; cross (number) : Replace lines by cross&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_iho.png|format iho&lt;br /&gt;
File:ps_out_can.png|format can&lt;br /&gt;
File:ps_out_in.png |format in&lt;br /&gt;
File:ps_out_out.png|format +out&lt;br /&gt;
File:ps_out_out1.png|typical map border&lt;br /&gt;
File:ps_out_out2.png|typical map border with ''subminor 5'' and ''fcolor blue''&lt;br /&gt;
File:ps_out_out3.png|''cross 500'', ''fcolor indigo'', ''color 200:200:200'' in '''maparea'''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== scalebar ===&lt;br /&gt;
&lt;br /&gt;
Set a scalebar on the map.&amp;lt;br&amp;gt;Maximun 5 scalebars in each map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scalebar I|s|S|f|F : Define the type of scalebar (I: inner, s/S: simple, f/F: fill).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; length (number) : Length of the scale.&lt;br /&gt;
&lt;br /&gt;
; units meters|m|kilometers|km|feet|ft|miles|mil|nautical_miles|nm ([text]) : Unit of the length and ''text' to label the units.&lt;br /&gt;
&lt;br /&gt;
; major (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; minor (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor.&lt;br /&gt;
&lt;br /&gt;
; height (dimen) : Height of the bar or ticks.&lt;br /&gt;
&lt;br /&gt;
; zero yes|no : Set position relative to zero value of the scalebar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Scalerbar styles&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;50px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_scalebar_s.png|scalebar s&lt;br /&gt;
File:ps_out_scalebar_S.png|scalebar S&lt;br /&gt;
File:ps_out_scalebar_I.png|scalebar I (uppercase i)&lt;br /&gt;
File:ps_out_scalebar_f.png|scalebar f&lt;br /&gt;
File:ps_out_scalebar_F.png|scalebar F&lt;br /&gt;
File:ps_out_scalebar_3.png|Multiple scalebars zero centered with ''zero yes''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== note ===&lt;br /&gt;
Write special text or free text on any place of the paper with frame (also ''draw'' permit write free-text in paper). &lt;br /&gt;
&lt;br /&gt;
Maximun 20 notes by map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; note &amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;file|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;maplimits|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;dimen|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;scale (text)|(text) : Type of note and text to show.&amp;lt;br&amp;gt;When free text, use '|' to break lines and '.' as first character to center line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; text (text) : Another roption to enter the same as inline note text;&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of note.&lt;br /&gt;
&lt;br /&gt;
; angle (number) : ''number'' of degrees to rotate (do not work fine).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Note keywords and free text&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_note_ml.png  |note :maplimits&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_dimen.png|note :dimen&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scale.png|note :scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_free.png|note free text|in multiple lines&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_freec.png|note .free text|.in multiple [...]&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scaler.png|note :scale scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br&amp;gt;&amp;amp;nbsp;angle 90&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== draw ===&lt;br /&gt;
&lt;br /&gt;
Simple script language to draw predefined postscript code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; draw [none|paper|maparea|free] :  &lt;br /&gt;
''paper'': before any map feature is drawn (equivalent to place inside ''paper'' block); &amp;lt;br&amp;gt;&lt;br /&gt;
''maparea'' before the last elements of the map (equivalent to place inside ''mapare'' block) ; &amp;lt;br&amp;gt;&lt;br /&gt;
''none'': draw over all elements of the map but only in the map area; and &amp;lt;br&amp;gt;&lt;br /&gt;
''free'': after all map features are drawn in any place of the paper; and ''none''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; --- : &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_north1.png   |&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;north 700000 4700000&amp;lt;/source&amp;gt;&lt;br /&gt;
File:ps_out_north2.png   |north 5cm 16.5cm -&lt;br /&gt;
File:ps_out_maplimits.png|maplimits&lt;br /&gt;
File:ps_out_compass.png  |compass 700000 4700000 10000 10.2345&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Raster maps ==&lt;br /&gt;
&lt;br /&gt;
=== raster ===&lt;br /&gt;
&lt;br /&gt;
Draw one or two raster maps on the maparea. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; raster (raster|raster.1 raster.2|raster.R raster.G raster.B|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;group) : The ''raster'' value is the raster mapname, two raster maps ''raster.1'' or color and ''raster.2'' or shade to draw as relief map, three maps ''raster.R'', ''raster.G'' and ''raster.B'' to draw as RGB, or a groupname (leader by ':') with tree RGB maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; grey yes|no : Store and draw the rasters in grey scale (small size of file).&amp;lt;br&amp;gt;The conversion follows the NTSC video standard.&lt;br /&gt;
&lt;br /&gt;
; maskcell (raster.1 [raster.2]) : Set the ''raster.1'' map to use as mask (independent of the mask set in GRASS with [[r.mask]]) and, optionally, the ''raster.2'' map uses as background.&amp;lt;br&amp;gt;The background ''raster.2'' is painted in grey scale (NTSC) and tinted with ''maskcolor''.&lt;br /&gt;
&lt;br /&gt;
; maskcolor (color|none) : Set the ''color'' of the mask area.&amp;lt;br&amp;gt;If a raster map as background is set then it's drawn with a scale white-maskcolor.&lt;br /&gt;
&lt;br /&gt;
; outline : Block ''line''. Outline of categories.&lt;br /&gt;
&lt;br /&gt;
; setcolor null|default|(number) (color) : Replace the color of the cat ''number'' area with a new color.&amp;lt;br&amp;gt;Multiple ''setcolor'' are possibles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following gallery show the output of the commands inside the '''raster''' block (all mapnames are of type ''raster'').&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_raster1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_outline.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;outline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width .2mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;end&amp;lt;br/&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_setcolor.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor white&amp;lt;br&amp;gt;&amp;amp;nbsp;setcolor 37 magenta&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_grey.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;grey yes&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Vector maps ==&lt;br /&gt;
&lt;br /&gt;
All vector map accept optionally the following commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; layer (number) : Layer number used with cats/where option.&lt;br /&gt;
&lt;br /&gt;
; cats (n1,n2,...) : List of ''cat''s to show.&lt;br /&gt;
&lt;br /&gt;
; where (text) : Argument of the SQL where clausule to filter the areas to show.&lt;br /&gt;
&lt;br /&gt;
; masked yes|no : Masked or not by raster mask (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; label (text) : For description or title in ''vlegend''.&lt;br /&gt;
&lt;br /&gt;
; legend [(number)]: Position in legend (-1, no legend) or enter in a block ''legend''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vareas ===&lt;br /&gt;
&lt;br /&gt;
Draw areas on the map.&amp;lt;br&amp;gt;&lt;br /&gt;
The areas always are drawn first, on the bottom of other type of maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vareas (vector) : ''vector'' is a vector of areas, except when ''lwidth'' is different to zero that ''vector'' is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type area|line : Default ''area''.&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Style of the boundary.&lt;br /&gt;
&lt;br /&gt;
; fill : Block ''fill''. Style of the area.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic fill color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Text label when default conditions.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with label the ''text'' and title the text of the ''label''. Also, the fillcolor of the areas of the map with ''column'' &amp;gt;= n1 and ''column'' &amp;lt; n2  (''column'' from ''fcolor''), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; island yes|no : Draw island as normal areas (fill as normal area then hide it).&lt;br /&gt;
&lt;br /&gt;
; lwidth (dimen) : Line map draws as an area with a width = ''lwidth''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vareas: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vareas0.png|&amp;amp;nbsp;vareas geology&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;where GEO_NAME like 'Zb'&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;fcolor indigo&amp;lt;br&amp;gt;&amp;amp;nbsp;end&lt;br /&gt;
File:ps_out_vareas3.png|''with ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;pat ../patterns/diag_up.eps&amp;lt;br&amp;gt;&amp;amp;nbsp;pscale .5&lt;br /&gt;
File:ps_out_vareas1.png|''with ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;fcolor none cat&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 0-500:red A&amp;lt;br/&amp;gt;&amp;amp;nbsp;setrule 500-1000:green B&amp;lt;br/&amp;gt;&amp;amp;nbsp;setrule 1000-5000:blue C&lt;br /&gt;
File:ps_out_vareas2.png|''with ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;island no&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlines ===&lt;br /&gt;
&lt;br /&gt;
Draw lines on the map.&amp;lt;br&amp;gt;The areas always are drawn second, after ''vareas'' and before ''vpoints''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlines (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of lines, except if ''type'' is boundary that ''vector'' is a vector of areas.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Optional commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type line|boundary : Draw boundaries of a vector of areas or lines of a vector of lines (default ''line'').&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Normal line.&lt;br /&gt;
&lt;br /&gt;
; hline : Block ''line''. Highlight line.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Works with ''hline'' to offset from the center of ''line''.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Define dynamic color of lines from the database ''column.1'' or, optionally, conditional color to apply color from rule sof the datbase ''column.2''.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Label in legend when default values and ''setcolor'' rules.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with ''text'' as label and title the text of the ''label''. Also, the color of the normal line with column &amp;gt;= n1 and column &amp;lt; n2 (column from rgbcol), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlines: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlines0.png|''Effect of the ''hline'' block ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;hline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width 1mm&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color red&amp;lt;br&amp;gt;&amp;amp;nbsp;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vpoints ===&lt;br /&gt;
&lt;br /&gt;
Draw points on the map.&amp;lt;br&amp;gt;The points always are drawn last, after ''vareas'' and ''vlines''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vpoints (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of points, except when '''type''' is ''centroid'' or ''boundary'' that it is a vector of areas, or when '''type''' is ''line'' that it is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; type centroid|line|boundary|point : Type of draw (default ''point'').&lt;br /&gt;
&lt;br /&gt;
; symbol (epsfile) : Symbol to use (default: basic/circle).&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Type of line in the symbol.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color): Static fillcolor of the symbol.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Offset of the symbol.&lt;br /&gt;
&lt;br /&gt;
; rotate (number|column) : Angle to rotate the symbol, static ''number'' or dynamic in a ''column'' of the database.&lt;br /&gt;
&lt;br /&gt;
; size (number|column [number]) : Size of the symbol take from ''number'' or from a ''column'' of the database. In the last option, there is a optional ''number'' to define the static size of the symbol in the legend when the size of symbols are dynamic. &lt;br /&gt;
&lt;br /&gt;
; scale (dimen.1 [dimen.2]) : Rescale the size of the symbol by the ''dimen.1'' and, optionally, add a ''dimen.2''. i.e., ''resize = dimen.1 * size + dimen.2''.&lt;br /&gt;
&lt;br /&gt;
; setsize (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;size] text) : Variable size of symbols from data in ''column'' of database set in ''size''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands when type is line&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; dist (dimen) : Define the distance in paper between symbol over the line.&lt;br /&gt;
&lt;br /&gt;
; cline : Block ''line''. Type of line that connect symbols.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vpoints: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vpoints0.png|''Points with same size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size 5&lt;br /&gt;
File:ps_out_vpoints1.png|''Points with dynamic size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT 5&amp;lt;br&amp;gt;&amp;amp;nbsp;scale 0.01 2&lt;br /&gt;
File:ps_out_vpoints2.png|''Points with conditional size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 200-1000:3 &amp;lt; 1000&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 1000-2500:9 &amp;gt; 1000&lt;br /&gt;
File:ps_out_vpoints3.png|''Points on line ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;type line&amp;lt;br&amp;gt;&amp;amp;nbsp;dist 1cm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlabels ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;in progress&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlabels none|(vector) :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; font :&lt;br /&gt;
&lt;br /&gt;
; labelcol (column) :&lt;br /&gt;
&lt;br /&gt;
; decimals (number) :&lt;br /&gt;
&lt;br /&gt;
; circled yes|no :&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2 text)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlabels0.png|vpoints firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;[...]&amp;lt;br/n&amp;gt;end&amp;lt;br/&amp;gt;vlabels firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;labelcol PUMPERS&amp;lt;br/n&amp;gt;&amp;amp;nbsp;font&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;name Univers-Bold&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;size 10&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color yellow&amp;lt;br/n&amp;gt;&amp;amp;nbsp;end&amp;lt;br/n&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Legend of the maps ==&lt;br /&gt;
&lt;br /&gt;
=== rlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the raster map.&amp;lt;br&amp;gt;The units ''meters'' in the gradient legend is set with [[r.support]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; rlegend [text] : Text is the title of the legend. &lt;br /&gt;
&lt;br /&gt;
; raster (raster) : the ''raster'' map to take the data of legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commads are optionals&amp;lt;/U&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; titlefont : Block ''font'' for the legend header.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font'' for the normal text.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Width of the symbol area.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For category legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; cols (number) [(number)] : Number of columns with symbols and separation between columns (default ''1'').&lt;br /&gt;
&lt;br /&gt;
; nodata yes|no : Remove category ''no data''.&lt;br /&gt;
&lt;br /&gt;
; order (n1,n2,...) : To reorder items.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For gradient legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; height (dimen), width (dimen) : Dimension of the frame with the legend.&lt;br /&gt;
&lt;br /&gt;
; vertical yes|no : Orientation of the gradient legend (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; range (n1 n2) : Manual set of the data range for legend.&lt;br /&gt;
&lt;br /&gt;
; gradient yes|no : Forze draw gradient legend with category data.&lt;br /&gt;
&lt;br /&gt;
; tick (dimen) : Length of the ticks.&lt;br /&gt;
&lt;br /&gt;
; whiteframe (dimen) : Width of the white frame around the bar color.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;250px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_rlegend.png|rlegend Zip Codes (wake)&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster zipcodes_wake&amp;lt;br/&amp;gt;&amp;amp;nbsp;cols 2 0&amp;lt;br/&amp;gt;&amp;amp;nbsp;swidth 8mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;order 20,10,30,22,34&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend1.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;height 8cm&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend2.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;width 8cm&amp;lt;br/&amp;gt;&amp;amp;nbsp;vertical no&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the vector maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlegend [text] : Optional the title or head of the legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; title : Block ''font'' for title of legend.&lt;br /&gt;
&lt;br /&gt;
; font : Block font for normal text of legend.&lt;br /&gt;
&lt;br /&gt;
; frame : &lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]) : Distribution of the items in ''number.1'' cols. Optionaly, ''number.2'' of span between columns.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Symbol width.&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Space between lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlegend: sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_output_vlegend0.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: ps.map]]&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12033</id>
		<title>Ps.output</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12033"/>
		<updated>2010-10-31T15:31:30Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: /* vareas */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ps.out''' try to update the standard postscript output of Grass adding new features to design borders, graticules, categorized legends, etc&lt;br /&gt;
&lt;br /&gt;
'''This is in progress and not all features are yet uploaded in ''addons''. '''&lt;br /&gt;
&lt;br /&gt;
== Command line flags ==&lt;br /&gt;
&lt;br /&gt;
'''-d ''': Draw a 1x1 cm grid on paper to help the placement of the elements of the map.&lt;br /&gt;
&lt;br /&gt;
'''-e''': Make an output file without the postscript header. Useful when is embebed into other ''ps.out'' map.&lt;br /&gt;
&lt;br /&gt;
'''-g''': Use the extended PostScript of Ghostscript (for transparent colors only)&lt;br /&gt;
&lt;br /&gt;
'''-s''': Draw the small digit in the coordinate numbers to lower instead upper possition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;100px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_grid.png|A4 paper with flag -d &lt;br /&gt;
File:ps_out_digit_upper.png|coordinate&lt;br /&gt;
File:ps_out_digit_lower.png|coordinate with flag -s&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generic Instructions ==&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== dimen ====&lt;br /&gt;
&lt;br /&gt;
Define a dimension. Accepted units are:&lt;br /&gt;
&lt;br /&gt;
*; ''unitless'' : e.g. 123. The dimension is the ''number'' by 1/72&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
*; inch : e.g. 1.2inch. &lt;br /&gt;
&lt;br /&gt;
*; milimeters : e.g. 2.3mm.&lt;br /&gt;
&lt;br /&gt;
*; centimeters : e.g. 1.4cm.&lt;br /&gt;
&lt;br /&gt;
*; percentage : e.g. 50%.&amp;lt;br&amp;gt;The position is relative to the size and position of the map in the paper being ''0%'' the left or bottom corner.&lt;br /&gt;
&lt;br /&gt;
==== color ====&lt;br /&gt;
&lt;br /&gt;
Define a color. Accepted formats are:&lt;br /&gt;
&lt;br /&gt;
*; standard GRASS name : e.g. indigo.&lt;br /&gt;
&lt;br /&gt;
*; R&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;G&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;B : e.g. 200:123:90&lt;br /&gt;
&lt;br /&gt;
*; user name : e.g. red5.&amp;lt;br&amp;gt;Defined in ''palette'' block&lt;br /&gt;
&lt;br /&gt;
All formats can add '$(0-1)' to define the opacity of the color (alpha channel); e.g., indigo$.75 or 200:120:120$.2&lt;br /&gt;
&lt;br /&gt;
==== number ====&lt;br /&gt;
&lt;br /&gt;
==== text ====&lt;br /&gt;
&lt;br /&gt;
=== Blocks of instructions ===&lt;br /&gt;
&lt;br /&gt;
A ''block'' begin with the keywords and finish with keyword ''end''&lt;br /&gt;
&lt;br /&gt;
==== font ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a font.&lt;br /&gt;
&lt;br /&gt;
; name (text) : Name of font.&lt;br /&gt;
&lt;br /&gt;
; size (dimen) : Size of font.&lt;br /&gt;
&lt;br /&gt;
; extend (dimen): Expand the width of font.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of font.&lt;br /&gt;
&lt;br /&gt;
; outline yes|no : Outline of the font.&lt;br /&gt;
&lt;br /&gt;
==== line ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a line.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of line.&lt;br /&gt;
&lt;br /&gt;
; color (color) : COlor of line.&lt;br /&gt;
&lt;br /&gt;
; style solid|dashed|dotted|dashdotted|(n1n2...) : Style of line.&lt;br /&gt;
&lt;br /&gt;
; cap butt|round|extended_butt : Cap&lt;br /&gt;
&lt;br /&gt;
==== frame ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a frame.&lt;br /&gt;
&lt;br /&gt;
; where (dimen.1 dimen.2) : Position of frame.&lt;br /&gt;
&lt;br /&gt;
; offset (number.1 number.2) : Fine x and y adjust of the position of frame.&lt;br /&gt;
&lt;br /&gt;
; ref right|left|center upper|lower|center : Position is relative to the ''ref''.&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border line&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of the border line.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the frame.&lt;br /&gt;
&lt;br /&gt;
; rotate (dimen) : &amp;lt;u&amp;gt;todo&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== legend ====&lt;br /&gt;
&lt;br /&gt;
; lpos (number): Position in legend&amp;lt;br&amp;gt;Codes: -1, no show in legend; 0 automatic position; &amp;gt; 0 horizontal position.&lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]): Organize legend in ''number.1'' cols with a optional span of ''number.2''&lt;br /&gt;
&lt;br /&gt;
; interline (dimen): Set partial legend interline&lt;br /&gt;
&lt;br /&gt;
== Map paper ==&lt;br /&gt;
&lt;br /&gt;
=== paper ===&lt;br /&gt;
&lt;br /&gt;
Size of paper. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; paper [A0-6|B0-6|Legal|Ledger|Tabloid|Executive|Folio] : Type of paper (default A4).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; color (color) : Paper color.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Custom size of paper.&lt;br /&gt;
&lt;br /&gt;
; left (dimen), right (dimen), top (dimen), bottom (dimen) : Custom margins (default 0.5&amp;quot; left and right, and 1&amp;quot; top and bottom).&lt;br /&gt;
&lt;br /&gt;
; landscape yes|no : Paper orientation (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''. Set the default font of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''. Free draw as watermarks, before any feature of the map is drawn (see ''draw'').&lt;br /&gt;
&lt;br /&gt;
=== scale ===&lt;br /&gt;
&lt;br /&gt;
Scale of the map.&lt;br /&gt;
&lt;br /&gt;
Simple line command to define the scale of the map. The default is adjust map to the paper dimensions. If the remaining dimensions of the paper not permit the scale, ''ps.out'' adjust the scale to a new value that it fit in the paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scale 1&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;(number) : Scale of map.&amp;lt;br&amp;gt;For example, ''scale 1:500000'' to rescale maparea dimensions.&lt;br /&gt;
&lt;br /&gt;
=== maparea ===&lt;br /&gt;
Define specific dimensions of the map (default defined by command ''scale'')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; maparea : Define characteristics of the map area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border map.&amp;lt;br&amp;gt;Usefull with ''in'' and ''out'' formats of the ''grid'' and ''geogrid'', ignored in ''iho'' and ''can'' formats.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Border color-&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the map area.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Dimensions of the map.&lt;br /&gt;
&lt;br /&gt;
; top (dimen), bottom (dimen) : Position of the top-left corner of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''.&amp;lt;br&amp;gt;Draw onto the map but before the grid lines, vpoints and vlabels are drawn; i.e. this map elements are drawn over the draw elements.&lt;br /&gt;
&lt;br /&gt;
=== palette ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;testing&amp;lt;/U&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; palette&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; wheel (number text) :&lt;br /&gt;
&lt;br /&gt;
; monochrome (color number text) :&lt;br /&gt;
&lt;br /&gt;
; complementary (color number text) :&lt;br /&gt;
&lt;br /&gt;
; analogous (color number text) :&lt;br /&gt;
&lt;br /&gt;
; gradient (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; diverging (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
== Common elements ==&lt;br /&gt;
&lt;br /&gt;
=== grid and geogrid ===&lt;br /&gt;
&lt;br /&gt;
Draw a border around the map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; grid|geogrid :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; format in|out|+out|can|iho : Type of border (see examples).&lt;br /&gt;
&lt;br /&gt;
; major (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; minor (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; subminor (number) : ''number'' of subdivisons of the minor divisions.&lt;br /&gt;
&lt;br /&gt;
; trim (number) : Cut trailing zeros.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Color of the border.&lt;br /&gt;
&lt;br /&gt;
; cross (number) : Replace lines by cross&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_iho.png|format iho&lt;br /&gt;
File:ps_out_can.png|format can&lt;br /&gt;
File:ps_out_in.png |format in&lt;br /&gt;
File:ps_out_out.png|format +out&lt;br /&gt;
File:ps_out_out1.png|typical map border&lt;br /&gt;
File:ps_out_out2.png|typical map border with ''subminor 5'' and ''fcolor blue''&lt;br /&gt;
File:ps_out_out3.png|''cross 500'', ''fcolor indigo'', ''color 200:200:200'' in '''maparea'''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== scalebar ===&lt;br /&gt;
&lt;br /&gt;
Set a scalebar on the map.&amp;lt;br&amp;gt;Maximun 5 scalebars in each map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scalebar I|s|S|f|F : Define the type of scalebar (I: inner, s/S: simple, f/F: fill).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; length (number) : Length of the scale.&lt;br /&gt;
&lt;br /&gt;
; units meters|m|kilometers|km|feet|ft|miles|mil|nautical_miles|nm ([text]) : Unit of the length and ''text' to label the units.&lt;br /&gt;
&lt;br /&gt;
; major (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; minor (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor.&lt;br /&gt;
&lt;br /&gt;
; height (dimen) : Height of the bar or ticks.&lt;br /&gt;
&lt;br /&gt;
; zero yes|no : Set position relative to zero value of the scalebar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Scalerbar styles&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;50px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_scalebar_s.png|scalebar s&lt;br /&gt;
File:ps_out_scalebar_S.png|scalebar S&lt;br /&gt;
File:ps_out_scalebar_I.png|scalebar I (uppercase i)&lt;br /&gt;
File:ps_out_scalebar_f.png|scalebar f&lt;br /&gt;
File:ps_out_scalebar_F.png|scalebar F&lt;br /&gt;
File:ps_out_scalebar_3.png|Multiple scalebars zero centered with ''zero yes''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== note ===&lt;br /&gt;
Write special text or free text on any place of the paper with frame (also ''draw'' permit write free-text in paper). &lt;br /&gt;
&lt;br /&gt;
Maximun 20 notes by map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; note &amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;file|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;maplimits|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;dimen|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;scale (text)|(text) : Type of note and text to show.&amp;lt;br&amp;gt;When free text, use '|' to break lines and '.' as first character to center line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; text (text) : Another roption to enter the same as inline note text;&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of note.&lt;br /&gt;
&lt;br /&gt;
; angle (number) : ''number'' of degrees to rotate (do not work fine).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Note keywords and free text&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_note_ml.png  |note :maplimits&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_dimen.png|note :dimen&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scale.png|note :scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_free.png|note free text|in multiple lines&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_freec.png|note .free text|.in multiple [...]&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scaler.png|note :scale scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br&amp;gt;&amp;amp;nbsp;angle 90&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== draw ===&lt;br /&gt;
&lt;br /&gt;
Simple script language to draw predefined postscript code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; draw [none|paper|maparea|free] :  &lt;br /&gt;
''paper'': before any map feature is drawn (equivalent to place inside ''paper'' block); &amp;lt;br&amp;gt;&lt;br /&gt;
''maparea'' before the last elements of the map (equivalent to place inside ''mapare'' block) ; &amp;lt;br&amp;gt;&lt;br /&gt;
''none'': draw over all elements of the map but only in the map area; and &amp;lt;br&amp;gt;&lt;br /&gt;
''free'': after all map features are drawn in any place of the paper; and ''none''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; --- : &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_north1.png   |&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;north 700000 4700000&amp;lt;/source&amp;gt;&lt;br /&gt;
File:ps_out_north2.png   |north 5cm 16.5cm -&lt;br /&gt;
File:ps_out_maplimits.png|maplimits&lt;br /&gt;
File:ps_out_compass.png  |compass 700000 4700000 10000 10.2345&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Raster maps ==&lt;br /&gt;
&lt;br /&gt;
=== raster ===&lt;br /&gt;
&lt;br /&gt;
Draw one or two raster maps on the maparea. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; raster (raster|raster.1 raster.2|raster.R raster.G raster.B|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;group) : The ''raster'' value is the raster mapname, two raster maps ''raster.1'' or color and ''raster.2'' or shade to draw as relief map, three maps ''raster.R'', ''raster.G'' and ''raster.B'' to draw as RGB, or a groupname (leader by ':') with tree RGB maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; grey yes|no : Store and draw the rasters in grey scale (small size of file).&amp;lt;br&amp;gt;The conversion follows the NTSC video standard.&lt;br /&gt;
&lt;br /&gt;
; maskcell (raster.1 [raster.2]) : Set the ''raster.1'' map to use as mask (independent of the mask set in GRASS with [[r.mask]]) and, optionally, the ''raster.2'' map uses as background.&amp;lt;br&amp;gt;The background ''raster.2'' is painted in grey scale (NTSC) and tinted with ''maskcolor''.&lt;br /&gt;
&lt;br /&gt;
; maskcolor (color|none) : Set the ''color'' of the mask area.&amp;lt;br&amp;gt;If a raster map as background is set then it's drawn with a scale white-maskcolor.&lt;br /&gt;
&lt;br /&gt;
; outline : Block ''line''. Outline of categories.&lt;br /&gt;
&lt;br /&gt;
; setcolor null|default|(number) (color) : Replace the color of the cat ''number'' area with a new color.&amp;lt;br&amp;gt;Multiple ''setcolor'' are possibles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following gallery show the output of the commands inside the '''raster''' block (all mapnames are of type ''raster'').&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_raster1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_outline.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;outline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width .2mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;end&amp;lt;br/&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_setcolor.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor white&amp;lt;br&amp;gt;&amp;amp;nbsp;setcolor 37 magenta&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_grey.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;grey yes&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Vector maps ==&lt;br /&gt;
&lt;br /&gt;
All vector map accept optionally the following commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; layer (number) : Layer number used with cats/where option.&lt;br /&gt;
&lt;br /&gt;
; cats (n1,n2,...) : List of ''cat''s to show.&lt;br /&gt;
&lt;br /&gt;
; where (text) : Argument of the SQL where clausule to filter the areas to show.&lt;br /&gt;
&lt;br /&gt;
; masked yes|no : Masked or not by raster mask (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; label (text) : For description or title in ''vlegend''.&lt;br /&gt;
&lt;br /&gt;
; legend [(number)]: Position in legend (-1, no legend) or enter in a block ''legend''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vareas ===&lt;br /&gt;
&lt;br /&gt;
Draw areas on the map.&amp;lt;br&amp;gt;&lt;br /&gt;
The areas always are drawn first, on the bottom of other type of maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vareas (vector) : ''vector'' is a vector of areas, except when ''lwidth'' is different to zero that ''vector'' is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type area|line : Default ''area''.&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Style of the boundary.&lt;br /&gt;
&lt;br /&gt;
; fill : Block ''fill''. Style of the area.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic fill color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Text label when default conditions.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with label the ''text'' and title the text of the ''label''. Also, the fillcolor of the areas of the map with ''column'' &amp;gt;= n1 and ''column'' &amp;lt; n2  (''column'' from ''fcolor''), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; island yes|no : Draw island as normal areas (fill as normal area then hide it).&lt;br /&gt;
&lt;br /&gt;
; lwidth (dimen) : Line map draws as an area with a width = ''lwidth''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vareas: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vareas0.png|&amp;amp;nbsp;vareas geology&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;where GEO_NAME like 'Zb'&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;fcolor indigo&amp;lt;br&amp;gt;&amp;amp;nbsp;end&lt;br /&gt;
File:ps_out_vareas3.png|''with ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;pat ../patterns/diag_up.eps&amp;lt;br&amp;gt;&amp;amp;nbsp;pscale .5&lt;br /&gt;
File:ps_out_vareas1.png|''with ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;fcolor none cat&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 0-500:red A&amp;lt;br/&amp;gt;&amp;amp;nbsp;setrule 500-1000:green B&amp;lt;br/&amp;gt;&amp;amp;nbsp;setrule 1000-5000:blue C&lt;br /&gt;
File:ps_out_vareas2.png|''with ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;island no&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlines ===&lt;br /&gt;
&lt;br /&gt;
Draw lines on the map.&amp;lt;br&amp;gt;The areas always are drawn second, after ''vareas'' and before ''vpoints''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlines (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of lines, except if ''type'' is boundary that ''vector'' is a vector of areas.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type boundary|line : Draw boundaries of a vector of areas or lines of a vector of lines (default ''line'').&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Normal line.&lt;br /&gt;
&lt;br /&gt;
; hline : Block ''line''. Highlight line.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Works with ''hline'' to offset from the center of ''line''.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Define the database ''column.1'' to take the lines colors and, optionally, a ''column.2'' of database to apply color from the rules (''setcolor'').&lt;br /&gt;
&lt;br /&gt;
; setcolor (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with ''text'' as label and title the text of the ''label''. Also, the color of the normal line with column &amp;gt;= n1 and column &amp;lt; n2 (column from rgbcol), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
; setnodata (text) : Label in legend when default values and ''setcolor'' rules.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlines: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlines0.png|''Effect of the ''hline'' block ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;hline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width 1mm&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color red&amp;lt;br&amp;gt;&amp;amp;nbsp;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vpoints ===&lt;br /&gt;
&lt;br /&gt;
Draw points on the map.&amp;lt;br&amp;gt;The points always are drawn last, after ''vareas'' and ''vlines''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vpoints (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of points, except when '''type''' is ''centroid'' or ''boundary'' that it is a vector of areas, or when '''type''' is ''line'' that it is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; type centroid|line|boundary|point : Type of draw (default ''point'').&lt;br /&gt;
&lt;br /&gt;
; symbol (epsfile) : Symbol to use (default: basic/circle).&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Type of line in the symbol.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color): Static fillcolor of the symbol.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Offset of the symbol.&lt;br /&gt;
&lt;br /&gt;
; rotate (number|column) : Angle to rotate the symbol, static ''number'' or dynamic in a ''column'' of the database.&lt;br /&gt;
&lt;br /&gt;
; size (number|column [number]) : Size of the symbol take from ''number'' or from a ''column'' of the database. In the last option, there is a optional ''number'' to define the static size of the symbol in the legend when the size of symbols are dynamic. &lt;br /&gt;
&lt;br /&gt;
; scale (dimen.1 [dimen.2]) : Rescale the size of the symbol by the ''dimen.1'' and, optionally, add a ''dimen.2''. i.e., ''resize = dimen.1 * size + dimen.2''.&lt;br /&gt;
&lt;br /&gt;
; setsize (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;size] text) : Variable size of symbols from data in ''column'' of database set in ''size''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands when type is line&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; dist (dimen) : Define the distance in paper between symbol over the line.&lt;br /&gt;
&lt;br /&gt;
; cline : Block ''line''. Type of line that connect symbols.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vpoints: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vpoints0.png|''Points with same size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size 5&lt;br /&gt;
File:ps_out_vpoints1.png|''Points with dynamic size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT 5&amp;lt;br&amp;gt;&amp;amp;nbsp;scale 0.01 2&lt;br /&gt;
File:ps_out_vpoints2.png|''Points with conditional size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 200-1000:3 &amp;lt; 1000&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 1000-2500:9 &amp;gt; 1000&lt;br /&gt;
File:ps_out_vpoints3.png|''Points on line ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;type line&amp;lt;br&amp;gt;&amp;amp;nbsp;dist 1cm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlabels ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;in progress&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlabels none|(vector) :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; font :&lt;br /&gt;
&lt;br /&gt;
; labelcol (column) :&lt;br /&gt;
&lt;br /&gt;
; decimals (number) :&lt;br /&gt;
&lt;br /&gt;
; circled yes|no :&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2 text)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlabels0.png|vpoints firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;[...]&amp;lt;br/n&amp;gt;end&amp;lt;br/&amp;gt;vlabels firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;labelcol PUMPERS&amp;lt;br/n&amp;gt;&amp;amp;nbsp;font&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;name Univers-Bold&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;size 10&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color yellow&amp;lt;br/n&amp;gt;&amp;amp;nbsp;end&amp;lt;br/n&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Legend of the maps ==&lt;br /&gt;
&lt;br /&gt;
=== rlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the raster map.&amp;lt;br&amp;gt;The units ''meters'' in the gradient legend is set with [[r.support]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; rlegend [text] : Text is the title of the legend. &lt;br /&gt;
&lt;br /&gt;
; raster (raster) : the ''raster'' map to take the data of legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commads are optionals&amp;lt;/U&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; titlefont : Block ''font'' for the legend header.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font'' for the normal text.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Width of the symbol area.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For category legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; cols (number) [(number)] : Number of columns with symbols and separation between columns (default ''1'').&lt;br /&gt;
&lt;br /&gt;
; nodata yes|no : Remove category ''no data''.&lt;br /&gt;
&lt;br /&gt;
; order (n1,n2,...) : To reorder items.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For gradient legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; height (dimen), width (dimen) : Dimension of the frame with the legend.&lt;br /&gt;
&lt;br /&gt;
; vertical yes|no : Orientation of the gradient legend (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; range (n1 n2) : Manual set of the data range for legend.&lt;br /&gt;
&lt;br /&gt;
; gradient yes|no : Forze draw gradient legend with category data.&lt;br /&gt;
&lt;br /&gt;
; tick (dimen) : Length of the ticks.&lt;br /&gt;
&lt;br /&gt;
; whiteframe (dimen) : Width of the white frame around the bar color.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;250px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_rlegend.png|rlegend Zip Codes (wake)&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster zipcodes_wake&amp;lt;br/&amp;gt;&amp;amp;nbsp;cols 2 0&amp;lt;br/&amp;gt;&amp;amp;nbsp;swidth 8mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;order 20,10,30,22,34&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend1.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;height 8cm&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend2.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;width 8cm&amp;lt;br/&amp;gt;&amp;amp;nbsp;vertical no&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the vector maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlegend [text] : Optional the title or head of the legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; title : Block ''font'' for title of legend.&lt;br /&gt;
&lt;br /&gt;
; font : Block font for normal text of legend.&lt;br /&gt;
&lt;br /&gt;
; frame : &lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]) : Distribution of the items in ''number.1'' cols. Optionaly, ''number.2'' of span between columns.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Symbol width.&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Space between lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlegend: sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_output_vlegend0.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: ps.map]]&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12032</id>
		<title>Ps.output</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=12032"/>
		<updated>2010-10-31T15:27:21Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: /* vareas */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ps.out''' try to update the standard postscript output of Grass adding new features to design borders, graticules, categorized legends, etc&lt;br /&gt;
&lt;br /&gt;
'''This is in progress and not all features are yet uploaded in ''addons''. '''&lt;br /&gt;
&lt;br /&gt;
== Command line flags ==&lt;br /&gt;
&lt;br /&gt;
'''-d ''': Draw a 1x1 cm grid on paper to help the placement of the elements of the map.&lt;br /&gt;
&lt;br /&gt;
'''-e''': Make an output file without the postscript header. Useful when is embebed into other ''ps.out'' map.&lt;br /&gt;
&lt;br /&gt;
'''-g''': Use the extended PostScript of Ghostscript (for transparent colors only)&lt;br /&gt;
&lt;br /&gt;
'''-s''': Draw the small digit in the coordinate numbers to lower instead upper possition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;100px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_grid.png|A4 paper with flag -d &lt;br /&gt;
File:ps_out_digit_upper.png|coordinate&lt;br /&gt;
File:ps_out_digit_lower.png|coordinate with flag -s&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generic Instructions ==&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== dimen ====&lt;br /&gt;
&lt;br /&gt;
Define a dimension. Accepted units are:&lt;br /&gt;
&lt;br /&gt;
*; ''unitless'' : e.g. 123. The dimension is the ''number'' by 1/72&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
*; inch : e.g. 1.2inch. &lt;br /&gt;
&lt;br /&gt;
*; milimeters : e.g. 2.3mm.&lt;br /&gt;
&lt;br /&gt;
*; centimeters : e.g. 1.4cm.&lt;br /&gt;
&lt;br /&gt;
*; percentage : e.g. 50%.&amp;lt;br&amp;gt;The position is relative to the size and position of the map in the paper being ''0%'' the left or bottom corner.&lt;br /&gt;
&lt;br /&gt;
==== color ====&lt;br /&gt;
&lt;br /&gt;
Define a color. Accepted formats are:&lt;br /&gt;
&lt;br /&gt;
*; standard GRASS name : e.g. indigo.&lt;br /&gt;
&lt;br /&gt;
*; R&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;G&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;B : e.g. 200:123:90&lt;br /&gt;
&lt;br /&gt;
*; user name : e.g. red5.&amp;lt;br&amp;gt;Defined in ''palette'' block&lt;br /&gt;
&lt;br /&gt;
All formats can add '$(0-1)' to define the opacity of the color (alpha channel); e.g., indigo$.75 or 200:120:120$.2&lt;br /&gt;
&lt;br /&gt;
==== number ====&lt;br /&gt;
&lt;br /&gt;
==== text ====&lt;br /&gt;
&lt;br /&gt;
=== Blocks of instructions ===&lt;br /&gt;
&lt;br /&gt;
A ''block'' begin with the keywords and finish with keyword ''end''&lt;br /&gt;
&lt;br /&gt;
==== font ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a font.&lt;br /&gt;
&lt;br /&gt;
; name (text) : Name of font.&lt;br /&gt;
&lt;br /&gt;
; size (dimen) : Size of font.&lt;br /&gt;
&lt;br /&gt;
; extend (dimen): Expand the width of font.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of font.&lt;br /&gt;
&lt;br /&gt;
; outline yes|no : Outline of the font.&lt;br /&gt;
&lt;br /&gt;
==== line ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a line.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of line.&lt;br /&gt;
&lt;br /&gt;
; color (color) : COlor of line.&lt;br /&gt;
&lt;br /&gt;
; style solid|dashed|dotted|dashdotted|(n1n2...) : Style of line.&lt;br /&gt;
&lt;br /&gt;
; cap butt|round|extended_butt : Cap&lt;br /&gt;
&lt;br /&gt;
==== frame ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a frame.&lt;br /&gt;
&lt;br /&gt;
; where (dimen.1 dimen.2) : Position of frame.&lt;br /&gt;
&lt;br /&gt;
; offset (number.1 number.2) : Fine x and y adjust of the position of frame.&lt;br /&gt;
&lt;br /&gt;
; ref right|left|center upper|lower|center : Position is relative to the ''ref''.&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border line&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of the border line.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the frame.&lt;br /&gt;
&lt;br /&gt;
; rotate (dimen) : &amp;lt;u&amp;gt;todo&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== legend ====&lt;br /&gt;
&lt;br /&gt;
; lpos (number): Position in legend&amp;lt;br&amp;gt;Codes: -1, no show in legend; 0 automatic position; &amp;gt; 0 horizontal position.&lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]): Organize legend in ''number.1'' cols with a optional span of ''number.2''&lt;br /&gt;
&lt;br /&gt;
; interline (dimen): Set partial legend interline&lt;br /&gt;
&lt;br /&gt;
== Map paper ==&lt;br /&gt;
&lt;br /&gt;
=== paper ===&lt;br /&gt;
&lt;br /&gt;
Size of paper. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; paper [A0-6|B0-6|Legal|Ledger|Tabloid|Executive|Folio] : Type of paper (default A4).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; color (color) : Paper color.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Custom size of paper.&lt;br /&gt;
&lt;br /&gt;
; left (dimen), right (dimen), top (dimen), bottom (dimen) : Custom margins (default 0.5&amp;quot; left and right, and 1&amp;quot; top and bottom).&lt;br /&gt;
&lt;br /&gt;
; landscape yes|no : Paper orientation (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''. Set the default font of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''. Free draw as watermarks, before any feature of the map is drawn (see ''draw'').&lt;br /&gt;
&lt;br /&gt;
=== scale ===&lt;br /&gt;
&lt;br /&gt;
Scale of the map.&lt;br /&gt;
&lt;br /&gt;
Simple line command to define the scale of the map. The default is adjust map to the paper dimensions. If the remaining dimensions of the paper not permit the scale, ''ps.out'' adjust the scale to a new value that it fit in the paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scale 1&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;(number) : Scale of map.&amp;lt;br&amp;gt;For example, ''scale 1:500000'' to rescale maparea dimensions.&lt;br /&gt;
&lt;br /&gt;
=== maparea ===&lt;br /&gt;
Define specific dimensions of the map (default defined by command ''scale'')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; maparea : Define characteristics of the map area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border map.&amp;lt;br&amp;gt;Usefull with ''in'' and ''out'' formats of the ''grid'' and ''geogrid'', ignored in ''iho'' and ''can'' formats.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Border color-&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the map area.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Dimensions of the map.&lt;br /&gt;
&lt;br /&gt;
; top (dimen), bottom (dimen) : Position of the top-left corner of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''.&amp;lt;br&amp;gt;Draw onto the map but before the grid lines, vpoints and vlabels are drawn; i.e. this map elements are drawn over the draw elements.&lt;br /&gt;
&lt;br /&gt;
=== palette ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;testing&amp;lt;/U&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; palette&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; wheel (number text) :&lt;br /&gt;
&lt;br /&gt;
; monochrome (color number text) :&lt;br /&gt;
&lt;br /&gt;
; complementary (color number text) :&lt;br /&gt;
&lt;br /&gt;
; analogous (color number text) :&lt;br /&gt;
&lt;br /&gt;
; gradient (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; diverging (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
== Common elements ==&lt;br /&gt;
&lt;br /&gt;
=== grid and geogrid ===&lt;br /&gt;
&lt;br /&gt;
Draw a border around the map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; grid|geogrid :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; format in|out|+out|can|iho : Type of border (see examples).&lt;br /&gt;
&lt;br /&gt;
; major (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; minor (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; subminor (number) : ''number'' of subdivisons of the minor divisions.&lt;br /&gt;
&lt;br /&gt;
; trim (number) : Cut trailing zeros.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Color of the border.&lt;br /&gt;
&lt;br /&gt;
; cross (number) : Replace lines by cross&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_iho.png|format iho&lt;br /&gt;
File:ps_out_can.png|format can&lt;br /&gt;
File:ps_out_in.png |format in&lt;br /&gt;
File:ps_out_out.png|format +out&lt;br /&gt;
File:ps_out_out1.png|typical map border&lt;br /&gt;
File:ps_out_out2.png|typical map border with ''subminor 5'' and ''fcolor blue''&lt;br /&gt;
File:ps_out_out3.png|''cross 500'', ''fcolor indigo'', ''color 200:200:200'' in '''maparea'''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== scalebar ===&lt;br /&gt;
&lt;br /&gt;
Set a scalebar on the map.&amp;lt;br&amp;gt;Maximun 5 scalebars in each map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scalebar I|s|S|f|F : Define the type of scalebar (I: inner, s/S: simple, f/F: fill).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; length (number) : Length of the scale.&lt;br /&gt;
&lt;br /&gt;
; units meters|m|kilometers|km|feet|ft|miles|mil|nautical_miles|nm ([text]) : Unit of the length and ''text' to label the units.&lt;br /&gt;
&lt;br /&gt;
; major (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; minor (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor.&lt;br /&gt;
&lt;br /&gt;
; height (dimen) : Height of the bar or ticks.&lt;br /&gt;
&lt;br /&gt;
; zero yes|no : Set position relative to zero value of the scalebar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Scalerbar styles&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;50px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_scalebar_s.png|scalebar s&lt;br /&gt;
File:ps_out_scalebar_S.png|scalebar S&lt;br /&gt;
File:ps_out_scalebar_I.png|scalebar I (uppercase i)&lt;br /&gt;
File:ps_out_scalebar_f.png|scalebar f&lt;br /&gt;
File:ps_out_scalebar_F.png|scalebar F&lt;br /&gt;
File:ps_out_scalebar_3.png|Multiple scalebars zero centered with ''zero yes''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== note ===&lt;br /&gt;
Write special text or free text on any place of the paper with frame (also ''draw'' permit write free-text in paper). &lt;br /&gt;
&lt;br /&gt;
Maximun 20 notes by map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; note &amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;file|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;maplimits|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;dimen|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;scale (text)|(text) : Type of note and text to show.&amp;lt;br&amp;gt;When free text, use '|' to break lines and '.' as first character to center line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; text (text) : Another roption to enter the same as inline note text;&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of note.&lt;br /&gt;
&lt;br /&gt;
; angle (number) : ''number'' of degrees to rotate (do not work fine).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Note keywords and free text&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_note_ml.png  |note :maplimits&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_dimen.png|note :dimen&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scale.png|note :scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_free.png|note free text|in multiple lines&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_freec.png|note .free text|.in multiple [...]&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scaler.png|note :scale scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br&amp;gt;&amp;amp;nbsp;angle 90&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== draw ===&lt;br /&gt;
&lt;br /&gt;
Simple script language to draw predefined postscript code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; draw [none|paper|maparea|free] :  &lt;br /&gt;
''paper'': before any map feature is drawn (equivalent to place inside ''paper'' block); &amp;lt;br&amp;gt;&lt;br /&gt;
''maparea'' before the last elements of the map (equivalent to place inside ''mapare'' block) ; &amp;lt;br&amp;gt;&lt;br /&gt;
''none'': draw over all elements of the map but only in the map area; and &amp;lt;br&amp;gt;&lt;br /&gt;
''free'': after all map features are drawn in any place of the paper; and ''none''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; --- : &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_north1.png   |&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;north 700000 4700000&amp;lt;/source&amp;gt;&lt;br /&gt;
File:ps_out_north2.png   |north 5cm 16.5cm -&lt;br /&gt;
File:ps_out_maplimits.png|maplimits&lt;br /&gt;
File:ps_out_compass.png  |compass 700000 4700000 10000 10.2345&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Raster maps ==&lt;br /&gt;
&lt;br /&gt;
=== raster ===&lt;br /&gt;
&lt;br /&gt;
Draw one or two raster maps on the maparea. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; raster (raster|raster.1 raster.2|raster.R raster.G raster.B|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;group) : The ''raster'' value is the raster mapname, two raster maps ''raster.1'' or color and ''raster.2'' or shade to draw as relief map, three maps ''raster.R'', ''raster.G'' and ''raster.B'' to draw as RGB, or a groupname (leader by ':') with tree RGB maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; grey yes|no : Store and draw the rasters in grey scale (small size of file).&amp;lt;br&amp;gt;The conversion follows the NTSC video standard.&lt;br /&gt;
&lt;br /&gt;
; maskcell (raster.1 [raster.2]) : Set the ''raster.1'' map to use as mask (independent of the mask set in GRASS with [[r.mask]]) and, optionally, the ''raster.2'' map uses as background.&amp;lt;br&amp;gt;The background ''raster.2'' is painted in grey scale (NTSC) and tinted with ''maskcolor''.&lt;br /&gt;
&lt;br /&gt;
; maskcolor (color|none) : Set the ''color'' of the mask area.&amp;lt;br&amp;gt;If a raster map as background is set then it's drawn with a scale white-maskcolor.&lt;br /&gt;
&lt;br /&gt;
; outline : Block ''line''. Outline of categories.&lt;br /&gt;
&lt;br /&gt;
; setcolor null|default|(number) (color) : Replace the color of the cat ''number'' area with a new color.&amp;lt;br&amp;gt;Multiple ''setcolor'' are possibles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following gallery show the output of the commands inside the '''raster''' block (all mapnames are of type ''raster'').&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_raster1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_outline.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;outline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width .2mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;end&amp;lt;br/&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_setcolor.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor white&amp;lt;br&amp;gt;&amp;amp;nbsp;setcolor 37 magenta&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_grey.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;grey yes&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Vector maps ==&lt;br /&gt;
&lt;br /&gt;
All vector map accept optionally the following commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; layer (number) : Layer number used with cats/where option.&lt;br /&gt;
&lt;br /&gt;
; cats (n1,n2,...) : List of ''cat''s to show.&lt;br /&gt;
&lt;br /&gt;
; where (text) : Argument of the SQL where clausule to filter the areas to show.&lt;br /&gt;
&lt;br /&gt;
; masked yes|no : Masked or not by raster mask (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; label (text) : For description or title in ''vlegend''.&lt;br /&gt;
&lt;br /&gt;
; legend [(number)]: Position in legend (-1, no legend) or enter in a block ''legend''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vareas ===&lt;br /&gt;
&lt;br /&gt;
Draw areas on the map.&amp;lt;br&amp;gt;&lt;br /&gt;
The areas always are drawn first, on the bottom of other type of maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vareas (vector) : ''vector'' is a vector of areas, except when ''lwidth'' is different to zero that ''vector'' is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Style of the boundary.&lt;br /&gt;
&lt;br /&gt;
; fill : Block ''fill''. Style of the area.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Dynamic fill color in a ''column.1'' of the database, or conditional color from rules applied to ''column.2'' of the database.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Text label when default conditions.&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with label the ''text'' and title the text of the ''label''. Also, the fillcolor of the areas of the map with ''column'' &amp;gt;= n1 and ''column'' &amp;lt; n2  (''column'' from ''fcolor''), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; island yes|no : Draw island as normal areas (fill as normal area then hide it).&lt;br /&gt;
&lt;br /&gt;
; lwidth (dimen) : Line map draws as an area with a width = ''lwidth''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vareas: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vareas0.png|&amp;amp;nbsp;vareas geology&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;where GEO_NAME like 'Zb'&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;fcolor indigo&amp;lt;br&amp;gt;&amp;amp;nbsp;end&lt;br /&gt;
File:ps_out_vareas3.png|''with ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;pat ../patterns/diag_up.eps&amp;lt;br&amp;gt;&amp;amp;nbsp;pscale .5&lt;br /&gt;
File:ps_out_vareas1.png|''with ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;fcolor none cat&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 0-500:red A&amp;lt;br/&amp;gt;&amp;amp;nbsp;setrule 500-1000:green B&amp;lt;br/&amp;gt;&amp;amp;nbsp;setrule 1000-5000:blue C&lt;br /&gt;
File:ps_out_vareas2.png|''with ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;island no&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlines ===&lt;br /&gt;
&lt;br /&gt;
Draw lines on the map.&amp;lt;br&amp;gt;The areas always are drawn second, after ''vareas'' and before ''vpoints''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlines (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of lines, except if ''type'' is boundary that ''vector'' is a vector of areas.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type boundary|line : Draw boundaries of a vector of areas or lines of a vector of lines (default ''line'').&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Normal line.&lt;br /&gt;
&lt;br /&gt;
; hline : Block ''line''. Highlight line.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Works with ''hline'' to offset from the center of ''line''.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Define the database ''column.1'' to take the lines colors and, optionally, a ''column.2'' of database to apply color from the rules (''setcolor'').&lt;br /&gt;
&lt;br /&gt;
; setcolor (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with ''text'' as label and title the text of the ''label''. Also, the color of the normal line with column &amp;gt;= n1 and column &amp;lt; n2 (column from rgbcol), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
; setnodata (text) : Label in legend when default values and ''setcolor'' rules.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlines: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlines0.png|''Effect of the ''hline'' block ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;hline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width 1mm&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color red&amp;lt;br&amp;gt;&amp;amp;nbsp;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vpoints ===&lt;br /&gt;
&lt;br /&gt;
Draw points on the map.&amp;lt;br&amp;gt;The points always are drawn last, after ''vareas'' and ''vlines''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vpoints (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of points, except when '''type''' is ''centroid'' or ''boundary'' that it is a vector of areas, or when '''type''' is ''line'' that it is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; type centroid|line|boundary|point : Type of draw (default ''point'').&lt;br /&gt;
&lt;br /&gt;
; symbol (epsfile) : Symbol to use (default: basic/circle).&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Type of line in the symbol.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color): Static fillcolor of the symbol.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Offset of the symbol.&lt;br /&gt;
&lt;br /&gt;
; rotate (number|column) : Angle to rotate the symbol, static ''number'' or dynamic in a ''column'' of the database.&lt;br /&gt;
&lt;br /&gt;
; size (number|column [number]) : Size of the symbol take from ''number'' or from a ''column'' of the database. In the last option, there is a optional ''number'' to define the static size of the symbol in the legend when the size of symbols are dynamic. &lt;br /&gt;
&lt;br /&gt;
; scale (dimen.1 [dimen.2]) : Rescale the size of the symbol by the ''dimen.1'' and, optionally, add a ''dimen.2''. i.e., ''resize = dimen.1 * size + dimen.2''.&lt;br /&gt;
&lt;br /&gt;
; setsize (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;size] text) : Variable size of symbols from data in ''column'' of database set in ''size''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands when type is line&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; dist (dimen) : Define the distance in paper between symbol over the line.&lt;br /&gt;
&lt;br /&gt;
; cline : Block ''line''. Type of line that connect symbols.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vpoints: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vpoints0.png|''Points with same size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size 5&lt;br /&gt;
File:ps_out_vpoints1.png|''Points with dynamic size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT 5&amp;lt;br&amp;gt;&amp;amp;nbsp;scale 0.01 2&lt;br /&gt;
File:ps_out_vpoints2.png|''Points with conditional size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 200-1000:3 &amp;lt; 1000&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 1000-2500:9 &amp;gt; 1000&lt;br /&gt;
File:ps_out_vpoints3.png|''Points on line ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;type line&amp;lt;br&amp;gt;&amp;amp;nbsp;dist 1cm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlabels ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;in progress&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlabels none|(vector) :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; font :&lt;br /&gt;
&lt;br /&gt;
; labelcol (column) :&lt;br /&gt;
&lt;br /&gt;
; decimals (number) :&lt;br /&gt;
&lt;br /&gt;
; circled yes|no :&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2 text)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlabels0.png|vpoints firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;[...]&amp;lt;br/n&amp;gt;end&amp;lt;br/&amp;gt;vlabels firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;labelcol PUMPERS&amp;lt;br/n&amp;gt;&amp;amp;nbsp;font&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;name Univers-Bold&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;size 10&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color yellow&amp;lt;br/n&amp;gt;&amp;amp;nbsp;end&amp;lt;br/n&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Legend of the maps ==&lt;br /&gt;
&lt;br /&gt;
=== rlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the raster map.&amp;lt;br&amp;gt;The units ''meters'' in the gradient legend is set with [[r.support]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; rlegend [text] : Text is the title of the legend. &lt;br /&gt;
&lt;br /&gt;
; raster (raster) : the ''raster'' map to take the data of legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commads are optionals&amp;lt;/U&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; titlefont : Block ''font'' for the legend header.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font'' for the normal text.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Width of the symbol area.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For category legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; cols (number) [(number)] : Number of columns with symbols and separation between columns (default ''1'').&lt;br /&gt;
&lt;br /&gt;
; nodata yes|no : Remove category ''no data''.&lt;br /&gt;
&lt;br /&gt;
; order (n1,n2,...) : To reorder items.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For gradient legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; height (dimen), width (dimen) : Dimension of the frame with the legend.&lt;br /&gt;
&lt;br /&gt;
; vertical yes|no : Orientation of the gradient legend (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; range (n1 n2) : Manual set of the data range for legend.&lt;br /&gt;
&lt;br /&gt;
; gradient yes|no : Forze draw gradient legend with category data.&lt;br /&gt;
&lt;br /&gt;
; tick (dimen) : Length of the ticks.&lt;br /&gt;
&lt;br /&gt;
; whiteframe (dimen) : Width of the white frame around the bar color.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;250px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_rlegend.png|rlegend Zip Codes (wake)&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster zipcodes_wake&amp;lt;br/&amp;gt;&amp;amp;nbsp;cols 2 0&amp;lt;br/&amp;gt;&amp;amp;nbsp;swidth 8mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;order 20,10,30,22,34&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend1.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;height 8cm&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend2.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;width 8cm&amp;lt;br/&amp;gt;&amp;amp;nbsp;vertical no&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the vector maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlegend [text] : Optional the title or head of the legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; title : Block ''font'' for title of legend.&lt;br /&gt;
&lt;br /&gt;
; font : Block font for normal text of legend.&lt;br /&gt;
&lt;br /&gt;
; frame : &lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]) : Distribution of the items in ''number.1'' cols. Optionaly, ''number.2'' of span between columns.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Symbol width.&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Space between lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlegend: sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_output_vlegend0.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: ps.map]]&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=11995</id>
		<title>Ps.output</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=11995"/>
		<updated>2010-10-28T20:53:27Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: /* note */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ps.out''' try to update the standard postscript output of Grass adding new features to design borders, graticules, categorized legends, etc&lt;br /&gt;
&lt;br /&gt;
'''This is in progress and not all features are yet uploaded in ''addons''. '''&lt;br /&gt;
&lt;br /&gt;
== Command line flags ==&lt;br /&gt;
&lt;br /&gt;
'''-d ''': Draw a 1x1 cm grid on paper to help the placement of the elements of the map.&lt;br /&gt;
&lt;br /&gt;
'''-e''': Make an output file without the postscript header. Useful when is embebed into other ''ps.out'' map.&lt;br /&gt;
&lt;br /&gt;
'''-g''': Use the extended PostScript of Ghostscript (for transparent colors only)&lt;br /&gt;
&lt;br /&gt;
'''-s''': Draw the small digit in the coordinate numbers to lower instead upper possition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;100px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_grid.png|A4 paper with flag -d &lt;br /&gt;
File:ps_out_digit_upper.png|coordinate&lt;br /&gt;
File:ps_out_digit_lower.png|coordinate with flag -s&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generic Instructions ==&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== dimen ====&lt;br /&gt;
&lt;br /&gt;
Define a dimension. Accepted units are:&lt;br /&gt;
&lt;br /&gt;
*; ''unitless'' : e.g. 123. The dimension is the ''number'' by 1/72&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
*; inch : e.g. 1.2inch. &lt;br /&gt;
&lt;br /&gt;
*; milimeters : e.g. 2.3mm.&lt;br /&gt;
&lt;br /&gt;
*; centimeters : e.g. 1.4cm.&lt;br /&gt;
&lt;br /&gt;
*; percentage : e.g. 50%.&amp;lt;br&amp;gt;The position is relative to the size and position of the map in the paper being ''0%'' the left or bottom corner.&lt;br /&gt;
&lt;br /&gt;
==== color ====&lt;br /&gt;
&lt;br /&gt;
Define a color. Accepted formats are:&lt;br /&gt;
&lt;br /&gt;
*; standard GRASS name : e.g. indigo.&lt;br /&gt;
&lt;br /&gt;
*; R&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;G&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;B : e.g. 200:123:90&lt;br /&gt;
&lt;br /&gt;
*; user name : e.g. red5.&amp;lt;br&amp;gt;Defined in ''palette'' block&lt;br /&gt;
&lt;br /&gt;
All formats can add '$(0-1)' to define the opacity of the color (alpha channel); e.g., indigo$.75 or 200:120:120$.2&lt;br /&gt;
&lt;br /&gt;
==== number ====&lt;br /&gt;
&lt;br /&gt;
==== text ====&lt;br /&gt;
&lt;br /&gt;
=== Blocks of instructions ===&lt;br /&gt;
&lt;br /&gt;
A ''block'' begin with the keywords and finish with keyword ''end''&lt;br /&gt;
&lt;br /&gt;
==== font ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a font.&lt;br /&gt;
&lt;br /&gt;
; name (text) : Name of font.&lt;br /&gt;
&lt;br /&gt;
; size (dimen) : Size of font.&lt;br /&gt;
&lt;br /&gt;
; extend (dimen): Expand the width of font.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of font.&lt;br /&gt;
&lt;br /&gt;
; outline yes|no : Outline of the font.&lt;br /&gt;
&lt;br /&gt;
==== line ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a line.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of line.&lt;br /&gt;
&lt;br /&gt;
; color (color) : COlor of line.&lt;br /&gt;
&lt;br /&gt;
; style solid|dashed|dotted|dashdotted|(n1n2...) : Style of line.&lt;br /&gt;
&lt;br /&gt;
; cap butt|round|extended_butt : Cap&lt;br /&gt;
&lt;br /&gt;
==== frame ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a frame.&lt;br /&gt;
&lt;br /&gt;
; where (dimen.1 dimen.2) : Position of frame.&lt;br /&gt;
&lt;br /&gt;
; offset (number.1 number.2) : Fine x and y adjust of the position of frame.&lt;br /&gt;
&lt;br /&gt;
; ref right|left|center upper|lower|center : Position is relative to the ''ref''.&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border line&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of the border line.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the frame.&lt;br /&gt;
&lt;br /&gt;
; rotate (dimen) : &amp;lt;u&amp;gt;todo&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== legend ====&lt;br /&gt;
&lt;br /&gt;
; lpos (number): Position in legend&amp;lt;br&amp;gt;Codes: -1, no show in legend; 0 automatic position; &amp;gt; 0 horizontal position.&lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]): Organize legend in ''number.1'' cols with a optional span of ''number.2''&lt;br /&gt;
&lt;br /&gt;
; interline (dimen): Set partial legend interline&lt;br /&gt;
&lt;br /&gt;
== Map paper ==&lt;br /&gt;
&lt;br /&gt;
=== paper ===&lt;br /&gt;
&lt;br /&gt;
Size of paper. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; paper [A0-6|B0-6|Legal|Ledger|Tabloid|Executive|Folio] : Type of paper (default A4).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; color (color) : Paper color.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Custom size of paper.&lt;br /&gt;
&lt;br /&gt;
; left (dimen), right (dimen), top (dimen), bottom (dimen) : Custom margins (default 0.5&amp;quot; left and right, and 1&amp;quot; top and bottom).&lt;br /&gt;
&lt;br /&gt;
; landscape yes|no : Paper orientation (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''. Set the default font of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''. Free draw as watermarks, before any feature of the map is drawn (see ''draw'').&lt;br /&gt;
&lt;br /&gt;
=== scale ===&lt;br /&gt;
&lt;br /&gt;
Scale of the map.&lt;br /&gt;
&lt;br /&gt;
Simple line command to define the scale of the map. The default is adjust map to the paper dimensions. If the remaining dimensions of the paper not permit the scale, ''ps.out'' adjust the scale to a new value that it fit in the paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scale 1&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;(number) : Scale of map.&amp;lt;br&amp;gt;For example, ''scale 1:500000'' to rescale maparea dimensions.&lt;br /&gt;
&lt;br /&gt;
=== maparea ===&lt;br /&gt;
Define specific dimensions of the map (default defined by command ''scale'')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; maparea : Define characteristics of the map area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border map.&amp;lt;br&amp;gt;Usefull with ''in'' and ''out'' formats of the ''grid'' and ''geogrid'', ignored in ''iho'' and ''can'' formats.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Border color-&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the map area.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Dimensions of the map.&lt;br /&gt;
&lt;br /&gt;
; top (dimen), bottom (dimen) : Position of the top-left corner of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''.&amp;lt;br&amp;gt;Draw onto the map but before the grid lines, vpoints and vlabels are drawn; i.e. this map elements are drawn over the draw elements.&lt;br /&gt;
&lt;br /&gt;
=== palette ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;testing&amp;lt;/U&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; palette&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; wheel (number text) :&lt;br /&gt;
&lt;br /&gt;
; monochrome (color number text) :&lt;br /&gt;
&lt;br /&gt;
; complementary (color number text) :&lt;br /&gt;
&lt;br /&gt;
; analogous (color number text) :&lt;br /&gt;
&lt;br /&gt;
; gradient (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; diverging (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
== Common elements ==&lt;br /&gt;
&lt;br /&gt;
=== grid and geogrid ===&lt;br /&gt;
&lt;br /&gt;
Draw a border around the map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; grid|geogrid :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; format in|out|+out|can|iho : Type of border (see examples).&lt;br /&gt;
&lt;br /&gt;
; major (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; minor (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; subminor (number) : ''number'' of subdivisons of the minor divisions.&lt;br /&gt;
&lt;br /&gt;
; trim (number) : Cut trailing zeros.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Color of the border.&lt;br /&gt;
&lt;br /&gt;
; cross (number) : Replace lines by cross&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_iho.png|format iho&lt;br /&gt;
File:ps_out_can.png|format can&lt;br /&gt;
File:ps_out_in.png |format in&lt;br /&gt;
File:ps_out_out.png|format +out&lt;br /&gt;
File:ps_out_out1.png|typical map border&lt;br /&gt;
File:ps_out_out2.png|typical map border with ''subminor 5'' and ''fcolor blue''&lt;br /&gt;
File:ps_out_out3.png|''cross 500'', ''fcolor indigo'', ''color 200:200:200'' in '''maparea'''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== scalebar ===&lt;br /&gt;
&lt;br /&gt;
Set a scalebar on the map.&amp;lt;br&amp;gt;Maximun 5 scalebars in each map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scalebar I|s|S|f|F : Define the type of scalebar (I: inner, s/S: simple, f/F: fill).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; length (number) : Length of the scale.&lt;br /&gt;
&lt;br /&gt;
; units meters|m|kilometers|km|feet|ft|miles|mil|nautical_miles|nm ([text]) : Unit of the length and ''text' to label the units.&lt;br /&gt;
&lt;br /&gt;
; major (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; minor (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor.&lt;br /&gt;
&lt;br /&gt;
; height (dimen) : Height of the bar or ticks.&lt;br /&gt;
&lt;br /&gt;
; zero yes|no : Set position relative to zero value of the scalebar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Scalerbar styles&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;50px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_scalebar_s.png|scalebar s&lt;br /&gt;
File:ps_out_scalebar_S.png|scalebar S&lt;br /&gt;
File:ps_out_scalebar_I.png|scalebar I (uppercase i)&lt;br /&gt;
File:ps_out_scalebar_f.png|scalebar f&lt;br /&gt;
File:ps_out_scalebar_F.png|scalebar F&lt;br /&gt;
File:ps_out_scalebar_3.png|Multiple scalebars zero centered with ''zero yes''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== note ===&lt;br /&gt;
Write special text or free text on any place of the paper with frame (also ''draw'' permit write free-text in paper). &lt;br /&gt;
&lt;br /&gt;
Maximun 20 notes by map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; note &amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;file|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;maplimits|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;dimen|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;scale (text)|(text) : Type of note and text to show.&amp;lt;br&amp;gt;When free text, use '|' to break lines and '.' as first character to center line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; text (text) : Another roption to enter the same as inline note text;&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of note.&lt;br /&gt;
&lt;br /&gt;
; angle (number) : ''number'' of degrees to rotate (do not work fine).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Note keywords and free text&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_note_ml.png  |note :maplimits&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_dimen.png|note :dimen&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scale.png|note :scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_free.png|note free text|in multiple lines&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_freec.png|note .free text|.in multiple [...]&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scaler.png|note :scale scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br&amp;gt;&amp;amp;nbsp;angle 90&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== draw ===&lt;br /&gt;
&lt;br /&gt;
Simple script language to draw predefined postscript code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; draw [none|paper|maparea|free] :  &lt;br /&gt;
''paper'': before any map feature is drawn (equivalent to place inside ''paper'' block); &amp;lt;br&amp;gt;&lt;br /&gt;
''maparea'' before the last elements of the map (equivalent to place inside ''mapare'' block) ; &amp;lt;br&amp;gt;&lt;br /&gt;
''none'': draw over all elements of the map but only in the map area; and &amp;lt;br&amp;gt;&lt;br /&gt;
''free'': after all map features are drawn in any place of the paper; and ''none''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; --- : &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_north1.png   |&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;north 700000 4700000&amp;lt;/source&amp;gt;&lt;br /&gt;
File:ps_out_north2.png   |north 5cm 16.5cm -&lt;br /&gt;
File:ps_out_maplimits.png|maplimits&lt;br /&gt;
File:ps_out_compass.png  |compass 700000 4700000 10000 10.2345&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Raster maps ==&lt;br /&gt;
&lt;br /&gt;
=== raster ===&lt;br /&gt;
&lt;br /&gt;
Draw one or two raster maps on the maparea. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; raster (raster|raster.1 raster.2|raster.R raster.G raster.B|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;group) : The ''raster'' value is the raster mapname, two raster maps ''raster.1'' or color and ''raster.2'' or shade to draw as relief map, three maps ''raster.R'', ''raster.G'' and ''raster.B'' to draw as RGB, or a groupname (leader by ':') with tree RGB maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; grey yes|no : Store and draw the rasters in grey scale (small size of file).&amp;lt;br&amp;gt;The conversion follows the NTSC video standard.&lt;br /&gt;
&lt;br /&gt;
; maskcell (raster.1 [raster.2]) : Set the ''raster.1'' map to use as mask (independent of the mask set in GRASS with [[r.mask]]) and, optionally, the ''raster.2'' map uses as background.&amp;lt;br&amp;gt;The background ''raster.2'' is painted in grey scale (NTSC) and tinted with ''maskcolor''.&lt;br /&gt;
&lt;br /&gt;
; maskcolor (color|none) : Set the ''color'' of the mask area.&amp;lt;br&amp;gt;If a raster map as background is set then it's drawn with a scale white-maskcolor.&lt;br /&gt;
&lt;br /&gt;
; outline : Block ''line''. Outline of categories.&lt;br /&gt;
&lt;br /&gt;
; setcolor null|default|(number) (color) : Replace the color of the cat ''number'' area with a new color.&amp;lt;br&amp;gt;Multiple ''setcolor'' are possibles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following gallery show the output of the commands inside the '''raster''' block (all mapnames are of type ''raster'').&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_raster1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_outline.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;outline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width .2mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;end&amp;lt;br/&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_setcolor.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor white&amp;lt;br&amp;gt;&amp;amp;nbsp;setcolor 37 magenta&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_grey.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;grey yes&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Vector maps ==&lt;br /&gt;
&lt;br /&gt;
All vector map accept optionally the following commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; layer (number) : Layer number used with cats/where option.&lt;br /&gt;
&lt;br /&gt;
; cats (n1,n2,...) : List of ''cat''s to show.&lt;br /&gt;
&lt;br /&gt;
; where (text) : Argument of the SQL where clausule to filter the areas to show.&lt;br /&gt;
&lt;br /&gt;
; masked yes|no : Masked or not by raster mask (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; label (text) : For description or title in ''vlegend''.&lt;br /&gt;
&lt;br /&gt;
; legend [(number)]: Position in legend (-1, no legend) or enter in a block ''legend''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vareas ===&lt;br /&gt;
&lt;br /&gt;
Draw areas on the map.&amp;lt;br&amp;gt;&lt;br /&gt;
The areas always are drawn first, on the bottom of other type of maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vareas (vector) : ''vector'' is a vector of areas, except when ''lwidth'' is different to zero that ''vector'' is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line'' to set the style of the border line of the areas.&lt;br /&gt;
&lt;br /&gt;
; pat (epsfile) : Pattern in a EPS file.&lt;br /&gt;
&lt;br /&gt;
; pscale (number) : Scale of pattern.&lt;br /&gt;
&lt;br /&gt;
; pwidth (dimen) : Width of the lines of pattern.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color.1|column.1|color.2 column.2) : Static fill ''color.1'', dynamic fill color in a ''column.1'' of the database, or default ''color.2'' with color data from ''column.2'' of the database to apply the rules (color in ''setcolor'').&lt;br /&gt;
&lt;br /&gt;
; setcolor (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with label the ''text'' and title the text of the ''label''. Also, the fillcolor of the areas of the map with ''column'' &amp;gt;= n1 and ''column'' &amp;lt; n2  (''column'' from ''fcolor''), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Text label when default conditions.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; island yes|no : Draw island as normal areas (fill as normal area then hide it).&lt;br /&gt;
&lt;br /&gt;
; lwidth (dimen) : Line map draws as an area with a width = ''lwidth''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vareas: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vareas0.png|&amp;amp;nbsp;vareas geology&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;where GEO_NAME like 'Zb'&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;fcolor indigo&amp;lt;br&amp;gt;&amp;amp;nbsp;end&lt;br /&gt;
File:ps_out_vareas3.png|''with ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;pat ../patterns/diag_up.eps&amp;lt;br&amp;gt;&amp;amp;nbsp;pscale .5&lt;br /&gt;
File:ps_out_vareas1.png|''with ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;fcolor none cat&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 0-500:red A&amp;lt;br/&amp;gt;&amp;amp;nbsp;setrule 500-1000:green B&amp;lt;br/&amp;gt;&amp;amp;nbsp;setrule 1000-5000:blue C&lt;br /&gt;
File:ps_out_vareas2.png|''with ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;island no&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlines ===&lt;br /&gt;
&lt;br /&gt;
Draw lines on the map.&amp;lt;br&amp;gt;The areas always are drawn second, after ''vareas'' and before ''vpoints''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlines (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of lines, except if ''type'' is boundary that ''vector'' is a vector of areas.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type boundary|line : Draw boundaries of a vector of areas or lines of a vector of lines (default ''line'').&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Normal line.&lt;br /&gt;
&lt;br /&gt;
; hline : Block ''line''. Highlight line.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Works with ''hline'' to offset from the center of ''line''.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Define the database ''column.1'' to take the lines colors and, optionally, a ''column.2'' of database to apply color from the rules (''setcolor'').&lt;br /&gt;
&lt;br /&gt;
; setcolor (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with ''text'' as label and title the text of the ''label''. Also, the color of the normal line with column &amp;gt;= n1 and column &amp;lt; n2 (column from rgbcol), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
; setnodata (text) : Label in legend when default values and ''setcolor'' rules.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlines: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlines0.png|''Effect of the ''hline'' block ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;hline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width 1mm&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color red&amp;lt;br&amp;gt;&amp;amp;nbsp;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vpoints ===&lt;br /&gt;
&lt;br /&gt;
Draw points on the map.&amp;lt;br&amp;gt;The points always are drawn last, after ''vareas'' and ''vlines''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vpoints (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of points, except when '''type''' is ''centroid'' or ''boundary'' that it is a vector of areas, or when '''type''' is ''line'' that it is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; type centroid|line|boundary|point : Type of draw (default ''point'').&lt;br /&gt;
&lt;br /&gt;
; symbol (epsfile) : Symbol to use (default: basic/circle).&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Type of line in the symbol.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color): Static fillcolor of the symbol.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Offset of the symbol.&lt;br /&gt;
&lt;br /&gt;
; rotate (number|column) : Angle to rotate the symbol, static ''number'' or dynamic in a ''column'' of the database.&lt;br /&gt;
&lt;br /&gt;
; size (number|column [number]) : Size of the symbol take from ''number'' or from a ''column'' of the database. In the last option, there is a optional ''number'' to define the static size of the symbol in the legend when the size of symbols are dynamic. &lt;br /&gt;
&lt;br /&gt;
; scale (dimen.1 [dimen.2]) : Rescale the size of the symbol by the ''dimen.1'' and, optionally, add a ''dimen.2''. i.e., ''resize = dimen.1 * size + dimen.2''.&lt;br /&gt;
&lt;br /&gt;
; setsize (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;size] text) : Variable size of symbols from data in ''column'' of database set in ''size''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands when type is line&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; dist (dimen) : Define the distance in paper between symbol over the line.&lt;br /&gt;
&lt;br /&gt;
; cline : Block ''line''. Type of line that connect symbols.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vpoints: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vpoints0.png|''Points with same size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size 5&lt;br /&gt;
File:ps_out_vpoints1.png|''Points with dynamic size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT 5&amp;lt;br&amp;gt;&amp;amp;nbsp;scale 0.01 2&lt;br /&gt;
File:ps_out_vpoints2.png|''Points with conditional size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 200-1000:3 &amp;lt; 1000&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 1000-2500:9 &amp;gt; 1000&lt;br /&gt;
File:ps_out_vpoints3.png|''Points on line ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;type line&amp;lt;br&amp;gt;&amp;amp;nbsp;dist 1cm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlabels ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;in progress&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlabels none|(vector) :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; font :&lt;br /&gt;
&lt;br /&gt;
; labelcol (column) :&lt;br /&gt;
&lt;br /&gt;
; decimals (number) :&lt;br /&gt;
&lt;br /&gt;
; circled yes|no :&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2 text)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlabels0.png|vpoints firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;[...]&amp;lt;br/n&amp;gt;end&amp;lt;br/&amp;gt;vlabels firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;labelcol PUMPERS&amp;lt;br/n&amp;gt;&amp;amp;nbsp;font&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;name Univers-Bold&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;size 10&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color yellow&amp;lt;br/n&amp;gt;&amp;amp;nbsp;end&amp;lt;br/n&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Legend of the maps ==&lt;br /&gt;
&lt;br /&gt;
=== rlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the raster map.&amp;lt;br&amp;gt;The units ''meters'' in the gradient legend is set with [[r.support]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; rlegend [text] : Text is the title of the legend. &lt;br /&gt;
&lt;br /&gt;
; raster (raster) : the ''raster'' map to take the data of legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commads are optionals&amp;lt;/U&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; titlefont : Block ''font'' for the legend header.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font'' for the normal text.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Width of the symbol area.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For category legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; cols (number) [(number)] : Number of columns with symbols and separation between columns (default ''1'').&lt;br /&gt;
&lt;br /&gt;
; nodata yes|no : Remove category ''no data''.&lt;br /&gt;
&lt;br /&gt;
; order (n1,n2,...) : To reorder items.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For gradient legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; height (dimen), width (dimen) : Dimension of the frame with the legend.&lt;br /&gt;
&lt;br /&gt;
; vertical yes|no : Orientation of the gradient legend (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; range (n1 n2) : Manual set of the data range for legend.&lt;br /&gt;
&lt;br /&gt;
; gradient yes|no : Forze draw gradient legend with category data.&lt;br /&gt;
&lt;br /&gt;
; tick (dimen) : Length of the ticks.&lt;br /&gt;
&lt;br /&gt;
; whiteframe (dimen) : Width of the white frame around the bar color.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;250px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_rlegend.png|rlegend Zip Codes (wake)&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster zipcodes_wake&amp;lt;br/&amp;gt;&amp;amp;nbsp;cols 2 0&amp;lt;br/&amp;gt;&amp;amp;nbsp;swidth 8mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;order 20,10,30,22,34&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend1.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;height 8cm&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend2.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;width 8cm&amp;lt;br/&amp;gt;&amp;amp;nbsp;vertical no&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the vector maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlegend [text] : Optional the title or head of the legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; title : Block ''font'' for title of legend.&lt;br /&gt;
&lt;br /&gt;
; font : Block font for normal text of legend.&lt;br /&gt;
&lt;br /&gt;
; frame : &lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]) : Distribution of the items in ''number.1'' cols. Optionaly, ''number.2'' of span between columns.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Symbol width.&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Space between lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlegend: sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_output_vlegend0.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: ps.map]]&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=11994</id>
		<title>Ps.output</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=11994"/>
		<updated>2010-10-28T20:42:52Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: /* font */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ps.out''' try to update the standard postscript output of Grass adding new features to design borders, graticules, categorized legends, etc&lt;br /&gt;
&lt;br /&gt;
'''This is in progress and not all features are yet uploaded in ''addons''. '''&lt;br /&gt;
&lt;br /&gt;
== Command line flags ==&lt;br /&gt;
&lt;br /&gt;
'''-d ''': Draw a 1x1 cm grid on paper to help the placement of the elements of the map.&lt;br /&gt;
&lt;br /&gt;
'''-e''': Make an output file without the postscript header. Useful when is embebed into other ''ps.out'' map.&lt;br /&gt;
&lt;br /&gt;
'''-g''': Use the extended PostScript of Ghostscript (for transparent colors only)&lt;br /&gt;
&lt;br /&gt;
'''-s''': Draw the small digit in the coordinate numbers to lower instead upper possition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;100px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_grid.png|A4 paper with flag -d &lt;br /&gt;
File:ps_out_digit_upper.png|coordinate&lt;br /&gt;
File:ps_out_digit_lower.png|coordinate with flag -s&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generic Instructions ==&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== dimen ====&lt;br /&gt;
&lt;br /&gt;
Define a dimension. Accepted units are:&lt;br /&gt;
&lt;br /&gt;
*; ''unitless'' : e.g. 123. The dimension is the ''number'' by 1/72&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
*; inch : e.g. 1.2inch. &lt;br /&gt;
&lt;br /&gt;
*; milimeters : e.g. 2.3mm.&lt;br /&gt;
&lt;br /&gt;
*; centimeters : e.g. 1.4cm.&lt;br /&gt;
&lt;br /&gt;
*; percentage : e.g. 50%.&amp;lt;br&amp;gt;The position is relative to the size and position of the map in the paper being ''0%'' the left or bottom corner.&lt;br /&gt;
&lt;br /&gt;
==== color ====&lt;br /&gt;
&lt;br /&gt;
Define a color. Accepted formats are:&lt;br /&gt;
&lt;br /&gt;
*; standard GRASS name : e.g. indigo.&lt;br /&gt;
&lt;br /&gt;
*; R&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;G&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;B : e.g. 200:123:90&lt;br /&gt;
&lt;br /&gt;
*; user name : e.g. red5.&amp;lt;br&amp;gt;Defined in ''palette'' block&lt;br /&gt;
&lt;br /&gt;
All formats can add '$(0-1)' to define the opacity of the color (alpha channel); e.g., indigo$.75 or 200:120:120$.2&lt;br /&gt;
&lt;br /&gt;
==== number ====&lt;br /&gt;
&lt;br /&gt;
==== text ====&lt;br /&gt;
&lt;br /&gt;
=== Blocks of instructions ===&lt;br /&gt;
&lt;br /&gt;
A ''block'' begin with the keywords and finish with keyword ''end''&lt;br /&gt;
&lt;br /&gt;
==== font ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a font.&lt;br /&gt;
&lt;br /&gt;
; name (text) : Name of font.&lt;br /&gt;
&lt;br /&gt;
; size (dimen) : Size of font.&lt;br /&gt;
&lt;br /&gt;
; extend (dimen): Expand the width of font.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of font.&lt;br /&gt;
&lt;br /&gt;
; outline yes|no : Outline of the font.&lt;br /&gt;
&lt;br /&gt;
==== line ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a line.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of line.&lt;br /&gt;
&lt;br /&gt;
; color (color) : COlor of line.&lt;br /&gt;
&lt;br /&gt;
; style solid|dashed|dotted|dashdotted|(n1n2...) : Style of line.&lt;br /&gt;
&lt;br /&gt;
; cap butt|round|extended_butt : Cap&lt;br /&gt;
&lt;br /&gt;
==== frame ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a frame.&lt;br /&gt;
&lt;br /&gt;
; where (dimen.1 dimen.2) : Position of frame.&lt;br /&gt;
&lt;br /&gt;
; offset (number.1 number.2) : Fine x and y adjust of the position of frame.&lt;br /&gt;
&lt;br /&gt;
; ref right|left|center upper|lower|center : Position is relative to the ''ref''.&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border line&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of the border line.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the frame.&lt;br /&gt;
&lt;br /&gt;
; rotate (dimen) : &amp;lt;u&amp;gt;todo&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== legend ====&lt;br /&gt;
&lt;br /&gt;
; lpos (number): Position in legend&amp;lt;br&amp;gt;Codes: -1, no show in legend; 0 automatic position; &amp;gt; 0 horizontal position.&lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]): Organize legend in ''number.1'' cols with a optional span of ''number.2''&lt;br /&gt;
&lt;br /&gt;
; interline (dimen): Set partial legend interline&lt;br /&gt;
&lt;br /&gt;
== Map paper ==&lt;br /&gt;
&lt;br /&gt;
=== paper ===&lt;br /&gt;
&lt;br /&gt;
Size of paper. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; paper [A0-6|B0-6|Legal|Ledger|Tabloid|Executive|Folio] : Type of paper (default A4).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; color (color) : Paper color.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Custom size of paper.&lt;br /&gt;
&lt;br /&gt;
; left (dimen), right (dimen), top (dimen), bottom (dimen) : Custom margins (default 0.5&amp;quot; left and right, and 1&amp;quot; top and bottom).&lt;br /&gt;
&lt;br /&gt;
; landscape yes|no : Paper orientation (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''. Set the default font of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''. Free draw as watermarks, before any feature of the map is drawn (see ''draw'').&lt;br /&gt;
&lt;br /&gt;
=== scale ===&lt;br /&gt;
&lt;br /&gt;
Scale of the map.&lt;br /&gt;
&lt;br /&gt;
Simple line command to define the scale of the map. The default is adjust map to the paper dimensions. If the remaining dimensions of the paper not permit the scale, ''ps.out'' adjust the scale to a new value that it fit in the paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scale 1&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;(number) : Scale of map.&amp;lt;br&amp;gt;For example, ''scale 1:500000'' to rescale maparea dimensions.&lt;br /&gt;
&lt;br /&gt;
=== maparea ===&lt;br /&gt;
Define specific dimensions of the map (default defined by command ''scale'')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; maparea : Define characteristics of the map area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border map.&amp;lt;br&amp;gt;Usefull with ''in'' and ''out'' formats of the ''grid'' and ''geogrid'', ignored in ''iho'' and ''can'' formats.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Border color-&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the map area.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Dimensions of the map.&lt;br /&gt;
&lt;br /&gt;
; top (dimen), bottom (dimen) : Position of the top-left corner of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''.&amp;lt;br&amp;gt;Draw onto the map but before the grid lines, vpoints and vlabels are drawn; i.e. this map elements are drawn over the draw elements.&lt;br /&gt;
&lt;br /&gt;
=== palette ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;testing&amp;lt;/U&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; palette&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; wheel (number text) :&lt;br /&gt;
&lt;br /&gt;
; monochrome (color number text) :&lt;br /&gt;
&lt;br /&gt;
; complementary (color number text) :&lt;br /&gt;
&lt;br /&gt;
; analogous (color number text) :&lt;br /&gt;
&lt;br /&gt;
; gradient (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; diverging (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
== Common elements ==&lt;br /&gt;
&lt;br /&gt;
=== grid and geogrid ===&lt;br /&gt;
&lt;br /&gt;
Draw a border around the map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; grid|geogrid :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; format in|out|+out|can|iho : Type of border (see examples).&lt;br /&gt;
&lt;br /&gt;
; major (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; minor (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; subminor (number) : ''number'' of subdivisons of the minor divisions.&lt;br /&gt;
&lt;br /&gt;
; trim (number) : Cut trailing zeros.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Color of the border.&lt;br /&gt;
&lt;br /&gt;
; cross (number) : Replace lines by cross&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_iho.png|format iho&lt;br /&gt;
File:ps_out_can.png|format can&lt;br /&gt;
File:ps_out_in.png |format in&lt;br /&gt;
File:ps_out_out.png|format +out&lt;br /&gt;
File:ps_out_out1.png|typical map border&lt;br /&gt;
File:ps_out_out2.png|typical map border with ''subminor 5'' and ''fcolor blue''&lt;br /&gt;
File:ps_out_out3.png|''cross 500'', ''fcolor indigo'', ''color 200:200:200'' in '''maparea'''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== scalebar ===&lt;br /&gt;
&lt;br /&gt;
Set a scalebar on the map.&amp;lt;br&amp;gt;Maximun 5 scalebars in each map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scalebar I|s|S|f|F : Define the type of scalebar (I: inner, s/S: simple, f/F: fill).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; length (number) : Length of the scale.&lt;br /&gt;
&lt;br /&gt;
; units meters|m|kilometers|km|feet|ft|miles|mil|nautical_miles|nm ([text]) : Unit of the length and ''text' to label the units.&lt;br /&gt;
&lt;br /&gt;
; major (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; minor (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor.&lt;br /&gt;
&lt;br /&gt;
; height (dimen) : Height of the bar or ticks.&lt;br /&gt;
&lt;br /&gt;
; zero yes|no : Set position relative to zero value of the scalebar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Scalerbar styles&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;50px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_scalebar_s.png|scalebar s&lt;br /&gt;
File:ps_out_scalebar_S.png|scalebar S&lt;br /&gt;
File:ps_out_scalebar_I.png|scalebar I (uppercase i)&lt;br /&gt;
File:ps_out_scalebar_f.png|scalebar f&lt;br /&gt;
File:ps_out_scalebar_F.png|scalebar F&lt;br /&gt;
File:ps_out_scalebar_3.png|Multiple scalebars zero centered with ''zero yes''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== note ===&lt;br /&gt;
Write special text or free text on any place of the paper with frame (also ''draw'' permit write free-text in paper). &lt;br /&gt;
&lt;br /&gt;
Maximun 20 notes by map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; note &amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;file|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;maplimits|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;dimen|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;scale (text)|(text) : Type of note and text to show.&amp;lt;br&amp;gt;When free text, use '|' to break lines and '.' as first character to center line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of note.&lt;br /&gt;
&lt;br /&gt;
; angle (number) : ''number'' of degrees to rotate (do not work fine).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Note keywords and free text&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_note_ml.png  |note :maplimits&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_dimen.png|note :dimen&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scale.png|note :scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_free.png|note free text|in multiple lines&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_freec.png|note .free text|.in multiple [...]&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scaler.png|note :scale scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br&amp;gt;&amp;amp;nbsp;angle 90&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== draw ===&lt;br /&gt;
&lt;br /&gt;
Simple script language to draw predefined postscript code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; draw [none|paper|maparea|free] :  &lt;br /&gt;
''paper'': before any map feature is drawn (equivalent to place inside ''paper'' block); &amp;lt;br&amp;gt;&lt;br /&gt;
''maparea'' before the last elements of the map (equivalent to place inside ''mapare'' block) ; &amp;lt;br&amp;gt;&lt;br /&gt;
''none'': draw over all elements of the map but only in the map area; and &amp;lt;br&amp;gt;&lt;br /&gt;
''free'': after all map features are drawn in any place of the paper; and ''none''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; --- : &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_north1.png   |&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;north 700000 4700000&amp;lt;/source&amp;gt;&lt;br /&gt;
File:ps_out_north2.png   |north 5cm 16.5cm -&lt;br /&gt;
File:ps_out_maplimits.png|maplimits&lt;br /&gt;
File:ps_out_compass.png  |compass 700000 4700000 10000 10.2345&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Raster maps ==&lt;br /&gt;
&lt;br /&gt;
=== raster ===&lt;br /&gt;
&lt;br /&gt;
Draw one or two raster maps on the maparea. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; raster (raster|raster.1 raster.2|raster.R raster.G raster.B|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;group) : The ''raster'' value is the raster mapname, two raster maps ''raster.1'' or color and ''raster.2'' or shade to draw as relief map, three maps ''raster.R'', ''raster.G'' and ''raster.B'' to draw as RGB, or a groupname (leader by ':') with tree RGB maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; grey yes|no : Store and draw the rasters in grey scale (small size of file).&amp;lt;br&amp;gt;The conversion follows the NTSC video standard.&lt;br /&gt;
&lt;br /&gt;
; maskcell (raster.1 [raster.2]) : Set the ''raster.1'' map to use as mask (independent of the mask set in GRASS with [[r.mask]]) and, optionally, the ''raster.2'' map uses as background.&amp;lt;br&amp;gt;The background ''raster.2'' is painted in grey scale (NTSC) and tinted with ''maskcolor''.&lt;br /&gt;
&lt;br /&gt;
; maskcolor (color|none) : Set the ''color'' of the mask area.&amp;lt;br&amp;gt;If a raster map as background is set then it's drawn with a scale white-maskcolor.&lt;br /&gt;
&lt;br /&gt;
; outline : Block ''line''. Outline of categories.&lt;br /&gt;
&lt;br /&gt;
; setcolor null|default|(number) (color) : Replace the color of the cat ''number'' area with a new color.&amp;lt;br&amp;gt;Multiple ''setcolor'' are possibles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following gallery show the output of the commands inside the '''raster''' block (all mapnames are of type ''raster'').&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_raster1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_outline.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;outline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width .2mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;end&amp;lt;br/&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_setcolor.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor white&amp;lt;br&amp;gt;&amp;amp;nbsp;setcolor 37 magenta&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_grey.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;grey yes&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Vector maps ==&lt;br /&gt;
&lt;br /&gt;
All vector map accept optionally the following commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; layer (number) : Layer number used with cats/where option.&lt;br /&gt;
&lt;br /&gt;
; cats (n1,n2,...) : List of ''cat''s to show.&lt;br /&gt;
&lt;br /&gt;
; where (text) : Argument of the SQL where clausule to filter the areas to show.&lt;br /&gt;
&lt;br /&gt;
; masked yes|no : Masked or not by raster mask (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; label (text) : For description or title in ''vlegend''.&lt;br /&gt;
&lt;br /&gt;
; legend [(number)]: Position in legend (-1, no legend) or enter in a block ''legend''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vareas ===&lt;br /&gt;
&lt;br /&gt;
Draw areas on the map.&amp;lt;br&amp;gt;&lt;br /&gt;
The areas always are drawn first, on the bottom of other type of maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vareas (vector) : ''vector'' is a vector of areas, except when ''lwidth'' is different to zero that ''vector'' is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line'' to set the style of the border line of the areas.&lt;br /&gt;
&lt;br /&gt;
; pat (epsfile) : Pattern in a EPS file.&lt;br /&gt;
&lt;br /&gt;
; pscale (number) : Scale of pattern.&lt;br /&gt;
&lt;br /&gt;
; pwidth (dimen) : Width of the lines of pattern.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color.1|column.1|color.2 column.2) : Static fill ''color.1'', dynamic fill color in a ''column.1'' of the database, or default ''color.2'' with color data from ''column.2'' of the database to apply the rules (color in ''setcolor'').&lt;br /&gt;
&lt;br /&gt;
; setcolor (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with label the ''text'' and title the text of the ''label''. Also, the fillcolor of the areas of the map with ''column'' &amp;gt;= n1 and ''column'' &amp;lt; n2  (''column'' from ''fcolor''), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Text label when default conditions.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; island yes|no : Draw island as normal areas (fill as normal area then hide it).&lt;br /&gt;
&lt;br /&gt;
; lwidth (dimen) : Line map draws as an area with a width = ''lwidth''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vareas: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vareas0.png|&amp;amp;nbsp;vareas geology&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;where GEO_NAME like 'Zb'&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;fcolor indigo&amp;lt;br&amp;gt;&amp;amp;nbsp;end&lt;br /&gt;
File:ps_out_vareas3.png|''with ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;pat ../patterns/diag_up.eps&amp;lt;br&amp;gt;&amp;amp;nbsp;pscale .5&lt;br /&gt;
File:ps_out_vareas1.png|''with ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;fcolor none cat&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 0-500:red A&amp;lt;br/&amp;gt;&amp;amp;nbsp;setrule 500-1000:green B&amp;lt;br/&amp;gt;&amp;amp;nbsp;setrule 1000-5000:blue C&lt;br /&gt;
File:ps_out_vareas2.png|''with ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;island no&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlines ===&lt;br /&gt;
&lt;br /&gt;
Draw lines on the map.&amp;lt;br&amp;gt;The areas always are drawn second, after ''vareas'' and before ''vpoints''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlines (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of lines, except if ''type'' is boundary that ''vector'' is a vector of areas.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type boundary|line : Draw boundaries of a vector of areas or lines of a vector of lines (default ''line'').&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Normal line.&lt;br /&gt;
&lt;br /&gt;
; hline : Block ''line''. Highlight line.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Works with ''hline'' to offset from the center of ''line''.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Define the database ''column.1'' to take the lines colors and, optionally, a ''column.2'' of database to apply color from the rules (''setcolor'').&lt;br /&gt;
&lt;br /&gt;
; setcolor (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with ''text'' as label and title the text of the ''label''. Also, the color of the normal line with column &amp;gt;= n1 and column &amp;lt; n2 (column from rgbcol), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
; setnodata (text) : Label in legend when default values and ''setcolor'' rules.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlines: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlines0.png|''Effect of the ''hline'' block ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;hline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width 1mm&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color red&amp;lt;br&amp;gt;&amp;amp;nbsp;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vpoints ===&lt;br /&gt;
&lt;br /&gt;
Draw points on the map.&amp;lt;br&amp;gt;The points always are drawn last, after ''vareas'' and ''vlines''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vpoints (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of points, except when '''type''' is ''centroid'' or ''boundary'' that it is a vector of areas, or when '''type''' is ''line'' that it is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; type centroid|line|boundary|point : Type of draw (default ''point'').&lt;br /&gt;
&lt;br /&gt;
; symbol (epsfile) : Symbol to use (default: basic/circle).&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Type of line in the symbol.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color): Static fillcolor of the symbol.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Offset of the symbol.&lt;br /&gt;
&lt;br /&gt;
; rotate (number|column) : Angle to rotate the symbol, static ''number'' or dynamic in a ''column'' of the database.&lt;br /&gt;
&lt;br /&gt;
; size (number|column [number]) : Size of the symbol take from ''number'' or from a ''column'' of the database. In the last option, there is a optional ''number'' to define the static size of the symbol in the legend when the size of symbols are dynamic. &lt;br /&gt;
&lt;br /&gt;
; scale (dimen.1 [dimen.2]) : Rescale the size of the symbol by the ''dimen.1'' and, optionally, add a ''dimen.2''. i.e., ''resize = dimen.1 * size + dimen.2''.&lt;br /&gt;
&lt;br /&gt;
; setsize (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;size] text) : Variable size of symbols from data in ''column'' of database set in ''size''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands when type is line&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; dist (dimen) : Define the distance in paper between symbol over the line.&lt;br /&gt;
&lt;br /&gt;
; cline : Block ''line''. Type of line that connect symbols.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vpoints: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vpoints0.png|''Points with same size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size 5&lt;br /&gt;
File:ps_out_vpoints1.png|''Points with dynamic size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT 5&amp;lt;br&amp;gt;&amp;amp;nbsp;scale 0.01 2&lt;br /&gt;
File:ps_out_vpoints2.png|''Points with conditional size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 200-1000:3 &amp;lt; 1000&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 1000-2500:9 &amp;gt; 1000&lt;br /&gt;
File:ps_out_vpoints3.png|''Points on line ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;type line&amp;lt;br&amp;gt;&amp;amp;nbsp;dist 1cm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlabels ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;in progress&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlabels none|(vector) :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; font :&lt;br /&gt;
&lt;br /&gt;
; labelcol (column) :&lt;br /&gt;
&lt;br /&gt;
; decimals (number) :&lt;br /&gt;
&lt;br /&gt;
; circled yes|no :&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2 text)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlabels0.png|vpoints firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;[...]&amp;lt;br/n&amp;gt;end&amp;lt;br/&amp;gt;vlabels firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;labelcol PUMPERS&amp;lt;br/n&amp;gt;&amp;amp;nbsp;font&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;name Univers-Bold&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;size 10&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color yellow&amp;lt;br/n&amp;gt;&amp;amp;nbsp;end&amp;lt;br/n&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Legend of the maps ==&lt;br /&gt;
&lt;br /&gt;
=== rlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the raster map.&amp;lt;br&amp;gt;The units ''meters'' in the gradient legend is set with [[r.support]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; rlegend [text] : Text is the title of the legend. &lt;br /&gt;
&lt;br /&gt;
; raster (raster) : the ''raster'' map to take the data of legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commads are optionals&amp;lt;/U&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; titlefont : Block ''font'' for the legend header.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font'' for the normal text.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Width of the symbol area.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For category legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; cols (number) [(number)] : Number of columns with symbols and separation between columns (default ''1'').&lt;br /&gt;
&lt;br /&gt;
; nodata yes|no : Remove category ''no data''.&lt;br /&gt;
&lt;br /&gt;
; order (n1,n2,...) : To reorder items.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For gradient legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; height (dimen), width (dimen) : Dimension of the frame with the legend.&lt;br /&gt;
&lt;br /&gt;
; vertical yes|no : Orientation of the gradient legend (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; range (n1 n2) : Manual set of the data range for legend.&lt;br /&gt;
&lt;br /&gt;
; gradient yes|no : Forze draw gradient legend with category data.&lt;br /&gt;
&lt;br /&gt;
; tick (dimen) : Length of the ticks.&lt;br /&gt;
&lt;br /&gt;
; whiteframe (dimen) : Width of the white frame around the bar color.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;250px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_rlegend.png|rlegend Zip Codes (wake)&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster zipcodes_wake&amp;lt;br/&amp;gt;&amp;amp;nbsp;cols 2 0&amp;lt;br/&amp;gt;&amp;amp;nbsp;swidth 8mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;order 20,10,30,22,34&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend1.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;height 8cm&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend2.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;width 8cm&amp;lt;br/&amp;gt;&amp;amp;nbsp;vertical no&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the vector maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlegend [text] : Optional the title or head of the legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; title : Block ''font'' for title of legend.&lt;br /&gt;
&lt;br /&gt;
; font : Block font for normal text of legend.&lt;br /&gt;
&lt;br /&gt;
; frame : &lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]) : Distribution of the items in ''number.1'' cols. Optionaly, ''number.2'' of span between columns.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Symbol width.&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Space between lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlegend: sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_output_vlegend0.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: ps.map]]&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=11993</id>
		<title>Ps.output</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=11993"/>
		<updated>2010-10-28T16:14:57Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: /* draw */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ps.out''' try to update the standard postscript output of Grass adding new features to design borders, graticules, categorized legends, etc&lt;br /&gt;
&lt;br /&gt;
'''This is in progress and not all features are yet uploaded in ''addons''. '''&lt;br /&gt;
&lt;br /&gt;
== Command line flags ==&lt;br /&gt;
&lt;br /&gt;
'''-d ''': Draw a 1x1 cm grid on paper to help the placement of the elements of the map.&lt;br /&gt;
&lt;br /&gt;
'''-e''': Make an output file without the postscript header. Useful when is embebed into other ''ps.out'' map.&lt;br /&gt;
&lt;br /&gt;
'''-g''': Use the extended PostScript of Ghostscript (for transparent colors only)&lt;br /&gt;
&lt;br /&gt;
'''-s''': Draw the small digit in the coordinate numbers to lower instead upper possition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;100px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_grid.png|A4 paper with flag -d &lt;br /&gt;
File:ps_out_digit_upper.png|coordinate&lt;br /&gt;
File:ps_out_digit_lower.png|coordinate with flag -s&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generic Instructions ==&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== dimen ====&lt;br /&gt;
&lt;br /&gt;
Define a dimension. Accepted units are:&lt;br /&gt;
&lt;br /&gt;
*; ''unitless'' : e.g. 123. The dimension is the ''number'' by 1/72&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
*; inch : e.g. 1.2inch. &lt;br /&gt;
&lt;br /&gt;
*; milimeters : e.g. 2.3mm.&lt;br /&gt;
&lt;br /&gt;
*; centimeters : e.g. 1.4cm.&lt;br /&gt;
&lt;br /&gt;
*; percentage : e.g. 50%.&amp;lt;br&amp;gt;The position is relative to the size and position of the map in the paper being ''0%'' the left or bottom corner.&lt;br /&gt;
&lt;br /&gt;
==== color ====&lt;br /&gt;
&lt;br /&gt;
Define a color. Accepted formats are:&lt;br /&gt;
&lt;br /&gt;
*; standard GRASS name : e.g. indigo.&lt;br /&gt;
&lt;br /&gt;
*; R&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;G&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;B : e.g. 200:123:90&lt;br /&gt;
&lt;br /&gt;
*; user name : e.g. red5.&amp;lt;br&amp;gt;Defined in ''palette'' block&lt;br /&gt;
&lt;br /&gt;
All formats can add '$(0-1)' to define the opacity of the color (alpha channel); e.g., indigo$.75 or 200:120:120$.2&lt;br /&gt;
&lt;br /&gt;
==== number ====&lt;br /&gt;
&lt;br /&gt;
==== text ====&lt;br /&gt;
&lt;br /&gt;
=== Blocks of instructions ===&lt;br /&gt;
&lt;br /&gt;
A ''block'' begin with the keywords and finish with keyword ''end''&lt;br /&gt;
&lt;br /&gt;
==== font ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a font.&lt;br /&gt;
&lt;br /&gt;
; name (text) : Name of font.&lt;br /&gt;
&lt;br /&gt;
; size (dimen) : Size of font.&lt;br /&gt;
&lt;br /&gt;
; extend (dimen): Expand the width of font.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of font. &lt;br /&gt;
&lt;br /&gt;
==== line ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a line.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of line.&lt;br /&gt;
&lt;br /&gt;
; color (color) : COlor of line.&lt;br /&gt;
&lt;br /&gt;
; style solid|dashed|dotted|dashdotted|(n1n2...) : Style of line.&lt;br /&gt;
&lt;br /&gt;
; cap butt|round|extended_butt : Cap&lt;br /&gt;
&lt;br /&gt;
==== frame ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a frame.&lt;br /&gt;
&lt;br /&gt;
; where (dimen.1 dimen.2) : Position of frame.&lt;br /&gt;
&lt;br /&gt;
; offset (number.1 number.2) : Fine x and y adjust of the position of frame.&lt;br /&gt;
&lt;br /&gt;
; ref right|left|center upper|lower|center : Position is relative to the ''ref''.&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border line&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of the border line.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the frame.&lt;br /&gt;
&lt;br /&gt;
; rotate (dimen) : &amp;lt;u&amp;gt;todo&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== legend ====&lt;br /&gt;
&lt;br /&gt;
; lpos (number): Position in legend&amp;lt;br&amp;gt;Codes: -1, no show in legend; 0 automatic position; &amp;gt; 0 horizontal position.&lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]): Organize legend in ''number.1'' cols with a optional span of ''number.2''&lt;br /&gt;
&lt;br /&gt;
; interline (dimen): Set partial legend interline&lt;br /&gt;
&lt;br /&gt;
== Map paper ==&lt;br /&gt;
&lt;br /&gt;
=== paper ===&lt;br /&gt;
&lt;br /&gt;
Size of paper. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; paper [A0-6|B0-6|Legal|Ledger|Tabloid|Executive|Folio] : Type of paper (default A4).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; color (color) : Paper color.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Custom size of paper.&lt;br /&gt;
&lt;br /&gt;
; left (dimen), right (dimen), top (dimen), bottom (dimen) : Custom margins (default 0.5&amp;quot; left and right, and 1&amp;quot; top and bottom).&lt;br /&gt;
&lt;br /&gt;
; landscape yes|no : Paper orientation (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''. Set the default font of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''. Free draw as watermarks, before any feature of the map is drawn (see ''draw'').&lt;br /&gt;
&lt;br /&gt;
=== scale ===&lt;br /&gt;
&lt;br /&gt;
Scale of the map.&lt;br /&gt;
&lt;br /&gt;
Simple line command to define the scale of the map. The default is adjust map to the paper dimensions. If the remaining dimensions of the paper not permit the scale, ''ps.out'' adjust the scale to a new value that it fit in the paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scale 1&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;(number) : Scale of map.&amp;lt;br&amp;gt;For example, ''scale 1:500000'' to rescale maparea dimensions.&lt;br /&gt;
&lt;br /&gt;
=== maparea ===&lt;br /&gt;
Define specific dimensions of the map (default defined by command ''scale'')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; maparea : Define characteristics of the map area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border map.&amp;lt;br&amp;gt;Usefull with ''in'' and ''out'' formats of the ''grid'' and ''geogrid'', ignored in ''iho'' and ''can'' formats.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Border color-&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the map area.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Dimensions of the map.&lt;br /&gt;
&lt;br /&gt;
; top (dimen), bottom (dimen) : Position of the top-left corner of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''.&amp;lt;br&amp;gt;Draw onto the map but before the grid lines, vpoints and vlabels are drawn; i.e. this map elements are drawn over the draw elements.&lt;br /&gt;
&lt;br /&gt;
=== palette ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;testing&amp;lt;/U&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; palette&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; wheel (number text) :&lt;br /&gt;
&lt;br /&gt;
; monochrome (color number text) :&lt;br /&gt;
&lt;br /&gt;
; complementary (color number text) :&lt;br /&gt;
&lt;br /&gt;
; analogous (color number text) :&lt;br /&gt;
&lt;br /&gt;
; gradient (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; diverging (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
== Common elements ==&lt;br /&gt;
&lt;br /&gt;
=== grid and geogrid ===&lt;br /&gt;
&lt;br /&gt;
Draw a border around the map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; grid|geogrid :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; format in|out|+out|can|iho : Type of border (see examples).&lt;br /&gt;
&lt;br /&gt;
; major (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; minor (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; subminor (number) : ''number'' of subdivisons of the minor divisions.&lt;br /&gt;
&lt;br /&gt;
; trim (number) : Cut trailing zeros.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Color of the border.&lt;br /&gt;
&lt;br /&gt;
; cross (number) : Replace lines by cross&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_iho.png|format iho&lt;br /&gt;
File:ps_out_can.png|format can&lt;br /&gt;
File:ps_out_in.png |format in&lt;br /&gt;
File:ps_out_out.png|format +out&lt;br /&gt;
File:ps_out_out1.png|typical map border&lt;br /&gt;
File:ps_out_out2.png|typical map border with ''subminor 5'' and ''fcolor blue''&lt;br /&gt;
File:ps_out_out3.png|''cross 500'', ''fcolor indigo'', ''color 200:200:200'' in '''maparea'''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== scalebar ===&lt;br /&gt;
&lt;br /&gt;
Set a scalebar on the map.&amp;lt;br&amp;gt;Maximun 5 scalebars in each map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scalebar I|s|S|f|F : Define the type of scalebar (I: inner, s/S: simple, f/F: fill).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; length (number) : Length of the scale.&lt;br /&gt;
&lt;br /&gt;
; units meters|m|kilometers|km|feet|ft|miles|mil|nautical_miles|nm ([text]) : Unit of the length and ''text' to label the units.&lt;br /&gt;
&lt;br /&gt;
; major (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; minor (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor.&lt;br /&gt;
&lt;br /&gt;
; height (dimen) : Height of the bar or ticks.&lt;br /&gt;
&lt;br /&gt;
; zero yes|no : Set position relative to zero value of the scalebar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Scalerbar styles&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;50px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_scalebar_s.png|scalebar s&lt;br /&gt;
File:ps_out_scalebar_S.png|scalebar S&lt;br /&gt;
File:ps_out_scalebar_I.png|scalebar I (uppercase i)&lt;br /&gt;
File:ps_out_scalebar_f.png|scalebar f&lt;br /&gt;
File:ps_out_scalebar_F.png|scalebar F&lt;br /&gt;
File:ps_out_scalebar_3.png|Multiple scalebars zero centered with ''zero yes''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== note ===&lt;br /&gt;
Write special text or free text on any place of the paper with frame (also ''draw'' permit write free-text in paper). &lt;br /&gt;
&lt;br /&gt;
Maximun 20 notes by map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; note &amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;file|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;maplimits|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;dimen|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;scale (text)|(text) : Type of note and text to show.&amp;lt;br&amp;gt;When free text, use '|' to break lines and '.' as first character to center line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of note.&lt;br /&gt;
&lt;br /&gt;
; angle (number) : ''number'' of degrees to rotate (do not work fine).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Note keywords and free text&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_note_ml.png  |note :maplimits&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_dimen.png|note :dimen&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scale.png|note :scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_free.png|note free text|in multiple lines&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_freec.png|note .free text|.in multiple [...]&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scaler.png|note :scale scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br&amp;gt;&amp;amp;nbsp;angle 90&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== draw ===&lt;br /&gt;
&lt;br /&gt;
Simple script language to draw predefined postscript code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; draw [none|paper|maparea|free] :  &lt;br /&gt;
''paper'': before any map feature is drawn (equivalent to place inside ''paper'' block); &amp;lt;br&amp;gt;&lt;br /&gt;
''maparea'' before the last elements of the map (equivalent to place inside ''mapare'' block) ; &amp;lt;br&amp;gt;&lt;br /&gt;
''none'': draw over all elements of the map but only in the map area; and &amp;lt;br&amp;gt;&lt;br /&gt;
''free'': after all map features are drawn in any place of the paper; and ''none''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; --- : &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_north1.png   |&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;north 700000 4700000&amp;lt;/source&amp;gt;&lt;br /&gt;
File:ps_out_north2.png   |north 5cm 16.5cm -&lt;br /&gt;
File:ps_out_maplimits.png|maplimits&lt;br /&gt;
File:ps_out_compass.png  |compass 700000 4700000 10000 10.2345&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Raster maps ==&lt;br /&gt;
&lt;br /&gt;
=== raster ===&lt;br /&gt;
&lt;br /&gt;
Draw one or two raster maps on the maparea. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; raster (raster|raster.1 raster.2|raster.R raster.G raster.B|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;group) : The ''raster'' value is the raster mapname, two raster maps ''raster.1'' or color and ''raster.2'' or shade to draw as relief map, three maps ''raster.R'', ''raster.G'' and ''raster.B'' to draw as RGB, or a groupname (leader by ':') with tree RGB maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; grey yes|no : Store and draw the rasters in grey scale (small size of file).&amp;lt;br&amp;gt;The conversion follows the NTSC video standard.&lt;br /&gt;
&lt;br /&gt;
; maskcell (raster.1 [raster.2]) : Set the ''raster.1'' map to use as mask (independent of the mask set in GRASS with [[r.mask]]) and, optionally, the ''raster.2'' map uses as background.&amp;lt;br&amp;gt;The background ''raster.2'' is painted in grey scale (NTSC) and tinted with ''maskcolor''.&lt;br /&gt;
&lt;br /&gt;
; maskcolor (color|none) : Set the ''color'' of the mask area.&amp;lt;br&amp;gt;If a raster map as background is set then it's drawn with a scale white-maskcolor.&lt;br /&gt;
&lt;br /&gt;
; outline : Block ''line''. Outline of categories.&lt;br /&gt;
&lt;br /&gt;
; setcolor null|default|(number) (color) : Replace the color of the cat ''number'' area with a new color.&amp;lt;br&amp;gt;Multiple ''setcolor'' are possibles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following gallery show the output of the commands inside the '''raster''' block (all mapnames are of type ''raster'').&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_raster1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_outline.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;outline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width .2mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;end&amp;lt;br/&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_setcolor.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor white&amp;lt;br&amp;gt;&amp;amp;nbsp;setcolor 37 magenta&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_grey.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;grey yes&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Vector maps ==&lt;br /&gt;
&lt;br /&gt;
All vector map accept optionally the following commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; layer (number) : Layer number used with cats/where option.&lt;br /&gt;
&lt;br /&gt;
; cats (n1,n2,...) : List of ''cat''s to show.&lt;br /&gt;
&lt;br /&gt;
; where (text) : Argument of the SQL where clausule to filter the areas to show.&lt;br /&gt;
&lt;br /&gt;
; masked yes|no : Masked or not by raster mask (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; label (text) : For description or title in ''vlegend''.&lt;br /&gt;
&lt;br /&gt;
; legend [(number)]: Position in legend (-1, no legend) or enter in a block ''legend''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vareas ===&lt;br /&gt;
&lt;br /&gt;
Draw areas on the map.&amp;lt;br&amp;gt;&lt;br /&gt;
The areas always are drawn first, on the bottom of other type of maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vareas (vector) : ''vector'' is a vector of areas, except when ''lwidth'' is different to zero that ''vector'' is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line'' to set the style of the border line of the areas.&lt;br /&gt;
&lt;br /&gt;
; pat (epsfile) : Pattern in a EPS file.&lt;br /&gt;
&lt;br /&gt;
; pscale (number) : Scale of pattern.&lt;br /&gt;
&lt;br /&gt;
; pwidth (dimen) : Width of the lines of pattern.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color.1|column.1|color.2 column.2) : Static fill ''color.1'', dynamic fill color in a ''column.1'' of the database, or default ''color.2'' with color data from ''column.2'' of the database to apply the rules (color in ''setcolor'').&lt;br /&gt;
&lt;br /&gt;
; setcolor (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with label the ''text'' and title the text of the ''label''. Also, the fillcolor of the areas of the map with ''column'' &amp;gt;= n1 and ''column'' &amp;lt; n2  (''column'' from ''fcolor''), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Text label when default conditions.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; island yes|no : Draw island as normal areas (fill as normal area then hide it).&lt;br /&gt;
&lt;br /&gt;
; lwidth (dimen) : Line map draws as an area with a width = ''lwidth''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vareas: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vareas0.png|&amp;amp;nbsp;vareas geology&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;where GEO_NAME like 'Zb'&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;fcolor indigo&amp;lt;br&amp;gt;&amp;amp;nbsp;end&lt;br /&gt;
File:ps_out_vareas3.png|''with ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;pat ../patterns/diag_up.eps&amp;lt;br&amp;gt;&amp;amp;nbsp;pscale .5&lt;br /&gt;
File:ps_out_vareas1.png|''with ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;fcolor none cat&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 0-500:red A&amp;lt;br/&amp;gt;&amp;amp;nbsp;setrule 500-1000:green B&amp;lt;br/&amp;gt;&amp;amp;nbsp;setrule 1000-5000:blue C&lt;br /&gt;
File:ps_out_vareas2.png|''with ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;island no&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlines ===&lt;br /&gt;
&lt;br /&gt;
Draw lines on the map.&amp;lt;br&amp;gt;The areas always are drawn second, after ''vareas'' and before ''vpoints''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlines (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of lines, except if ''type'' is boundary that ''vector'' is a vector of areas.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type boundary|line : Draw boundaries of a vector of areas or lines of a vector of lines (default ''line'').&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Normal line.&lt;br /&gt;
&lt;br /&gt;
; hline : Block ''line''. Highlight line.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Works with ''hline'' to offset from the center of ''line''.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Define the database ''column.1'' to take the lines colors and, optionally, a ''column.2'' of database to apply color from the rules (''setcolor'').&lt;br /&gt;
&lt;br /&gt;
; setcolor (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with ''text'' as label and title the text of the ''label''. Also, the color of the normal line with column &amp;gt;= n1 and column &amp;lt; n2 (column from rgbcol), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
; setnodata (text) : Label in legend when default values and ''setcolor'' rules.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlines: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlines0.png|''Effect of the ''hline'' block ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;hline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width 1mm&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color red&amp;lt;br&amp;gt;&amp;amp;nbsp;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vpoints ===&lt;br /&gt;
&lt;br /&gt;
Draw points on the map.&amp;lt;br&amp;gt;The points always are drawn last, after ''vareas'' and ''vlines''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vpoints (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of points, except when '''type''' is ''centroid'' or ''boundary'' that it is a vector of areas, or when '''type''' is ''line'' that it is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; type centroid|line|boundary|point : Type of draw (default ''point'').&lt;br /&gt;
&lt;br /&gt;
; symbol (epsfile) : Symbol to use (default: basic/circle).&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Type of line in the symbol.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color): Static fillcolor of the symbol.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Offset of the symbol.&lt;br /&gt;
&lt;br /&gt;
; rotate (number|column) : Angle to rotate the symbol, static ''number'' or dynamic in a ''column'' of the database.&lt;br /&gt;
&lt;br /&gt;
; size (number|column [number]) : Size of the symbol take from ''number'' or from a ''column'' of the database. In the last option, there is a optional ''number'' to define the static size of the symbol in the legend when the size of symbols are dynamic. &lt;br /&gt;
&lt;br /&gt;
; scale (dimen.1 [dimen.2]) : Rescale the size of the symbol by the ''dimen.1'' and, optionally, add a ''dimen.2''. i.e., ''resize = dimen.1 * size + dimen.2''.&lt;br /&gt;
&lt;br /&gt;
; setsize (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;size] text) : Variable size of symbols from data in ''column'' of database set in ''size''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands when type is line&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; dist (dimen) : Define the distance in paper between symbol over the line.&lt;br /&gt;
&lt;br /&gt;
; cline : Block ''line''. Type of line that connect symbols.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vpoints: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vpoints0.png|''Points with same size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size 5&lt;br /&gt;
File:ps_out_vpoints1.png|''Points with dynamic size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT 5&amp;lt;br&amp;gt;&amp;amp;nbsp;scale 0.01 2&lt;br /&gt;
File:ps_out_vpoints2.png|''Points with conditional size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 200-1000:3 &amp;lt; 1000&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 1000-2500:9 &amp;gt; 1000&lt;br /&gt;
File:ps_out_vpoints3.png|''Points on line ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;type line&amp;lt;br&amp;gt;&amp;amp;nbsp;dist 1cm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlabels ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;in progress&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlabels none|(vector) :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; font :&lt;br /&gt;
&lt;br /&gt;
; labelcol (column) :&lt;br /&gt;
&lt;br /&gt;
; decimals (number) :&lt;br /&gt;
&lt;br /&gt;
; circled yes|no :&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2 text)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlabels0.png|vpoints firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;[...]&amp;lt;br/n&amp;gt;end&amp;lt;br/&amp;gt;vlabels firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;labelcol PUMPERS&amp;lt;br/n&amp;gt;&amp;amp;nbsp;font&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;name Univers-Bold&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;size 10&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color yellow&amp;lt;br/n&amp;gt;&amp;amp;nbsp;end&amp;lt;br/n&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Legend of the maps ==&lt;br /&gt;
&lt;br /&gt;
=== rlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the raster map.&amp;lt;br&amp;gt;The units ''meters'' in the gradient legend is set with [[r.support]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; rlegend [text] : Text is the title of the legend. &lt;br /&gt;
&lt;br /&gt;
; raster (raster) : the ''raster'' map to take the data of legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commads are optionals&amp;lt;/U&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; titlefont : Block ''font'' for the legend header.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font'' for the normal text.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Width of the symbol area.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For category legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; cols (number) [(number)] : Number of columns with symbols and separation between columns (default ''1'').&lt;br /&gt;
&lt;br /&gt;
; nodata yes|no : Remove category ''no data''.&lt;br /&gt;
&lt;br /&gt;
; order (n1,n2,...) : To reorder items.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For gradient legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; height (dimen), width (dimen) : Dimension of the frame with the legend.&lt;br /&gt;
&lt;br /&gt;
; vertical yes|no : Orientation of the gradient legend (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; range (n1 n2) : Manual set of the data range for legend.&lt;br /&gt;
&lt;br /&gt;
; gradient yes|no : Forze draw gradient legend with category data.&lt;br /&gt;
&lt;br /&gt;
; tick (dimen) : Length of the ticks.&lt;br /&gt;
&lt;br /&gt;
; whiteframe (dimen) : Width of the white frame around the bar color.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;250px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_rlegend.png|rlegend Zip Codes (wake)&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster zipcodes_wake&amp;lt;br/&amp;gt;&amp;amp;nbsp;cols 2 0&amp;lt;br/&amp;gt;&amp;amp;nbsp;swidth 8mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;order 20,10,30,22,34&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend1.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;height 8cm&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend2.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;width 8cm&amp;lt;br/&amp;gt;&amp;amp;nbsp;vertical no&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the vector maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlegend [text] : Optional the title or head of the legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; title : Block ''font'' for title of legend.&lt;br /&gt;
&lt;br /&gt;
; font : Block font for normal text of legend.&lt;br /&gt;
&lt;br /&gt;
; frame : &lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]) : Distribution of the items in ''number.1'' cols. Optionaly, ''number.2'' of span between columns.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Symbol width.&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Space between lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlegend: sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_output_vlegend0.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: ps.map]]&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=11992</id>
		<title>Ps.output</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=11992"/>
		<updated>2010-10-28T16:09:41Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: /* maparea */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ps.out''' try to update the standard postscript output of Grass adding new features to design borders, graticules, categorized legends, etc&lt;br /&gt;
&lt;br /&gt;
'''This is in progress and not all features are yet uploaded in ''addons''. '''&lt;br /&gt;
&lt;br /&gt;
== Command line flags ==&lt;br /&gt;
&lt;br /&gt;
'''-d ''': Draw a 1x1 cm grid on paper to help the placement of the elements of the map.&lt;br /&gt;
&lt;br /&gt;
'''-e''': Make an output file without the postscript header. Useful when is embebed into other ''ps.out'' map.&lt;br /&gt;
&lt;br /&gt;
'''-g''': Use the extended PostScript of Ghostscript (for transparent colors only)&lt;br /&gt;
&lt;br /&gt;
'''-s''': Draw the small digit in the coordinate numbers to lower instead upper possition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;100px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_grid.png|A4 paper with flag -d &lt;br /&gt;
File:ps_out_digit_upper.png|coordinate&lt;br /&gt;
File:ps_out_digit_lower.png|coordinate with flag -s&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generic Instructions ==&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== dimen ====&lt;br /&gt;
&lt;br /&gt;
Define a dimension. Accepted units are:&lt;br /&gt;
&lt;br /&gt;
*; ''unitless'' : e.g. 123. The dimension is the ''number'' by 1/72&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
*; inch : e.g. 1.2inch. &lt;br /&gt;
&lt;br /&gt;
*; milimeters : e.g. 2.3mm.&lt;br /&gt;
&lt;br /&gt;
*; centimeters : e.g. 1.4cm.&lt;br /&gt;
&lt;br /&gt;
*; percentage : e.g. 50%.&amp;lt;br&amp;gt;The position is relative to the size and position of the map in the paper being ''0%'' the left or bottom corner.&lt;br /&gt;
&lt;br /&gt;
==== color ====&lt;br /&gt;
&lt;br /&gt;
Define a color. Accepted formats are:&lt;br /&gt;
&lt;br /&gt;
*; standard GRASS name : e.g. indigo.&lt;br /&gt;
&lt;br /&gt;
*; R&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;G&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;B : e.g. 200:123:90&lt;br /&gt;
&lt;br /&gt;
*; user name : e.g. red5.&amp;lt;br&amp;gt;Defined in ''palette'' block&lt;br /&gt;
&lt;br /&gt;
All formats can add '$(0-1)' to define the opacity of the color (alpha channel); e.g., indigo$.75 or 200:120:120$.2&lt;br /&gt;
&lt;br /&gt;
==== number ====&lt;br /&gt;
&lt;br /&gt;
==== text ====&lt;br /&gt;
&lt;br /&gt;
=== Blocks of instructions ===&lt;br /&gt;
&lt;br /&gt;
A ''block'' begin with the keywords and finish with keyword ''end''&lt;br /&gt;
&lt;br /&gt;
==== font ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a font.&lt;br /&gt;
&lt;br /&gt;
; name (text) : Name of font.&lt;br /&gt;
&lt;br /&gt;
; size (dimen) : Size of font.&lt;br /&gt;
&lt;br /&gt;
; extend (dimen): Expand the width of font.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of font. &lt;br /&gt;
&lt;br /&gt;
==== line ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a line.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of line.&lt;br /&gt;
&lt;br /&gt;
; color (color) : COlor of line.&lt;br /&gt;
&lt;br /&gt;
; style solid|dashed|dotted|dashdotted|(n1n2...) : Style of line.&lt;br /&gt;
&lt;br /&gt;
; cap butt|round|extended_butt : Cap&lt;br /&gt;
&lt;br /&gt;
==== frame ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a frame.&lt;br /&gt;
&lt;br /&gt;
; where (dimen.1 dimen.2) : Position of frame.&lt;br /&gt;
&lt;br /&gt;
; offset (number.1 number.2) : Fine x and y adjust of the position of frame.&lt;br /&gt;
&lt;br /&gt;
; ref right|left|center upper|lower|center : Position is relative to the ''ref''.&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border line&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of the border line.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the frame.&lt;br /&gt;
&lt;br /&gt;
; rotate (dimen) : &amp;lt;u&amp;gt;todo&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== legend ====&lt;br /&gt;
&lt;br /&gt;
; lpos (number): Position in legend&amp;lt;br&amp;gt;Codes: -1, no show in legend; 0 automatic position; &amp;gt; 0 horizontal position.&lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]): Organize legend in ''number.1'' cols with a optional span of ''number.2''&lt;br /&gt;
&lt;br /&gt;
; interline (dimen): Set partial legend interline&lt;br /&gt;
&lt;br /&gt;
== Map paper ==&lt;br /&gt;
&lt;br /&gt;
=== paper ===&lt;br /&gt;
&lt;br /&gt;
Size of paper. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; paper [A0-6|B0-6|Legal|Ledger|Tabloid|Executive|Folio] : Type of paper (default A4).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; color (color) : Paper color.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Custom size of paper.&lt;br /&gt;
&lt;br /&gt;
; left (dimen), right (dimen), top (dimen), bottom (dimen) : Custom margins (default 0.5&amp;quot; left and right, and 1&amp;quot; top and bottom).&lt;br /&gt;
&lt;br /&gt;
; landscape yes|no : Paper orientation (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''. Set the default font of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''. Free draw as watermarks, before any feature of the map is drawn (see ''draw'').&lt;br /&gt;
&lt;br /&gt;
=== scale ===&lt;br /&gt;
&lt;br /&gt;
Scale of the map.&lt;br /&gt;
&lt;br /&gt;
Simple line command to define the scale of the map. The default is adjust map to the paper dimensions. If the remaining dimensions of the paper not permit the scale, ''ps.out'' adjust the scale to a new value that it fit in the paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scale 1&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;(number) : Scale of map.&amp;lt;br&amp;gt;For example, ''scale 1:500000'' to rescale maparea dimensions.&lt;br /&gt;
&lt;br /&gt;
=== maparea ===&lt;br /&gt;
Define specific dimensions of the map (default defined by command ''scale'')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; maparea : Define characteristics of the map area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border map.&amp;lt;br&amp;gt;Usefull with ''in'' and ''out'' formats of the ''grid'' and ''geogrid'', ignored in ''iho'' and ''can'' formats.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Border color-&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the map area.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Dimensions of the map.&lt;br /&gt;
&lt;br /&gt;
; top (dimen), bottom (dimen) : Position of the top-left corner of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''.&amp;lt;br&amp;gt;Draw onto the map but before the grid lines, vpoints and vlabels are drawn; i.e. this map elements are drawn over the draw elements.&lt;br /&gt;
&lt;br /&gt;
=== palette ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;testing&amp;lt;/U&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; palette&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; wheel (number text) :&lt;br /&gt;
&lt;br /&gt;
; monochrome (color number text) :&lt;br /&gt;
&lt;br /&gt;
; complementary (color number text) :&lt;br /&gt;
&lt;br /&gt;
; analogous (color number text) :&lt;br /&gt;
&lt;br /&gt;
; gradient (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; diverging (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
== Common elements ==&lt;br /&gt;
&lt;br /&gt;
=== grid and geogrid ===&lt;br /&gt;
&lt;br /&gt;
Draw a border around the map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; grid|geogrid :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; format in|out|+out|can|iho : Type of border (see examples).&lt;br /&gt;
&lt;br /&gt;
; major (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; minor (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; subminor (number) : ''number'' of subdivisons of the minor divisions.&lt;br /&gt;
&lt;br /&gt;
; trim (number) : Cut trailing zeros.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Color of the border.&lt;br /&gt;
&lt;br /&gt;
; cross (number) : Replace lines by cross&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_iho.png|format iho&lt;br /&gt;
File:ps_out_can.png|format can&lt;br /&gt;
File:ps_out_in.png |format in&lt;br /&gt;
File:ps_out_out.png|format +out&lt;br /&gt;
File:ps_out_out1.png|typical map border&lt;br /&gt;
File:ps_out_out2.png|typical map border with ''subminor 5'' and ''fcolor blue''&lt;br /&gt;
File:ps_out_out3.png|''cross 500'', ''fcolor indigo'', ''color 200:200:200'' in '''maparea'''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== scalebar ===&lt;br /&gt;
&lt;br /&gt;
Set a scalebar on the map.&amp;lt;br&amp;gt;Maximun 5 scalebars in each map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scalebar I|s|S|f|F : Define the type of scalebar (I: inner, s/S: simple, f/F: fill).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; length (number) : Length of the scale.&lt;br /&gt;
&lt;br /&gt;
; units meters|m|kilometers|km|feet|ft|miles|mil|nautical_miles|nm ([text]) : Unit of the length and ''text' to label the units.&lt;br /&gt;
&lt;br /&gt;
; major (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; minor (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor.&lt;br /&gt;
&lt;br /&gt;
; height (dimen) : Height of the bar or ticks.&lt;br /&gt;
&lt;br /&gt;
; zero yes|no : Set position relative to zero value of the scalebar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Scalerbar styles&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;50px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_scalebar_s.png|scalebar s&lt;br /&gt;
File:ps_out_scalebar_S.png|scalebar S&lt;br /&gt;
File:ps_out_scalebar_I.png|scalebar I (uppercase i)&lt;br /&gt;
File:ps_out_scalebar_f.png|scalebar f&lt;br /&gt;
File:ps_out_scalebar_F.png|scalebar F&lt;br /&gt;
File:ps_out_scalebar_3.png|Multiple scalebars zero centered with ''zero yes''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== note ===&lt;br /&gt;
Write special text or free text on any place of the paper with frame (also ''draw'' permit write free-text in paper). &lt;br /&gt;
&lt;br /&gt;
Maximun 20 notes by map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; note &amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;file|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;maplimits|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;dimen|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;scale (text)|(text) : Type of note and text to show.&amp;lt;br&amp;gt;When free text, use '|' to break lines and '.' as first character to center line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of note.&lt;br /&gt;
&lt;br /&gt;
; angle (number) : ''number'' of degrees to rotate (do not work fine).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Note keywords and free text&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_note_ml.png  |note :maplimits&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_dimen.png|note :dimen&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scale.png|note :scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_free.png|note free text|in multiple lines&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_freec.png|note .free text|.in multiple [...]&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scaler.png|note :scale scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br&amp;gt;&amp;amp;nbsp;angle 90&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== draw ===&lt;br /&gt;
&lt;br /&gt;
Draw predefined postscript code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; draw [paper|free] :  ''paper'': run before any map feature is drawn (equivalent to place inside ''paper'' block); and ''free'': run after all map features are drawn then it's draw over map but not clipped.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; --- : &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_north1.png   |&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;north 700000 4700000&amp;lt;/source&amp;gt;&lt;br /&gt;
File:ps_out_north2.png   |north 5cm 16.5cm -&lt;br /&gt;
File:ps_out_maplimits.png|maplimits&lt;br /&gt;
File:ps_out_compass.png  |compass 700000 4700000 10000 10.2345&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Raster maps ==&lt;br /&gt;
&lt;br /&gt;
=== raster ===&lt;br /&gt;
&lt;br /&gt;
Draw one or two raster maps on the maparea. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; raster (raster|raster.1 raster.2|raster.R raster.G raster.B|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;group) : The ''raster'' value is the raster mapname, two raster maps ''raster.1'' or color and ''raster.2'' or shade to draw as relief map, three maps ''raster.R'', ''raster.G'' and ''raster.B'' to draw as RGB, or a groupname (leader by ':') with tree RGB maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; grey yes|no : Store and draw the rasters in grey scale (small size of file).&amp;lt;br&amp;gt;The conversion follows the NTSC video standard.&lt;br /&gt;
&lt;br /&gt;
; maskcell (raster.1 [raster.2]) : Set the ''raster.1'' map to use as mask (independent of the mask set in GRASS with [[r.mask]]) and, optionally, the ''raster.2'' map uses as background.&amp;lt;br&amp;gt;The background ''raster.2'' is painted in grey scale (NTSC) and tinted with ''maskcolor''.&lt;br /&gt;
&lt;br /&gt;
; maskcolor (color|none) : Set the ''color'' of the mask area.&amp;lt;br&amp;gt;If a raster map as background is set then it's drawn with a scale white-maskcolor.&lt;br /&gt;
&lt;br /&gt;
; outline : Block ''line''. Outline of categories.&lt;br /&gt;
&lt;br /&gt;
; setcolor null|default|(number) (color) : Replace the color of the cat ''number'' area with a new color.&amp;lt;br&amp;gt;Multiple ''setcolor'' are possibles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following gallery show the output of the commands inside the '''raster''' block (all mapnames are of type ''raster'').&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_raster1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_outline.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;outline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width .2mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;end&amp;lt;br/&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_setcolor.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor white&amp;lt;br&amp;gt;&amp;amp;nbsp;setcolor 37 magenta&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_grey.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;grey yes&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Vector maps ==&lt;br /&gt;
&lt;br /&gt;
All vector map accept optionally the following commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; layer (number) : Layer number used with cats/where option.&lt;br /&gt;
&lt;br /&gt;
; cats (n1,n2,...) : List of ''cat''s to show.&lt;br /&gt;
&lt;br /&gt;
; where (text) : Argument of the SQL where clausule to filter the areas to show.&lt;br /&gt;
&lt;br /&gt;
; masked yes|no : Masked or not by raster mask (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; label (text) : For description or title in ''vlegend''.&lt;br /&gt;
&lt;br /&gt;
; legend [(number)]: Position in legend (-1, no legend) or enter in a block ''legend''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vareas ===&lt;br /&gt;
&lt;br /&gt;
Draw areas on the map.&amp;lt;br&amp;gt;&lt;br /&gt;
The areas always are drawn first, on the bottom of other type of maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vareas (vector) : ''vector'' is a vector of areas, except when ''lwidth'' is different to zero that ''vector'' is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line'' to set the style of the border line of the areas.&lt;br /&gt;
&lt;br /&gt;
; pat (epsfile) : Pattern in a EPS file.&lt;br /&gt;
&lt;br /&gt;
; pscale (number) : Scale of pattern.&lt;br /&gt;
&lt;br /&gt;
; pwidth (dimen) : Width of the lines of pattern.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color.1|column.1|color.2 column.2) : Static fill ''color.1'', dynamic fill color in a ''column.1'' of the database, or default ''color.2'' with color data from ''column.2'' of the database to apply the rules (color in ''setcolor'').&lt;br /&gt;
&lt;br /&gt;
; setcolor (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with label the ''text'' and title the text of the ''label''. Also, the fillcolor of the areas of the map with ''column'' &amp;gt;= n1 and ''column'' &amp;lt; n2  (''column'' from ''fcolor''), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Text label when default conditions.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; island yes|no : Draw island as normal areas (fill as normal area then hide it).&lt;br /&gt;
&lt;br /&gt;
; lwidth (dimen) : Line map draws as an area with a width = ''lwidth''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vareas: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vareas0.png|&amp;amp;nbsp;vareas geology&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;where GEO_NAME like 'Zb'&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;fcolor indigo&amp;lt;br&amp;gt;&amp;amp;nbsp;end&lt;br /&gt;
File:ps_out_vareas3.png|''with ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;pat ../patterns/diag_up.eps&amp;lt;br&amp;gt;&amp;amp;nbsp;pscale .5&lt;br /&gt;
File:ps_out_vareas1.png|''with ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;fcolor none cat&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 0-500:red A&amp;lt;br/&amp;gt;&amp;amp;nbsp;setrule 500-1000:green B&amp;lt;br/&amp;gt;&amp;amp;nbsp;setrule 1000-5000:blue C&lt;br /&gt;
File:ps_out_vareas2.png|''with ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;island no&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlines ===&lt;br /&gt;
&lt;br /&gt;
Draw lines on the map.&amp;lt;br&amp;gt;The areas always are drawn second, after ''vareas'' and before ''vpoints''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlines (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of lines, except if ''type'' is boundary that ''vector'' is a vector of areas.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type boundary|line : Draw boundaries of a vector of areas or lines of a vector of lines (default ''line'').&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Normal line.&lt;br /&gt;
&lt;br /&gt;
; hline : Block ''line''. Highlight line.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Works with ''hline'' to offset from the center of ''line''.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Define the database ''column.1'' to take the lines colors and, optionally, a ''column.2'' of database to apply color from the rules (''setcolor'').&lt;br /&gt;
&lt;br /&gt;
; setcolor (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with ''text'' as label and title the text of the ''label''. Also, the color of the normal line with column &amp;gt;= n1 and column &amp;lt; n2 (column from rgbcol), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
; setnodata (text) : Label in legend when default values and ''setcolor'' rules.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlines: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlines0.png|''Effect of the ''hline'' block ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;hline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width 1mm&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color red&amp;lt;br&amp;gt;&amp;amp;nbsp;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vpoints ===&lt;br /&gt;
&lt;br /&gt;
Draw points on the map.&amp;lt;br&amp;gt;The points always are drawn last, after ''vareas'' and ''vlines''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vpoints (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of points, except when '''type''' is ''centroid'' or ''boundary'' that it is a vector of areas, or when '''type''' is ''line'' that it is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; type centroid|line|boundary|point : Type of draw (default ''point'').&lt;br /&gt;
&lt;br /&gt;
; symbol (epsfile) : Symbol to use (default: basic/circle).&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Type of line in the symbol.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color): Static fillcolor of the symbol.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Offset of the symbol.&lt;br /&gt;
&lt;br /&gt;
; rotate (number|column) : Angle to rotate the symbol, static ''number'' or dynamic in a ''column'' of the database.&lt;br /&gt;
&lt;br /&gt;
; size (number|column [number]) : Size of the symbol take from ''number'' or from a ''column'' of the database. In the last option, there is a optional ''number'' to define the static size of the symbol in the legend when the size of symbols are dynamic. &lt;br /&gt;
&lt;br /&gt;
; scale (dimen.1 [dimen.2]) : Rescale the size of the symbol by the ''dimen.1'' and, optionally, add a ''dimen.2''. i.e., ''resize = dimen.1 * size + dimen.2''.&lt;br /&gt;
&lt;br /&gt;
; setsize (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;size] text) : Variable size of symbols from data in ''column'' of database set in ''size''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands when type is line&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; dist (dimen) : Define the distance in paper between symbol over the line.&lt;br /&gt;
&lt;br /&gt;
; cline : Block ''line''. Type of line that connect symbols.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vpoints: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vpoints0.png|''Points with same size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size 5&lt;br /&gt;
File:ps_out_vpoints1.png|''Points with dynamic size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT 5&amp;lt;br&amp;gt;&amp;amp;nbsp;scale 0.01 2&lt;br /&gt;
File:ps_out_vpoints2.png|''Points with conditional size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 200-1000:3 &amp;lt; 1000&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 1000-2500:9 &amp;gt; 1000&lt;br /&gt;
File:ps_out_vpoints3.png|''Points on line ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;type line&amp;lt;br&amp;gt;&amp;amp;nbsp;dist 1cm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlabels ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;in progress&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlabels none|(vector) :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; font :&lt;br /&gt;
&lt;br /&gt;
; labelcol (column) :&lt;br /&gt;
&lt;br /&gt;
; decimals (number) :&lt;br /&gt;
&lt;br /&gt;
; circled yes|no :&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2 text)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlabels0.png|vpoints firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;[...]&amp;lt;br/n&amp;gt;end&amp;lt;br/&amp;gt;vlabels firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;labelcol PUMPERS&amp;lt;br/n&amp;gt;&amp;amp;nbsp;font&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;name Univers-Bold&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;size 10&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color yellow&amp;lt;br/n&amp;gt;&amp;amp;nbsp;end&amp;lt;br/n&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Legend of the maps ==&lt;br /&gt;
&lt;br /&gt;
=== rlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the raster map.&amp;lt;br&amp;gt;The units ''meters'' in the gradient legend is set with [[r.support]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; rlegend [text] : Text is the title of the legend. &lt;br /&gt;
&lt;br /&gt;
; raster (raster) : the ''raster'' map to take the data of legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commads are optionals&amp;lt;/U&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; titlefont : Block ''font'' for the legend header.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font'' for the normal text.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Width of the symbol area.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For category legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; cols (number) [(number)] : Number of columns with symbols and separation between columns (default ''1'').&lt;br /&gt;
&lt;br /&gt;
; nodata yes|no : Remove category ''no data''.&lt;br /&gt;
&lt;br /&gt;
; order (n1,n2,...) : To reorder items.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For gradient legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; height (dimen), width (dimen) : Dimension of the frame with the legend.&lt;br /&gt;
&lt;br /&gt;
; vertical yes|no : Orientation of the gradient legend (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; range (n1 n2) : Manual set of the data range for legend.&lt;br /&gt;
&lt;br /&gt;
; gradient yes|no : Forze draw gradient legend with category data.&lt;br /&gt;
&lt;br /&gt;
; tick (dimen) : Length of the ticks.&lt;br /&gt;
&lt;br /&gt;
; whiteframe (dimen) : Width of the white frame around the bar color.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;250px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_rlegend.png|rlegend Zip Codes (wake)&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster zipcodes_wake&amp;lt;br/&amp;gt;&amp;amp;nbsp;cols 2 0&amp;lt;br/&amp;gt;&amp;amp;nbsp;swidth 8mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;order 20,10,30,22,34&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend1.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;height 8cm&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend2.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;width 8cm&amp;lt;br/&amp;gt;&amp;amp;nbsp;vertical no&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the vector maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlegend [text] : Optional the title or head of the legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; title : Block ''font'' for title of legend.&lt;br /&gt;
&lt;br /&gt;
; font : Block font for normal text of legend.&lt;br /&gt;
&lt;br /&gt;
; frame : &lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]) : Distribution of the items in ''number.1'' cols. Optionaly, ''number.2'' of span between columns.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Symbol width.&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Space between lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlegend: sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_output_vlegend0.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: ps.map]]&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=11991</id>
		<title>Ps.output</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=11991"/>
		<updated>2010-10-28T16:07:00Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: /* scale */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ps.out''' try to update the standard postscript output of Grass adding new features to design borders, graticules, categorized legends, etc&lt;br /&gt;
&lt;br /&gt;
'''This is in progress and not all features are yet uploaded in ''addons''. '''&lt;br /&gt;
&lt;br /&gt;
== Command line flags ==&lt;br /&gt;
&lt;br /&gt;
'''-d ''': Draw a 1x1 cm grid on paper to help the placement of the elements of the map.&lt;br /&gt;
&lt;br /&gt;
'''-e''': Make an output file without the postscript header. Useful when is embebed into other ''ps.out'' map.&lt;br /&gt;
&lt;br /&gt;
'''-g''': Use the extended PostScript of Ghostscript (for transparent colors only)&lt;br /&gt;
&lt;br /&gt;
'''-s''': Draw the small digit in the coordinate numbers to lower instead upper possition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;100px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_grid.png|A4 paper with flag -d &lt;br /&gt;
File:ps_out_digit_upper.png|coordinate&lt;br /&gt;
File:ps_out_digit_lower.png|coordinate with flag -s&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generic Instructions ==&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== dimen ====&lt;br /&gt;
&lt;br /&gt;
Define a dimension. Accepted units are:&lt;br /&gt;
&lt;br /&gt;
*; ''unitless'' : e.g. 123. The dimension is the ''number'' by 1/72&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
*; inch : e.g. 1.2inch. &lt;br /&gt;
&lt;br /&gt;
*; milimeters : e.g. 2.3mm.&lt;br /&gt;
&lt;br /&gt;
*; centimeters : e.g. 1.4cm.&lt;br /&gt;
&lt;br /&gt;
*; percentage : e.g. 50%.&amp;lt;br&amp;gt;The position is relative to the size and position of the map in the paper being ''0%'' the left or bottom corner.&lt;br /&gt;
&lt;br /&gt;
==== color ====&lt;br /&gt;
&lt;br /&gt;
Define a color. Accepted formats are:&lt;br /&gt;
&lt;br /&gt;
*; standard GRASS name : e.g. indigo.&lt;br /&gt;
&lt;br /&gt;
*; R&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;G&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;B : e.g. 200:123:90&lt;br /&gt;
&lt;br /&gt;
*; user name : e.g. red5.&amp;lt;br&amp;gt;Defined in ''palette'' block&lt;br /&gt;
&lt;br /&gt;
All formats can add '$(0-1)' to define the opacity of the color (alpha channel); e.g., indigo$.75 or 200:120:120$.2&lt;br /&gt;
&lt;br /&gt;
==== number ====&lt;br /&gt;
&lt;br /&gt;
==== text ====&lt;br /&gt;
&lt;br /&gt;
=== Blocks of instructions ===&lt;br /&gt;
&lt;br /&gt;
A ''block'' begin with the keywords and finish with keyword ''end''&lt;br /&gt;
&lt;br /&gt;
==== font ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a font.&lt;br /&gt;
&lt;br /&gt;
; name (text) : Name of font.&lt;br /&gt;
&lt;br /&gt;
; size (dimen) : Size of font.&lt;br /&gt;
&lt;br /&gt;
; extend (dimen): Expand the width of font.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of font. &lt;br /&gt;
&lt;br /&gt;
==== line ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a line.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of line.&lt;br /&gt;
&lt;br /&gt;
; color (color) : COlor of line.&lt;br /&gt;
&lt;br /&gt;
; style solid|dashed|dotted|dashdotted|(n1n2...) : Style of line.&lt;br /&gt;
&lt;br /&gt;
; cap butt|round|extended_butt : Cap&lt;br /&gt;
&lt;br /&gt;
==== frame ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a frame.&lt;br /&gt;
&lt;br /&gt;
; where (dimen.1 dimen.2) : Position of frame.&lt;br /&gt;
&lt;br /&gt;
; offset (number.1 number.2) : Fine x and y adjust of the position of frame.&lt;br /&gt;
&lt;br /&gt;
; ref right|left|center upper|lower|center : Position is relative to the ''ref''.&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border line&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of the border line.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the frame.&lt;br /&gt;
&lt;br /&gt;
; rotate (dimen) : &amp;lt;u&amp;gt;todo&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== legend ====&lt;br /&gt;
&lt;br /&gt;
; lpos (number): Position in legend&amp;lt;br&amp;gt;Codes: -1, no show in legend; 0 automatic position; &amp;gt; 0 horizontal position.&lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]): Organize legend in ''number.1'' cols with a optional span of ''number.2''&lt;br /&gt;
&lt;br /&gt;
; interline (dimen): Set partial legend interline&lt;br /&gt;
&lt;br /&gt;
== Map paper ==&lt;br /&gt;
&lt;br /&gt;
=== paper ===&lt;br /&gt;
&lt;br /&gt;
Size of paper. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; paper [A0-6|B0-6|Legal|Ledger|Tabloid|Executive|Folio] : Type of paper (default A4).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; color (color) : Paper color.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Custom size of paper.&lt;br /&gt;
&lt;br /&gt;
; left (dimen), right (dimen), top (dimen), bottom (dimen) : Custom margins (default 0.5&amp;quot; left and right, and 1&amp;quot; top and bottom).&lt;br /&gt;
&lt;br /&gt;
; landscape yes|no : Paper orientation (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''. Set the default font of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''. Free draw as watermarks, before any feature of the map is drawn (see ''draw'').&lt;br /&gt;
&lt;br /&gt;
=== scale ===&lt;br /&gt;
&lt;br /&gt;
Scale of the map.&lt;br /&gt;
&lt;br /&gt;
Simple line command to define the scale of the map. The default is adjust map to the paper dimensions. If the remaining dimensions of the paper not permit the scale, ''ps.out'' adjust the scale to a new value that it fit in the paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scale 1&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;(number) : Scale of map.&amp;lt;br&amp;gt;For example, ''scale 1:500000'' to rescale maparea dimensions.&lt;br /&gt;
&lt;br /&gt;
=== maparea ===&lt;br /&gt;
Define specific dimensions of the map (default defined by command ''scale'')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; maparea : Define characteristics of the map area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border map.&amp;lt;br&amp;gt;Usefull with ''in'' and ''out'' formats of the ''grid'' and ''geogrid'', ignored in ''iho'' and ''can'' formats.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Border color-&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the map area.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Dimensions of the map.&lt;br /&gt;
&lt;br /&gt;
; top (dimen), bottom (dimen) : Position of the top-left corner of the map.&lt;br /&gt;
&lt;br /&gt;
=== palette ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;testing&amp;lt;/U&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; palette&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; wheel (number text) :&lt;br /&gt;
&lt;br /&gt;
; monochrome (color number text) :&lt;br /&gt;
&lt;br /&gt;
; complementary (color number text) :&lt;br /&gt;
&lt;br /&gt;
; analogous (color number text) :&lt;br /&gt;
&lt;br /&gt;
; gradient (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; diverging (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
== Common elements ==&lt;br /&gt;
&lt;br /&gt;
=== grid and geogrid ===&lt;br /&gt;
&lt;br /&gt;
Draw a border around the map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; grid|geogrid :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; format in|out|+out|can|iho : Type of border (see examples).&lt;br /&gt;
&lt;br /&gt;
; major (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; minor (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; subminor (number) : ''number'' of subdivisons of the minor divisions.&lt;br /&gt;
&lt;br /&gt;
; trim (number) : Cut trailing zeros.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Color of the border.&lt;br /&gt;
&lt;br /&gt;
; cross (number) : Replace lines by cross&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_iho.png|format iho&lt;br /&gt;
File:ps_out_can.png|format can&lt;br /&gt;
File:ps_out_in.png |format in&lt;br /&gt;
File:ps_out_out.png|format +out&lt;br /&gt;
File:ps_out_out1.png|typical map border&lt;br /&gt;
File:ps_out_out2.png|typical map border with ''subminor 5'' and ''fcolor blue''&lt;br /&gt;
File:ps_out_out3.png|''cross 500'', ''fcolor indigo'', ''color 200:200:200'' in '''maparea'''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== scalebar ===&lt;br /&gt;
&lt;br /&gt;
Set a scalebar on the map.&amp;lt;br&amp;gt;Maximun 5 scalebars in each map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scalebar I|s|S|f|F : Define the type of scalebar (I: inner, s/S: simple, f/F: fill).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; length (number) : Length of the scale.&lt;br /&gt;
&lt;br /&gt;
; units meters|m|kilometers|km|feet|ft|miles|mil|nautical_miles|nm ([text]) : Unit of the length and ''text' to label the units.&lt;br /&gt;
&lt;br /&gt;
; major (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; minor (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor.&lt;br /&gt;
&lt;br /&gt;
; height (dimen) : Height of the bar or ticks.&lt;br /&gt;
&lt;br /&gt;
; zero yes|no : Set position relative to zero value of the scalebar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Scalerbar styles&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;50px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_scalebar_s.png|scalebar s&lt;br /&gt;
File:ps_out_scalebar_S.png|scalebar S&lt;br /&gt;
File:ps_out_scalebar_I.png|scalebar I (uppercase i)&lt;br /&gt;
File:ps_out_scalebar_f.png|scalebar f&lt;br /&gt;
File:ps_out_scalebar_F.png|scalebar F&lt;br /&gt;
File:ps_out_scalebar_3.png|Multiple scalebars zero centered with ''zero yes''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== note ===&lt;br /&gt;
Write special text or free text on any place of the paper with frame (also ''draw'' permit write free-text in paper). &lt;br /&gt;
&lt;br /&gt;
Maximun 20 notes by map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; note &amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;file|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;maplimits|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;dimen|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;scale (text)|(text) : Type of note and text to show.&amp;lt;br&amp;gt;When free text, use '|' to break lines and '.' as first character to center line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of note.&lt;br /&gt;
&lt;br /&gt;
; angle (number) : ''number'' of degrees to rotate (do not work fine).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Note keywords and free text&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_note_ml.png  |note :maplimits&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_dimen.png|note :dimen&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scale.png|note :scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_free.png|note free text|in multiple lines&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_freec.png|note .free text|.in multiple [...]&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scaler.png|note :scale scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br&amp;gt;&amp;amp;nbsp;angle 90&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== draw ===&lt;br /&gt;
&lt;br /&gt;
Draw predefined postscript code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; draw [paper|free] :  ''paper'': run before any map feature is drawn (equivalent to place inside ''paper'' block); and ''free'': run after all map features are drawn then it's draw over map but not clipped.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; --- : &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_north1.png   |&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;north 700000 4700000&amp;lt;/source&amp;gt;&lt;br /&gt;
File:ps_out_north2.png   |north 5cm 16.5cm -&lt;br /&gt;
File:ps_out_maplimits.png|maplimits&lt;br /&gt;
File:ps_out_compass.png  |compass 700000 4700000 10000 10.2345&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Raster maps ==&lt;br /&gt;
&lt;br /&gt;
=== raster ===&lt;br /&gt;
&lt;br /&gt;
Draw one or two raster maps on the maparea. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; raster (raster|raster.1 raster.2|raster.R raster.G raster.B|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;group) : The ''raster'' value is the raster mapname, two raster maps ''raster.1'' or color and ''raster.2'' or shade to draw as relief map, three maps ''raster.R'', ''raster.G'' and ''raster.B'' to draw as RGB, or a groupname (leader by ':') with tree RGB maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; grey yes|no : Store and draw the rasters in grey scale (small size of file).&amp;lt;br&amp;gt;The conversion follows the NTSC video standard.&lt;br /&gt;
&lt;br /&gt;
; maskcell (raster.1 [raster.2]) : Set the ''raster.1'' map to use as mask (independent of the mask set in GRASS with [[r.mask]]) and, optionally, the ''raster.2'' map uses as background.&amp;lt;br&amp;gt;The background ''raster.2'' is painted in grey scale (NTSC) and tinted with ''maskcolor''.&lt;br /&gt;
&lt;br /&gt;
; maskcolor (color|none) : Set the ''color'' of the mask area.&amp;lt;br&amp;gt;If a raster map as background is set then it's drawn with a scale white-maskcolor.&lt;br /&gt;
&lt;br /&gt;
; outline : Block ''line''. Outline of categories.&lt;br /&gt;
&lt;br /&gt;
; setcolor null|default|(number) (color) : Replace the color of the cat ''number'' area with a new color.&amp;lt;br&amp;gt;Multiple ''setcolor'' are possibles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following gallery show the output of the commands inside the '''raster''' block (all mapnames are of type ''raster'').&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_raster1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_outline.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;outline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width .2mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;end&amp;lt;br/&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_setcolor.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor white&amp;lt;br&amp;gt;&amp;amp;nbsp;setcolor 37 magenta&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_grey.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;grey yes&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Vector maps ==&lt;br /&gt;
&lt;br /&gt;
All vector map accept optionally the following commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; layer (number) : Layer number used with cats/where option.&lt;br /&gt;
&lt;br /&gt;
; cats (n1,n2,...) : List of ''cat''s to show.&lt;br /&gt;
&lt;br /&gt;
; where (text) : Argument of the SQL where clausule to filter the areas to show.&lt;br /&gt;
&lt;br /&gt;
; masked yes|no : Masked or not by raster mask (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; label (text) : For description or title in ''vlegend''.&lt;br /&gt;
&lt;br /&gt;
; legend [(number)]: Position in legend (-1, no legend) or enter in a block ''legend''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vareas ===&lt;br /&gt;
&lt;br /&gt;
Draw areas on the map.&amp;lt;br&amp;gt;&lt;br /&gt;
The areas always are drawn first, on the bottom of other type of maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vareas (vector) : ''vector'' is a vector of areas, except when ''lwidth'' is different to zero that ''vector'' is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line'' to set the style of the border line of the areas.&lt;br /&gt;
&lt;br /&gt;
; pat (epsfile) : Pattern in a EPS file.&lt;br /&gt;
&lt;br /&gt;
; pscale (number) : Scale of pattern.&lt;br /&gt;
&lt;br /&gt;
; pwidth (dimen) : Width of the lines of pattern.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color.1|column.1|color.2 column.2) : Static fill ''color.1'', dynamic fill color in a ''column.1'' of the database, or default ''color.2'' with color data from ''column.2'' of the database to apply the rules (color in ''setcolor'').&lt;br /&gt;
&lt;br /&gt;
; setcolor (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with label the ''text'' and title the text of the ''label''. Also, the fillcolor of the areas of the map with ''column'' &amp;gt;= n1 and ''column'' &amp;lt; n2  (''column'' from ''fcolor''), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Text label when default conditions.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; island yes|no : Draw island as normal areas (fill as normal area then hide it).&lt;br /&gt;
&lt;br /&gt;
; lwidth (dimen) : Line map draws as an area with a width = ''lwidth''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vareas: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vareas0.png|&amp;amp;nbsp;vareas geology&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;where GEO_NAME like 'Zb'&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;fcolor indigo&amp;lt;br&amp;gt;&amp;amp;nbsp;end&lt;br /&gt;
File:ps_out_vareas3.png|''with ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;pat ../patterns/diag_up.eps&amp;lt;br&amp;gt;&amp;amp;nbsp;pscale .5&lt;br /&gt;
File:ps_out_vareas1.png|''with ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;fcolor none cat&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 0-500:red A&amp;lt;br/&amp;gt;&amp;amp;nbsp;setrule 500-1000:green B&amp;lt;br/&amp;gt;&amp;amp;nbsp;setrule 1000-5000:blue C&lt;br /&gt;
File:ps_out_vareas2.png|''with ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;island no&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlines ===&lt;br /&gt;
&lt;br /&gt;
Draw lines on the map.&amp;lt;br&amp;gt;The areas always are drawn second, after ''vareas'' and before ''vpoints''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlines (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of lines, except if ''type'' is boundary that ''vector'' is a vector of areas.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type boundary|line : Draw boundaries of a vector of areas or lines of a vector of lines (default ''line'').&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Normal line.&lt;br /&gt;
&lt;br /&gt;
; hline : Block ''line''. Highlight line.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Works with ''hline'' to offset from the center of ''line''.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Define the database ''column.1'' to take the lines colors and, optionally, a ''column.2'' of database to apply color from the rules (''setcolor'').&lt;br /&gt;
&lt;br /&gt;
; setcolor (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with ''text'' as label and title the text of the ''label''. Also, the color of the normal line with column &amp;gt;= n1 and column &amp;lt; n2 (column from rgbcol), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
; setnodata (text) : Label in legend when default values and ''setcolor'' rules.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlines: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlines0.png|''Effect of the ''hline'' block ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;hline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width 1mm&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color red&amp;lt;br&amp;gt;&amp;amp;nbsp;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vpoints ===&lt;br /&gt;
&lt;br /&gt;
Draw points on the map.&amp;lt;br&amp;gt;The points always are drawn last, after ''vareas'' and ''vlines''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vpoints (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of points, except when '''type''' is ''centroid'' or ''boundary'' that it is a vector of areas, or when '''type''' is ''line'' that it is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; type centroid|line|boundary|point : Type of draw (default ''point'').&lt;br /&gt;
&lt;br /&gt;
; symbol (epsfile) : Symbol to use (default: basic/circle).&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Type of line in the symbol.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color): Static fillcolor of the symbol.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Offset of the symbol.&lt;br /&gt;
&lt;br /&gt;
; rotate (number|column) : Angle to rotate the symbol, static ''number'' or dynamic in a ''column'' of the database.&lt;br /&gt;
&lt;br /&gt;
; size (number|column [number]) : Size of the symbol take from ''number'' or from a ''column'' of the database. In the last option, there is a optional ''number'' to define the static size of the symbol in the legend when the size of symbols are dynamic. &lt;br /&gt;
&lt;br /&gt;
; scale (dimen.1 [dimen.2]) : Rescale the size of the symbol by the ''dimen.1'' and, optionally, add a ''dimen.2''. i.e., ''resize = dimen.1 * size + dimen.2''.&lt;br /&gt;
&lt;br /&gt;
; setsize (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;size] text) : Variable size of symbols from data in ''column'' of database set in ''size''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands when type is line&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; dist (dimen) : Define the distance in paper between symbol over the line.&lt;br /&gt;
&lt;br /&gt;
; cline : Block ''line''. Type of line that connect symbols.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vpoints: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vpoints0.png|''Points with same size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size 5&lt;br /&gt;
File:ps_out_vpoints1.png|''Points with dynamic size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT 5&amp;lt;br&amp;gt;&amp;amp;nbsp;scale 0.01 2&lt;br /&gt;
File:ps_out_vpoints2.png|''Points with conditional size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 200-1000:3 &amp;lt; 1000&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 1000-2500:9 &amp;gt; 1000&lt;br /&gt;
File:ps_out_vpoints3.png|''Points on line ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;type line&amp;lt;br&amp;gt;&amp;amp;nbsp;dist 1cm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlabels ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;in progress&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlabels none|(vector) :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; font :&lt;br /&gt;
&lt;br /&gt;
; labelcol (column) :&lt;br /&gt;
&lt;br /&gt;
; decimals (number) :&lt;br /&gt;
&lt;br /&gt;
; circled yes|no :&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2 text)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlabels0.png|vpoints firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;[...]&amp;lt;br/n&amp;gt;end&amp;lt;br/&amp;gt;vlabels firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;labelcol PUMPERS&amp;lt;br/n&amp;gt;&amp;amp;nbsp;font&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;name Univers-Bold&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;size 10&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color yellow&amp;lt;br/n&amp;gt;&amp;amp;nbsp;end&amp;lt;br/n&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Legend of the maps ==&lt;br /&gt;
&lt;br /&gt;
=== rlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the raster map.&amp;lt;br&amp;gt;The units ''meters'' in the gradient legend is set with [[r.support]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; rlegend [text] : Text is the title of the legend. &lt;br /&gt;
&lt;br /&gt;
; raster (raster) : the ''raster'' map to take the data of legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commads are optionals&amp;lt;/U&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; titlefont : Block ''font'' for the legend header.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font'' for the normal text.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Width of the symbol area.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For category legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; cols (number) [(number)] : Number of columns with symbols and separation between columns (default ''1'').&lt;br /&gt;
&lt;br /&gt;
; nodata yes|no : Remove category ''no data''.&lt;br /&gt;
&lt;br /&gt;
; order (n1,n2,...) : To reorder items.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For gradient legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; height (dimen), width (dimen) : Dimension of the frame with the legend.&lt;br /&gt;
&lt;br /&gt;
; vertical yes|no : Orientation of the gradient legend (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; range (n1 n2) : Manual set of the data range for legend.&lt;br /&gt;
&lt;br /&gt;
; gradient yes|no : Forze draw gradient legend with category data.&lt;br /&gt;
&lt;br /&gt;
; tick (dimen) : Length of the ticks.&lt;br /&gt;
&lt;br /&gt;
; whiteframe (dimen) : Width of the white frame around the bar color.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;250px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_rlegend.png|rlegend Zip Codes (wake)&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster zipcodes_wake&amp;lt;br/&amp;gt;&amp;amp;nbsp;cols 2 0&amp;lt;br/&amp;gt;&amp;amp;nbsp;swidth 8mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;order 20,10,30,22,34&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend1.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;height 8cm&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend2.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;width 8cm&amp;lt;br/&amp;gt;&amp;amp;nbsp;vertical no&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the vector maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlegend [text] : Optional the title or head of the legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; title : Block ''font'' for title of legend.&lt;br /&gt;
&lt;br /&gt;
; font : Block font for normal text of legend.&lt;br /&gt;
&lt;br /&gt;
; frame : &lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]) : Distribution of the items in ''number.1'' cols. Optionaly, ''number.2'' of span between columns.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Symbol width.&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Space between lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlegend: sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_output_vlegend0.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: ps.map]]&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=11990</id>
		<title>Ps.output</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=11990"/>
		<updated>2010-10-28T16:03:07Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: /* paper */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ps.out''' try to update the standard postscript output of Grass adding new features to design borders, graticules, categorized legends, etc&lt;br /&gt;
&lt;br /&gt;
'''This is in progress and not all features are yet uploaded in ''addons''. '''&lt;br /&gt;
&lt;br /&gt;
== Command line flags ==&lt;br /&gt;
&lt;br /&gt;
'''-d ''': Draw a 1x1 cm grid on paper to help the placement of the elements of the map.&lt;br /&gt;
&lt;br /&gt;
'''-e''': Make an output file without the postscript header. Useful when is embebed into other ''ps.out'' map.&lt;br /&gt;
&lt;br /&gt;
'''-g''': Use the extended PostScript of Ghostscript (for transparent colors only)&lt;br /&gt;
&lt;br /&gt;
'''-s''': Draw the small digit in the coordinate numbers to lower instead upper possition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;100px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_grid.png|A4 paper with flag -d &lt;br /&gt;
File:ps_out_digit_upper.png|coordinate&lt;br /&gt;
File:ps_out_digit_lower.png|coordinate with flag -s&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generic Instructions ==&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== dimen ====&lt;br /&gt;
&lt;br /&gt;
Define a dimension. Accepted units are:&lt;br /&gt;
&lt;br /&gt;
*; ''unitless'' : e.g. 123. The dimension is the ''number'' by 1/72&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
*; inch : e.g. 1.2inch. &lt;br /&gt;
&lt;br /&gt;
*; milimeters : e.g. 2.3mm.&lt;br /&gt;
&lt;br /&gt;
*; centimeters : e.g. 1.4cm.&lt;br /&gt;
&lt;br /&gt;
*; percentage : e.g. 50%.&amp;lt;br&amp;gt;The position is relative to the size and position of the map in the paper being ''0%'' the left or bottom corner.&lt;br /&gt;
&lt;br /&gt;
==== color ====&lt;br /&gt;
&lt;br /&gt;
Define a color. Accepted formats are:&lt;br /&gt;
&lt;br /&gt;
*; standard GRASS name : e.g. indigo.&lt;br /&gt;
&lt;br /&gt;
*; R&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;G&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;B : e.g. 200:123:90&lt;br /&gt;
&lt;br /&gt;
*; user name : e.g. red5.&amp;lt;br&amp;gt;Defined in ''palette'' block&lt;br /&gt;
&lt;br /&gt;
All formats can add '$(0-1)' to define the opacity of the color (alpha channel); e.g., indigo$.75 or 200:120:120$.2&lt;br /&gt;
&lt;br /&gt;
==== number ====&lt;br /&gt;
&lt;br /&gt;
==== text ====&lt;br /&gt;
&lt;br /&gt;
=== Blocks of instructions ===&lt;br /&gt;
&lt;br /&gt;
A ''block'' begin with the keywords and finish with keyword ''end''&lt;br /&gt;
&lt;br /&gt;
==== font ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a font.&lt;br /&gt;
&lt;br /&gt;
; name (text) : Name of font.&lt;br /&gt;
&lt;br /&gt;
; size (dimen) : Size of font.&lt;br /&gt;
&lt;br /&gt;
; extend (dimen): Expand the width of font.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of font. &lt;br /&gt;
&lt;br /&gt;
==== line ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a line.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of line.&lt;br /&gt;
&lt;br /&gt;
; color (color) : COlor of line.&lt;br /&gt;
&lt;br /&gt;
; style solid|dashed|dotted|dashdotted|(n1n2...) : Style of line.&lt;br /&gt;
&lt;br /&gt;
; cap butt|round|extended_butt : Cap&lt;br /&gt;
&lt;br /&gt;
==== frame ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a frame.&lt;br /&gt;
&lt;br /&gt;
; where (dimen.1 dimen.2) : Position of frame.&lt;br /&gt;
&lt;br /&gt;
; offset (number.1 number.2) : Fine x and y adjust of the position of frame.&lt;br /&gt;
&lt;br /&gt;
; ref right|left|center upper|lower|center : Position is relative to the ''ref''.&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border line&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of the border line.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the frame.&lt;br /&gt;
&lt;br /&gt;
; rotate (dimen) : &amp;lt;u&amp;gt;todo&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== legend ====&lt;br /&gt;
&lt;br /&gt;
; lpos (number): Position in legend&amp;lt;br&amp;gt;Codes: -1, no show in legend; 0 automatic position; &amp;gt; 0 horizontal position.&lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]): Organize legend in ''number.1'' cols with a optional span of ''number.2''&lt;br /&gt;
&lt;br /&gt;
; interline (dimen): Set partial legend interline&lt;br /&gt;
&lt;br /&gt;
== Map paper ==&lt;br /&gt;
&lt;br /&gt;
=== paper ===&lt;br /&gt;
&lt;br /&gt;
Size of paper. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; paper [A0-6|B0-6|Legal|Ledger|Tabloid|Executive|Folio] : Type of paper (default A4).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; color (color) : Paper color.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Custom size of paper.&lt;br /&gt;
&lt;br /&gt;
; left (dimen), right (dimen), top (dimen), bottom (dimen) : Custom margins (default 0.5&amp;quot; left and right, and 1&amp;quot; top and bottom).&lt;br /&gt;
&lt;br /&gt;
; landscape yes|no : Paper orientation (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''. Set the default font of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''. Free draw as watermarks, before any feature of the map is drawn (see ''draw'').&lt;br /&gt;
&lt;br /&gt;
=== scale ===&lt;br /&gt;
&lt;br /&gt;
Simple command to define the scale of the map (default adjust map to the paper dimensions).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scale 1&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;(number) : Scale of map, if possible.&amp;lt;br&amp;gt;For example, ''scale 1:500000'' to rescale maparea dimensions.&lt;br /&gt;
&lt;br /&gt;
=== maparea ===&lt;br /&gt;
Define specific dimensions of the map (default defined by command ''scale'')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; maparea : Define characteristics of the map area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border map.&amp;lt;br&amp;gt;Usefull with ''in'' and ''out'' formats of the ''grid'' and ''geogrid'', ignored in ''iho'' and ''can'' formats.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Border color-&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the map area.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Dimensions of the map.&lt;br /&gt;
&lt;br /&gt;
; top (dimen), bottom (dimen) : Position of the top-left corner of the map.&lt;br /&gt;
&lt;br /&gt;
=== palette ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;testing&amp;lt;/U&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; palette&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; wheel (number text) :&lt;br /&gt;
&lt;br /&gt;
; monochrome (color number text) :&lt;br /&gt;
&lt;br /&gt;
; complementary (color number text) :&lt;br /&gt;
&lt;br /&gt;
; analogous (color number text) :&lt;br /&gt;
&lt;br /&gt;
; gradient (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; diverging (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
== Common elements ==&lt;br /&gt;
&lt;br /&gt;
=== grid and geogrid ===&lt;br /&gt;
&lt;br /&gt;
Draw a border around the map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; grid|geogrid :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; format in|out|+out|can|iho : Type of border (see examples).&lt;br /&gt;
&lt;br /&gt;
; major (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; minor (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; subminor (number) : ''number'' of subdivisons of the minor divisions.&lt;br /&gt;
&lt;br /&gt;
; trim (number) : Cut trailing zeros.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Color of the border.&lt;br /&gt;
&lt;br /&gt;
; cross (number) : Replace lines by cross&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_iho.png|format iho&lt;br /&gt;
File:ps_out_can.png|format can&lt;br /&gt;
File:ps_out_in.png |format in&lt;br /&gt;
File:ps_out_out.png|format +out&lt;br /&gt;
File:ps_out_out1.png|typical map border&lt;br /&gt;
File:ps_out_out2.png|typical map border with ''subminor 5'' and ''fcolor blue''&lt;br /&gt;
File:ps_out_out3.png|''cross 500'', ''fcolor indigo'', ''color 200:200:200'' in '''maparea'''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== scalebar ===&lt;br /&gt;
&lt;br /&gt;
Set a scalebar on the map.&amp;lt;br&amp;gt;Maximun 5 scalebars in each map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scalebar I|s|S|f|F : Define the type of scalebar (I: inner, s/S: simple, f/F: fill).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; length (number) : Length of the scale.&lt;br /&gt;
&lt;br /&gt;
; units meters|m|kilometers|km|feet|ft|miles|mil|nautical_miles|nm ([text]) : Unit of the length and ''text' to label the units.&lt;br /&gt;
&lt;br /&gt;
; major (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; minor (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor.&lt;br /&gt;
&lt;br /&gt;
; height (dimen) : Height of the bar or ticks.&lt;br /&gt;
&lt;br /&gt;
; zero yes|no : Set position relative to zero value of the scalebar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Scalerbar styles&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;50px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_scalebar_s.png|scalebar s&lt;br /&gt;
File:ps_out_scalebar_S.png|scalebar S&lt;br /&gt;
File:ps_out_scalebar_I.png|scalebar I (uppercase i)&lt;br /&gt;
File:ps_out_scalebar_f.png|scalebar f&lt;br /&gt;
File:ps_out_scalebar_F.png|scalebar F&lt;br /&gt;
File:ps_out_scalebar_3.png|Multiple scalebars zero centered with ''zero yes''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== note ===&lt;br /&gt;
Write special text or free text on any place of the paper with frame (also ''draw'' permit write free-text in paper). &lt;br /&gt;
&lt;br /&gt;
Maximun 20 notes by map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; note &amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;file|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;maplimits|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;dimen|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;scale (text)|(text) : Type of note and text to show.&amp;lt;br&amp;gt;When free text, use '|' to break lines and '.' as first character to center line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of note.&lt;br /&gt;
&lt;br /&gt;
; angle (number) : ''number'' of degrees to rotate (do not work fine).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Note keywords and free text&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_note_ml.png  |note :maplimits&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_dimen.png|note :dimen&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scale.png|note :scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_free.png|note free text|in multiple lines&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_freec.png|note .free text|.in multiple [...]&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scaler.png|note :scale scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br&amp;gt;&amp;amp;nbsp;angle 90&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== draw ===&lt;br /&gt;
&lt;br /&gt;
Draw predefined postscript code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; draw [paper|free] :  ''paper'': run before any map feature is drawn (equivalent to place inside ''paper'' block); and ''free'': run after all map features are drawn then it's draw over map but not clipped.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; --- : &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_north1.png   |&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;north 700000 4700000&amp;lt;/source&amp;gt;&lt;br /&gt;
File:ps_out_north2.png   |north 5cm 16.5cm -&lt;br /&gt;
File:ps_out_maplimits.png|maplimits&lt;br /&gt;
File:ps_out_compass.png  |compass 700000 4700000 10000 10.2345&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Raster maps ==&lt;br /&gt;
&lt;br /&gt;
=== raster ===&lt;br /&gt;
&lt;br /&gt;
Draw one or two raster maps on the maparea. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; raster (raster|raster.1 raster.2|raster.R raster.G raster.B|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;group) : The ''raster'' value is the raster mapname, two raster maps ''raster.1'' or color and ''raster.2'' or shade to draw as relief map, three maps ''raster.R'', ''raster.G'' and ''raster.B'' to draw as RGB, or a groupname (leader by ':') with tree RGB maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; grey yes|no : Store and draw the rasters in grey scale (small size of file).&amp;lt;br&amp;gt;The conversion follows the NTSC video standard.&lt;br /&gt;
&lt;br /&gt;
; maskcell (raster.1 [raster.2]) : Set the ''raster.1'' map to use as mask (independent of the mask set in GRASS with [[r.mask]]) and, optionally, the ''raster.2'' map uses as background.&amp;lt;br&amp;gt;The background ''raster.2'' is painted in grey scale (NTSC) and tinted with ''maskcolor''.&lt;br /&gt;
&lt;br /&gt;
; maskcolor (color|none) : Set the ''color'' of the mask area.&amp;lt;br&amp;gt;If a raster map as background is set then it's drawn with a scale white-maskcolor.&lt;br /&gt;
&lt;br /&gt;
; outline : Block ''line''. Outline of categories.&lt;br /&gt;
&lt;br /&gt;
; setcolor null|default|(number) (color) : Replace the color of the cat ''number'' area with a new color.&amp;lt;br&amp;gt;Multiple ''setcolor'' are possibles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following gallery show the output of the commands inside the '''raster''' block (all mapnames are of type ''raster'').&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_raster1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_outline.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;outline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width .2mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;end&amp;lt;br/&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_setcolor.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor white&amp;lt;br&amp;gt;&amp;amp;nbsp;setcolor 37 magenta&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_grey.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;grey yes&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Vector maps ==&lt;br /&gt;
&lt;br /&gt;
All vector map accept optionally the following commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; layer (number) : Layer number used with cats/where option.&lt;br /&gt;
&lt;br /&gt;
; cats (n1,n2,...) : List of ''cat''s to show.&lt;br /&gt;
&lt;br /&gt;
; where (text) : Argument of the SQL where clausule to filter the areas to show.&lt;br /&gt;
&lt;br /&gt;
; masked yes|no : Masked or not by raster mask (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; label (text) : For description or title in ''vlegend''.&lt;br /&gt;
&lt;br /&gt;
; legend [(number)]: Position in legend (-1, no legend) or enter in a block ''legend''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vareas ===&lt;br /&gt;
&lt;br /&gt;
Draw areas on the map.&amp;lt;br&amp;gt;&lt;br /&gt;
The areas always are drawn first, on the bottom of other type of maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vareas (vector) : ''vector'' is a vector of areas, except when ''lwidth'' is different to zero that ''vector'' is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line'' to set the style of the border line of the areas.&lt;br /&gt;
&lt;br /&gt;
; pat (epsfile) : Pattern in a EPS file.&lt;br /&gt;
&lt;br /&gt;
; pscale (number) : Scale of pattern.&lt;br /&gt;
&lt;br /&gt;
; pwidth (dimen) : Width of the lines of pattern.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color.1|column.1|color.2 column.2) : Static fill ''color.1'', dynamic fill color in a ''column.1'' of the database, or default ''color.2'' with color data from ''column.2'' of the database to apply the rules (color in ''setcolor'').&lt;br /&gt;
&lt;br /&gt;
; setcolor (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with label the ''text'' and title the text of the ''label''. Also, the fillcolor of the areas of the map with ''column'' &amp;gt;= n1 and ''column'' &amp;lt; n2  (''column'' from ''fcolor''), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Text label when default conditions.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; island yes|no : Draw island as normal areas (fill as normal area then hide it).&lt;br /&gt;
&lt;br /&gt;
; lwidth (dimen) : Line map draws as an area with a width = ''lwidth''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vareas: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vareas0.png|&amp;amp;nbsp;vareas geology&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;where GEO_NAME like 'Zb'&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;fcolor indigo&amp;lt;br&amp;gt;&amp;amp;nbsp;end&lt;br /&gt;
File:ps_out_vareas3.png|''with ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;pat ../patterns/diag_up.eps&amp;lt;br&amp;gt;&amp;amp;nbsp;pscale .5&lt;br /&gt;
File:ps_out_vareas1.png|''with ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;fcolor none cat&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 0-500:red A&amp;lt;br/&amp;gt;&amp;amp;nbsp;setrule 500-1000:green B&amp;lt;br/&amp;gt;&amp;amp;nbsp;setrule 1000-5000:blue C&lt;br /&gt;
File:ps_out_vareas2.png|''with ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;island no&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlines ===&lt;br /&gt;
&lt;br /&gt;
Draw lines on the map.&amp;lt;br&amp;gt;The areas always are drawn second, after ''vareas'' and before ''vpoints''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlines (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of lines, except if ''type'' is boundary that ''vector'' is a vector of areas.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type boundary|line : Draw boundaries of a vector of areas or lines of a vector of lines (default ''line'').&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Normal line.&lt;br /&gt;
&lt;br /&gt;
; hline : Block ''line''. Highlight line.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Works with ''hline'' to offset from the center of ''line''.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Define the database ''column.1'' to take the lines colors and, optionally, a ''column.2'' of database to apply color from the rules (''setcolor'').&lt;br /&gt;
&lt;br /&gt;
; setcolor (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with ''text'' as label and title the text of the ''label''. Also, the color of the normal line with column &amp;gt;= n1 and column &amp;lt; n2 (column from rgbcol), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
; setnodata (text) : Label in legend when default values and ''setcolor'' rules.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlines: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlines0.png|''Effect of the ''hline'' block ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;hline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width 1mm&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color red&amp;lt;br&amp;gt;&amp;amp;nbsp;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vpoints ===&lt;br /&gt;
&lt;br /&gt;
Draw points on the map.&amp;lt;br&amp;gt;The points always are drawn last, after ''vareas'' and ''vlines''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vpoints (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of points, except when '''type''' is ''centroid'' or ''boundary'' that it is a vector of areas, or when '''type''' is ''line'' that it is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; type centroid|line|boundary|point : Type of draw (default ''point'').&lt;br /&gt;
&lt;br /&gt;
; symbol (epsfile) : Symbol to use (default: basic/circle).&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Type of line in the symbol.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color): Static fillcolor of the symbol.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Offset of the symbol.&lt;br /&gt;
&lt;br /&gt;
; rotate (number|column) : Angle to rotate the symbol, static ''number'' or dynamic in a ''column'' of the database.&lt;br /&gt;
&lt;br /&gt;
; size (number|column [number]) : Size of the symbol take from ''number'' or from a ''column'' of the database. In the last option, there is a optional ''number'' to define the static size of the symbol in the legend when the size of symbols are dynamic. &lt;br /&gt;
&lt;br /&gt;
; scale (dimen.1 [dimen.2]) : Rescale the size of the symbol by the ''dimen.1'' and, optionally, add a ''dimen.2''. i.e., ''resize = dimen.1 * size + dimen.2''.&lt;br /&gt;
&lt;br /&gt;
; setsize (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;size] text) : Variable size of symbols from data in ''column'' of database set in ''size''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands when type is line&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; dist (dimen) : Define the distance in paper between symbol over the line.&lt;br /&gt;
&lt;br /&gt;
; cline : Block ''line''. Type of line that connect symbols.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vpoints: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vpoints0.png|''Points with same size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size 5&lt;br /&gt;
File:ps_out_vpoints1.png|''Points with dynamic size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT 5&amp;lt;br&amp;gt;&amp;amp;nbsp;scale 0.01 2&lt;br /&gt;
File:ps_out_vpoints2.png|''Points with conditional size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 200-1000:3 &amp;lt; 1000&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 1000-2500:9 &amp;gt; 1000&lt;br /&gt;
File:ps_out_vpoints3.png|''Points on line ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;type line&amp;lt;br&amp;gt;&amp;amp;nbsp;dist 1cm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlabels ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;in progress&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlabels none|(vector) :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; font :&lt;br /&gt;
&lt;br /&gt;
; labelcol (column) :&lt;br /&gt;
&lt;br /&gt;
; decimals (number) :&lt;br /&gt;
&lt;br /&gt;
; circled yes|no :&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2 text)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlabels0.png|vpoints firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;[...]&amp;lt;br/n&amp;gt;end&amp;lt;br/&amp;gt;vlabels firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;labelcol PUMPERS&amp;lt;br/n&amp;gt;&amp;amp;nbsp;font&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;name Univers-Bold&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;size 10&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color yellow&amp;lt;br/n&amp;gt;&amp;amp;nbsp;end&amp;lt;br/n&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Legend of the maps ==&lt;br /&gt;
&lt;br /&gt;
=== rlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the raster map.&amp;lt;br&amp;gt;The units ''meters'' in the gradient legend is set with [[r.support]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; rlegend [text] : Text is the title of the legend. &lt;br /&gt;
&lt;br /&gt;
; raster (raster) : the ''raster'' map to take the data of legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commads are optionals&amp;lt;/U&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; titlefont : Block ''font'' for the legend header.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font'' for the normal text.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Width of the symbol area.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For category legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; cols (number) [(number)] : Number of columns with symbols and separation between columns (default ''1'').&lt;br /&gt;
&lt;br /&gt;
; nodata yes|no : Remove category ''no data''.&lt;br /&gt;
&lt;br /&gt;
; order (n1,n2,...) : To reorder items.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For gradient legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; height (dimen), width (dimen) : Dimension of the frame with the legend.&lt;br /&gt;
&lt;br /&gt;
; vertical yes|no : Orientation of the gradient legend (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; range (n1 n2) : Manual set of the data range for legend.&lt;br /&gt;
&lt;br /&gt;
; gradient yes|no : Forze draw gradient legend with category data.&lt;br /&gt;
&lt;br /&gt;
; tick (dimen) : Length of the ticks.&lt;br /&gt;
&lt;br /&gt;
; whiteframe (dimen) : Width of the white frame around the bar color.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;250px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_rlegend.png|rlegend Zip Codes (wake)&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster zipcodes_wake&amp;lt;br/&amp;gt;&amp;amp;nbsp;cols 2 0&amp;lt;br/&amp;gt;&amp;amp;nbsp;swidth 8mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;order 20,10,30,22,34&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend1.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;height 8cm&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend2.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;width 8cm&amp;lt;br/&amp;gt;&amp;amp;nbsp;vertical no&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the vector maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlegend [text] : Optional the title or head of the legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; title : Block ''font'' for title of legend.&lt;br /&gt;
&lt;br /&gt;
; font : Block font for normal text of legend.&lt;br /&gt;
&lt;br /&gt;
; frame : &lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]) : Distribution of the items in ''number.1'' cols. Optionaly, ''number.2'' of span between columns.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Symbol width.&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Space between lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlegend: sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_output_vlegend0.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: ps.map]]&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=11989</id>
		<title>Ps.output</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Ps.output&amp;diff=11989"/>
		<updated>2010-10-27T18:57:57Z</updated>

		<summary type="html">&lt;p&gt;⚠️Ejtizado: /* vareas */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''ps.out''' try to update the standard postscript output of Grass adding new features to design borders, graticules, categorized legends, etc&lt;br /&gt;
&lt;br /&gt;
'''This is in progress and not all features are yet uploaded in ''addons''. '''&lt;br /&gt;
&lt;br /&gt;
== Command line flags ==&lt;br /&gt;
&lt;br /&gt;
'''-d ''': Draw a 1x1 cm grid on paper to help the placement of the elements of the map.&lt;br /&gt;
&lt;br /&gt;
'''-e''': Make an output file without the postscript header. Useful when is embebed into other ''ps.out'' map.&lt;br /&gt;
&lt;br /&gt;
'''-g''': Use the extended PostScript of Ghostscript (for transparent colors only)&lt;br /&gt;
&lt;br /&gt;
'''-s''': Draw the small digit in the coordinate numbers to lower instead upper possition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;100px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_grid.png|A4 paper with flag -d &lt;br /&gt;
File:ps_out_digit_upper.png|coordinate&lt;br /&gt;
File:ps_out_digit_lower.png|coordinate with flag -s&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generic Instructions ==&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== dimen ====&lt;br /&gt;
&lt;br /&gt;
Define a dimension. Accepted units are:&lt;br /&gt;
&lt;br /&gt;
*; ''unitless'' : e.g. 123. The dimension is the ''number'' by 1/72&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
*; inch : e.g. 1.2inch. &lt;br /&gt;
&lt;br /&gt;
*; milimeters : e.g. 2.3mm.&lt;br /&gt;
&lt;br /&gt;
*; centimeters : e.g. 1.4cm.&lt;br /&gt;
&lt;br /&gt;
*; percentage : e.g. 50%.&amp;lt;br&amp;gt;The position is relative to the size and position of the map in the paper being ''0%'' the left or bottom corner.&lt;br /&gt;
&lt;br /&gt;
==== color ====&lt;br /&gt;
&lt;br /&gt;
Define a color. Accepted formats are:&lt;br /&gt;
&lt;br /&gt;
*; standard GRASS name : e.g. indigo.&lt;br /&gt;
&lt;br /&gt;
*; R&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;G&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;B : e.g. 200:123:90&lt;br /&gt;
&lt;br /&gt;
*; user name : e.g. red5.&amp;lt;br&amp;gt;Defined in ''palette'' block&lt;br /&gt;
&lt;br /&gt;
All formats can add '$(0-1)' to define the opacity of the color (alpha channel); e.g., indigo$.75 or 200:120:120$.2&lt;br /&gt;
&lt;br /&gt;
==== number ====&lt;br /&gt;
&lt;br /&gt;
==== text ====&lt;br /&gt;
&lt;br /&gt;
=== Blocks of instructions ===&lt;br /&gt;
&lt;br /&gt;
A ''block'' begin with the keywords and finish with keyword ''end''&lt;br /&gt;
&lt;br /&gt;
==== font ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a font.&lt;br /&gt;
&lt;br /&gt;
; name (text) : Name of font.&lt;br /&gt;
&lt;br /&gt;
; size (dimen) : Size of font.&lt;br /&gt;
&lt;br /&gt;
; extend (dimen): Expand the width of font.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of font. &lt;br /&gt;
&lt;br /&gt;
==== line ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a line.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of line.&lt;br /&gt;
&lt;br /&gt;
; color (color) : COlor of line.&lt;br /&gt;
&lt;br /&gt;
; style solid|dashed|dotted|dashdotted|(n1n2...) : Style of line.&lt;br /&gt;
&lt;br /&gt;
; cap butt|round|extended_butt : Cap&lt;br /&gt;
&lt;br /&gt;
==== frame ====&lt;br /&gt;
&lt;br /&gt;
Define the characteristic of a frame.&lt;br /&gt;
&lt;br /&gt;
; where (dimen.1 dimen.2) : Position of frame.&lt;br /&gt;
&lt;br /&gt;
; offset (number.1 number.2) : Fine x and y adjust of the position of frame.&lt;br /&gt;
&lt;br /&gt;
; ref right|left|center upper|lower|center : Position is relative to the ''ref''.&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border line&lt;br /&gt;
&lt;br /&gt;
; color (color) : Color of the border line.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the frame.&lt;br /&gt;
&lt;br /&gt;
; rotate (dimen) : &amp;lt;u&amp;gt;todo&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== legend ====&lt;br /&gt;
&lt;br /&gt;
; lpos (number): Position in legend&amp;lt;br&amp;gt;Codes: -1, no show in legend; 0 automatic position; &amp;gt; 0 horizontal position.&lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]): Organize legend in ''number.1'' cols with a optional span of ''number.2''&lt;br /&gt;
&lt;br /&gt;
; interline (dimen): Set partial legend interline&lt;br /&gt;
&lt;br /&gt;
== Map paper ==&lt;br /&gt;
&lt;br /&gt;
=== paper ===&lt;br /&gt;
&lt;br /&gt;
Base size of paper. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; paper [B0-6|A0-6|Legal|Ledger|Tabloid|Executive|Folio] : Type of paper (default A4).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; color (color) : Paper color.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Custom size of paper.&lt;br /&gt;
&lt;br /&gt;
; left (dimen), right (dimen), top (dimen), bottom (dimen) : Custom margins (default 0.5&amp;quot; left and right, and 1&amp;quot; top and bottom).&lt;br /&gt;
&lt;br /&gt;
; landscape yes|no : Paper orientation (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''. Set the default font of the map.&lt;br /&gt;
&lt;br /&gt;
; draw : Block ''draw''. Free draw as watermarks before any feature of the map is drawn (see ''draw'').&lt;br /&gt;
&lt;br /&gt;
=== scale ===&lt;br /&gt;
&lt;br /&gt;
Simple command to define the scale of the map (default adjust map to the paper dimensions).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scale 1&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;(number) : Scale of map, if possible.&amp;lt;br&amp;gt;For example, ''scale 1:500000'' to rescale maparea dimensions.&lt;br /&gt;
&lt;br /&gt;
=== maparea ===&lt;br /&gt;
Define specific dimensions of the map (default defined by command ''scale'')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; maparea : Define characteristics of the map area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; border (dimen) : Width of the border map.&amp;lt;br&amp;gt;Usefull with ''in'' and ''out'' formats of the ''grid'' and ''geogrid'', ignored in ''iho'' and ''can'' formats.&lt;br /&gt;
&lt;br /&gt;
; color (color) : Border color-&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor of the map area.&lt;br /&gt;
&lt;br /&gt;
; width (dimen), height (dimen) : Dimensions of the map.&lt;br /&gt;
&lt;br /&gt;
; top (dimen), bottom (dimen) : Position of the top-left corner of the map.&lt;br /&gt;
&lt;br /&gt;
=== palette ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;testing&amp;lt;/U&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; palette&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; wheel (number text) :&lt;br /&gt;
&lt;br /&gt;
; monochrome (color number text) :&lt;br /&gt;
&lt;br /&gt;
; complementary (color number text) :&lt;br /&gt;
&lt;br /&gt;
; analogous (color number text) :&lt;br /&gt;
&lt;br /&gt;
; gradient (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
; diverging (color.1 color.2 number text) :&lt;br /&gt;
&lt;br /&gt;
== Common elements ==&lt;br /&gt;
&lt;br /&gt;
=== grid and geogrid ===&lt;br /&gt;
&lt;br /&gt;
Draw a border around the map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; grid|geogrid :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; format in|out|+out|can|iho : Type of border (see examples).&lt;br /&gt;
&lt;br /&gt;
; major (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; minor (number|angle) : Block ''line''. Usually, ''number'' is merters and ''angle'' only in ''geogrid''.&lt;br /&gt;
&lt;br /&gt;
; subminor (number) : ''number'' of subdivisons of the minor divisions.&lt;br /&gt;
&lt;br /&gt;
; trim (number) : Cut trailing zeros.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Color of the border.&lt;br /&gt;
&lt;br /&gt;
; cross (number) : Replace lines by cross&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_iho.png|format iho&lt;br /&gt;
File:ps_out_can.png|format can&lt;br /&gt;
File:ps_out_in.png |format in&lt;br /&gt;
File:ps_out_out.png|format +out&lt;br /&gt;
File:ps_out_out1.png|typical map border&lt;br /&gt;
File:ps_out_out2.png|typical map border with ''subminor 5'' and ''fcolor blue''&lt;br /&gt;
File:ps_out_out3.png|''cross 500'', ''fcolor indigo'', ''color 200:200:200'' in '''maparea'''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== scalebar ===&lt;br /&gt;
&lt;br /&gt;
Set a scalebar on the map.&amp;lt;br&amp;gt;Maximun 5 scalebars in each map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; scalebar I|s|S|f|F : Define the type of scalebar (I: inner, s/S: simple, f/F: fill).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; length (number) : Length of the scale.&lt;br /&gt;
&lt;br /&gt;
; units meters|m|kilometers|km|feet|ft|miles|mil|nautical_miles|nm ([text]) : Unit of the length and ''text' to label the units.&lt;br /&gt;
&lt;br /&gt;
; major (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; minor (number.1 [number.2]) : Define the ''number.1'' of subdivisions and each ''number.2'' set the labels.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''&lt;br /&gt;
&lt;br /&gt;
; fcolor (color) : Fillcolor.&lt;br /&gt;
&lt;br /&gt;
; height (dimen) : Height of the bar or ticks.&lt;br /&gt;
&lt;br /&gt;
; zero yes|no : Set position relative to zero value of the scalebar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Scalerbar styles&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;50px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_scalebar_s.png|scalebar s&lt;br /&gt;
File:ps_out_scalebar_S.png|scalebar S&lt;br /&gt;
File:ps_out_scalebar_I.png|scalebar I (uppercase i)&lt;br /&gt;
File:ps_out_scalebar_f.png|scalebar f&lt;br /&gt;
File:ps_out_scalebar_F.png|scalebar F&lt;br /&gt;
File:ps_out_scalebar_3.png|Multiple scalebars zero centered with ''zero yes''&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== note ===&lt;br /&gt;
Write special text or free text on any place of the paper with frame (also ''draw'' permit write free-text in paper). &lt;br /&gt;
&lt;br /&gt;
Maximun 20 notes by map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; note &amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;file|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;maplimits|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;dimen|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;scale (text)|(text) : Type of note and text to show.&amp;lt;br&amp;gt;When free text, use '|' to break lines and '.' as first character to center line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font''.&lt;br /&gt;
&lt;br /&gt;
; width (dimen) : Width of note.&lt;br /&gt;
&lt;br /&gt;
; angle (number) : ''number'' of degrees to rotate (do not work fine).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Note keywords and free text&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_note_ml.png  |note :maplimits&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_dimen.png|note :dimen&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scale.png|note :scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_free.png|note free text|in multiple lines&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_freec.png|note .free text|.in multiple [...]&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_note_scaler.png|note :scale scale&amp;lt;br/&amp;gt;&amp;amp;nbsp;frame [...]&amp;lt;br&amp;gt;&amp;amp;nbsp;angle 90&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== draw ===&lt;br /&gt;
&lt;br /&gt;
Draw predefined postscript code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; draw [paper|free] :  ''paper'': run before any map feature is drawn (equivalent to place inside ''paper'' block); and ''free'': run after all map features are drawn then it's draw over map but not clipped.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; --- : &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;100px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_north1.png   |&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;north 700000 4700000&amp;lt;/source&amp;gt;&lt;br /&gt;
File:ps_out_north2.png   |north 5cm 16.5cm -&lt;br /&gt;
File:ps_out_maplimits.png|maplimits&lt;br /&gt;
File:ps_out_compass.png  |compass 700000 4700000 10000 10.2345&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Raster maps ==&lt;br /&gt;
&lt;br /&gt;
=== raster ===&lt;br /&gt;
&lt;br /&gt;
Draw one or two raster maps on the maparea. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; raster (raster|raster.1 raster.2|raster.R raster.G raster.B|&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;group) : The ''raster'' value is the raster mapname, two raster maps ''raster.1'' or color and ''raster.2'' or shade to draw as relief map, three maps ''raster.R'', ''raster.G'' and ''raster.B'' to draw as RGB, or a groupname (leader by ':') with tree RGB maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; grey yes|no : Store and draw the rasters in grey scale (small size of file).&amp;lt;br&amp;gt;The conversion follows the NTSC video standard.&lt;br /&gt;
&lt;br /&gt;
; maskcell (raster.1 [raster.2]) : Set the ''raster.1'' map to use as mask (independent of the mask set in GRASS with [[r.mask]]) and, optionally, the ''raster.2'' map uses as background.&amp;lt;br&amp;gt;The background ''raster.2'' is painted in grey scale (NTSC) and tinted with ''maskcolor''.&lt;br /&gt;
&lt;br /&gt;
; maskcolor (color|none) : Set the ''color'' of the mask area.&amp;lt;br&amp;gt;If a raster map as background is set then it's drawn with a scale white-maskcolor.&lt;br /&gt;
&lt;br /&gt;
; outline : Block ''line''. Outline of categories.&lt;br /&gt;
&lt;br /&gt;
; setcolor null|default|(number) (color) : Replace the color of the cat ''number'' area with a new color.&amp;lt;br&amp;gt;Multiple ''setcolor'' are possibles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following gallery show the output of the commands inside the '''raster''' block (all mapnames are of type ''raster'').&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_raster1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask1.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask2.png|&amp;lt;div&amp;gt;raster elevation elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_mask3.png|&amp;lt;div&amp;gt;raster lsat5.5 lsat5.4 lsat5.3&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell urban_neg elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor indigo&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_outline.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;outline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width .2mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;end&amp;lt;br/&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_setcolor.png|&amp;lt;div&amp;gt;raster basin_50K elevation_shade&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcell basin_50K&amp;lt;br&amp;gt;&amp;amp;nbsp;maskcolor white&amp;lt;br&amp;gt;&amp;amp;nbsp;setcolor 37 magenta&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
File:ps_out_raster_grey.png|&amp;lt;div&amp;gt;raster elevation&amp;lt;br&amp;gt;&amp;amp;nbsp;grey yes&amp;lt;br&amp;gt;end&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Vector maps ==&lt;br /&gt;
&lt;br /&gt;
All vector map accept optionally the following commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; layer (number) : Layer number used with cats/where option.&lt;br /&gt;
&lt;br /&gt;
; cats (n1,n2,...) : List of ''cat''s to show.&lt;br /&gt;
&lt;br /&gt;
; where (text) : Argument of the SQL where clausule to filter the areas to show.&lt;br /&gt;
&lt;br /&gt;
; masked yes|no : Masked or not by raster mask (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; label (text) : For description or title in ''vlegend''.&lt;br /&gt;
&lt;br /&gt;
; legend [(number)]: Position in legend (-1, no legend) or enter in a block ''legend''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== vareas ===&lt;br /&gt;
&lt;br /&gt;
Draw areas on the map.&amp;lt;br&amp;gt;&lt;br /&gt;
The areas always are drawn first, on the bottom of other type of maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vareas (vector) : ''vector'' is a vector of areas, except when ''lwidth'' is different to zero that ''vector'' is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line'' to set the style of the border line of the areas.&lt;br /&gt;
&lt;br /&gt;
; pat (epsfile) : Pattern in a EPS file.&lt;br /&gt;
&lt;br /&gt;
; pscale (number) : Scale of pattern.&lt;br /&gt;
&lt;br /&gt;
; pwidth (dimen) : Width of the lines of pattern.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color.1|column.1|color.2 column.2) : Static fill ''color.1'', dynamic fill color in a ''column.1'' of the database, or default ''color.2'' with color data from ''column.2'' of the database to apply the rules (color in ''setcolor'').&lt;br /&gt;
&lt;br /&gt;
; setcolor (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with label the ''text'' and title the text of the ''label''. Also, the fillcolor of the areas of the map with ''column'' &amp;gt;= n1 and ''column'' &amp;lt; n2  (''column'' from ''fcolor''), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
; setnorule (text) : Text label when default conditions.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; island yes|no : Draw island as normal areas (fill as normal area then hide it).&lt;br /&gt;
&lt;br /&gt;
; lwidth (dimen) : Line map draws as an area with a width = ''lwidth''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vareas: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vareas0.png|&amp;amp;nbsp;vareas geology&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;where GEO_NAME like 'Zb'&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;fcolor indigo&amp;lt;br&amp;gt;&amp;amp;nbsp;end&lt;br /&gt;
File:ps_out_vareas3.png|''with ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;pat ../patterns/diag_up.eps&amp;lt;br&amp;gt;&amp;amp;nbsp;pscale .5&lt;br /&gt;
File:ps_out_vareas1.png|''with ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;fcolor none cat&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 0-500:red A&amp;lt;br/&amp;gt;&amp;amp;nbsp;setrule 500-1000:green B&amp;lt;br/&amp;gt;&amp;amp;nbsp;setrule 1000-5000:blue C&lt;br /&gt;
File:ps_out_vareas2.png|''with ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;island no&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlines ===&lt;br /&gt;
&lt;br /&gt;
Draw lines on the map.&amp;lt;br&amp;gt;The areas always are drawn second, after ''vareas'' and before ''vpoints''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlines (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of lines, except if ''type'' is boundary that ''vector'' is a vector of areas.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;:''&lt;br /&gt;
&lt;br /&gt;
; type boundary|line : Draw boundaries of a vector of areas or lines of a vector of lines (default ''line'').&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Normal line.&lt;br /&gt;
&lt;br /&gt;
; hline : Block ''line''. Highlight line.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Works with ''hline'' to offset from the center of ''line''.&lt;br /&gt;
&lt;br /&gt;
; rgbcol (column.1 [column.2]) : Define the database ''column.1'' to take the lines colors and, optionally, a ''column.2'' of database to apply color from the rules (''setcolor'').&lt;br /&gt;
&lt;br /&gt;
; setcolor (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;color] text) : Make a item of a sublegend with ''text'' as label and title the text of the ''label''. Also, the color of the normal line with column &amp;gt;= n1 and column &amp;lt; n2 (column from rgbcol), is set to ''color''.&lt;br /&gt;
&lt;br /&gt;
; setnodata (text) : Label in legend when default values and ''setcolor'' rules.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlines: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlines0.png|''Effect of the ''hline'' block ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;hline&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;width 1mm&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color red&amp;lt;br&amp;gt;&amp;amp;nbsp;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vpoints ===&lt;br /&gt;
&lt;br /&gt;
Draw points on the map.&amp;lt;br&amp;gt;The points always are drawn last, after ''vareas'' and ''vlines''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vpoints (vector) :&lt;br /&gt;
&lt;br /&gt;
''vector'' is a vector of points, except when '''type''' is ''centroid'' or ''boundary'' that it is a vector of areas, or when '''type''' is ''line'' that it is a vector of lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; type centroid|line|boundary|point : Type of draw (default ''point'').&lt;br /&gt;
&lt;br /&gt;
; symbol (epsfile) : Symbol to use (default: basic/circle).&lt;br /&gt;
&lt;br /&gt;
; line : Block ''line''. Type of line in the symbol.&lt;br /&gt;
&lt;br /&gt;
; fcolor (color): Static fillcolor of the symbol.&lt;br /&gt;
&lt;br /&gt;
; offset (dimen) : Offset of the symbol.&lt;br /&gt;
&lt;br /&gt;
; rotate (number|column) : Angle to rotate the symbol, static ''number'' or dynamic in a ''column'' of the database.&lt;br /&gt;
&lt;br /&gt;
; size (number|column [number]) : Size of the symbol take from ''number'' or from a ''column'' of the database. In the last option, there is a optional ''number'' to define the static size of the symbol in the legend when the size of symbols are dynamic. &lt;br /&gt;
&lt;br /&gt;
; scale (dimen.1 [dimen.2]) : Rescale the size of the symbol by the ''dimen.1'' and, optionally, add a ''dimen.2''. i.e., ''resize = dimen.1 * size + dimen.2''.&lt;br /&gt;
&lt;br /&gt;
; setsize (n1-n2[&amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt;size] text) : Variable size of symbols from data in ''column'' of database set in ''size''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Special commands when type is line&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; dist (dimen) : Define the distance in paper between symbol over the line.&lt;br /&gt;
&lt;br /&gt;
; cline : Block ''line''. Type of line that connect symbols.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vpoints: sample gallery&amp;quot; widths=&amp;quot;150px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vpoints0.png|''Points with same size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size 5&lt;br /&gt;
File:ps_out_vpoints1.png|''Points with dynamic size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT 5&amp;lt;br&amp;gt;&amp;amp;nbsp;scale 0.01 2&lt;br /&gt;
File:ps_out_vpoints2.png|''Points with conditional size ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;size PT&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 200-1000:3 &amp;lt; 1000&amp;lt;br&amp;gt;&amp;amp;nbsp;setrule 1000-2500:9 &amp;gt; 1000&lt;br /&gt;
File:ps_out_vpoints3.png|''Points on line ...''&amp;lt;br&amp;gt;&amp;amp;nbsp;type line&amp;lt;br&amp;gt;&amp;amp;nbsp;dist 1cm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlabels ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;in progress&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlabels none|(vector) :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; font :&lt;br /&gt;
&lt;br /&gt;
; labelcol (column) :&lt;br /&gt;
&lt;br /&gt;
; decimals (number) :&lt;br /&gt;
&lt;br /&gt;
; circled yes|no :&lt;br /&gt;
&lt;br /&gt;
; setrule (n1-n2 text)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;200px&amp;quot; heights=&amp;quot;200px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_vlabels0.png|vpoints firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;[...]&amp;lt;br/n&amp;gt;end&amp;lt;br/&amp;gt;vlabels firestations&amp;lt;br/n&amp;gt;&amp;amp;nbsp;labelcol PUMPERS&amp;lt;br/n&amp;gt;&amp;amp;nbsp;font&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;name Univers-Bold&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;size 10&amp;lt;br/n&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;color yellow&amp;lt;br/n&amp;gt;&amp;amp;nbsp;end&amp;lt;br/n&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Legend of the maps ==&lt;br /&gt;
&lt;br /&gt;
=== rlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the raster map.&amp;lt;br&amp;gt;The units ''meters'' in the gradient legend is set with [[r.support]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; rlegend [text] : Text is the title of the legend. &lt;br /&gt;
&lt;br /&gt;
; raster (raster) : the ''raster'' map to take the data of legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commads are optionals&amp;lt;/U&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; titlefont : Block ''font'' for the legend header.&lt;br /&gt;
&lt;br /&gt;
; font : Block ''font'' for the normal text.&lt;br /&gt;
&lt;br /&gt;
; frame : Block ''frame''.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Width of the symbol area.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For category legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; cols (number) [(number)] : Number of columns with symbols and separation between columns (default ''1'').&lt;br /&gt;
&lt;br /&gt;
; nodata yes|no : Remove category ''no data''.&lt;br /&gt;
&lt;br /&gt;
; order (n1,n2,...) : To reorder items.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;For gradient legends&amp;lt;/u&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
; height (dimen), width (dimen) : Dimension of the frame with the legend.&lt;br /&gt;
&lt;br /&gt;
; vertical yes|no : Orientation of the gradient legend (default ''no'').&lt;br /&gt;
&lt;br /&gt;
; range (n1 n2) : Manual set of the data range for legend.&lt;br /&gt;
&lt;br /&gt;
; gradient yes|no : Forze draw gradient legend with category data.&lt;br /&gt;
&lt;br /&gt;
; tick (dimen) : Length of the ticks.&lt;br /&gt;
&lt;br /&gt;
; whiteframe (dimen) : Width of the white frame around the bar color.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;250px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_out_rlegend.png|rlegend Zip Codes (wake)&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster zipcodes_wake&amp;lt;br/&amp;gt;&amp;amp;nbsp;cols 2 0&amp;lt;br/&amp;gt;&amp;amp;nbsp;swidth 8mm&amp;lt;br/&amp;gt;&amp;amp;nbsp;order 20,10,30,22,34&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend1.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;height 8cm&amp;lt;br/&amp;gt;end&lt;br /&gt;
File:ps_out_rlegend2.png|rlegend&amp;lt;br/&amp;gt;&amp;amp;nbsp;raster elevation&amp;lt;br/&amp;gt;&amp;amp;nbsp;width 8cm&amp;lt;br/&amp;gt;&amp;amp;nbsp;vertical no&amp;lt;br/&amp;gt;end&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlegend ===&lt;br /&gt;
&lt;br /&gt;
Legend of the vector maps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; vlegend [text] : Optional the title or head of the legend.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;The next commands are optionals&amp;lt;/u&amp;gt;'':&lt;br /&gt;
&lt;br /&gt;
; title : Block ''font'' for title of legend.&lt;br /&gt;
&lt;br /&gt;
; font : Block font for normal text of legend.&lt;br /&gt;
&lt;br /&gt;
; frame : &lt;br /&gt;
&lt;br /&gt;
; cols (number.1 [number.2]) : Distribution of the items in ''number.1'' cols. Optionaly, ''number.2'' of span between columns.&lt;br /&gt;
&lt;br /&gt;
; swidth (dimen) : Symbol width.&lt;br /&gt;
&lt;br /&gt;
; interline (dimen) : Space between lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;vlegend: sample gallery&amp;quot; widths=&amp;quot;250px&amp;quot; heights=&amp;quot;150px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:ps_output_vlegend0.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: ps.map]]&lt;/div&gt;</summary>
		<author><name>⚠️Ejtizado</name></author>
	</entry>
</feed>