PSXYZ
Section: Misc. Reference Manual Pages (l)
Updated: DATE
Index
Return to Main Contents
#ifdef SI
#define UNIT cm
#define PARAMS 0.075/0.3/0.25
#define LEN_1 1.25
#define LEN_2 5
#define OPT_1 -Jx1.25 -Jz0.125 -So1.25
#else
#define UNIT inch
#define PARAMS 0.03/0.12/0.1
#define LEN_1 0.5
#define LEN_2 2
#define OPT_1 -Jx0.5 -Jz0.05 -So0.5
#endif
NAME
psxyz - Plot lines, polygons, and symbols in 3-D
SYNOPSIS
psxyz files -Jparameters -Rwest/east/south/north/zmin/zmax[r]
[ -Btickinfo ] [ -Ccptfile ] [ -Eazimuth/elevation ] [ -Fred/green/blue ]
[ -Gfill ] [ -H ] [ -K ] [ -L ] [ -M[flag] ]
[ -N ] [ -O ] [ -P ] [ -Ssymbol/size ] [ -U[/dx/dy/][label] ]
[ -V ] [ -Wpen ]
[ -Xx-shift ] [ -Yy-shift ] [ -Zzlevel ] [ -: ] [ -ccopies ]
DESCRIPTION
psxyz reads (x,y,z) triplets from files [or standard input] and
generates PostScript code that will plot lines, polygons, or symbols at those locations in 3-D.
If a symbol is selected and no symbol size given, then psxyz will interpret the fourth column of the
input data as symbol size in UNIT. Multiple segment files may be plotted using the -M option.
If no symbols are selected, a line will be drawn. To draw closed polygons, use -L. Select a shade with -G. If -G is set, -L
will control whether the polygon outline is drawn or not. If a symbol is selected, -G and
-L determines the fill color and outline/no outline, respectively.
The PostScript code is written to standard output.
- files
-
List one or more file-names. If no files are given, psxyz will read standard input.
#include "explain_-j.txt"
#include "explain_-Jz.txt"
#include "explain_-R.txt"
OPTIONS
No space between the option flag and the associated arguments.
#include "explain_-b.txt"
- -C
-
Give a color palette file and let symbol color be determined by the t-value in
the fourth column. Must be used with -S. If used, then additional
fields are shifted over by one column (optional size would be in 5th rather than
4th field, etc.).
- -E
-
Sets the viewpoint's azimuth and elevation [180/90].
- -F
-
Sets the color used for Frame and annotation. [Default is 0/0/0 (black)]
- -G
-
Fill color. Set the shade (0-255) or color (r/g/b) [Default is no fill].
#include "explain_-H.txt"
#include "explain_-K.txt"
- -L
-
If a symbol is selected, -L will draw the symbol outline using current pen (see -W). If no symbols are selected, -L will connect the endpoints of the line-sement(s) and draw polygons.
- -M
-
Multiple segment file. Segments are separated by a record whose first character is flag.
[Default is '>'].
- -N
-
Do NOT skip symbols that fall outside map border [Default plots points inside border only].
#include "explain_-O.txt"
#include "explain_-P.txt"
- -S
-
Plot symbols. size is symbol size in UNIT. Choose between:
- -Sb
-
(b)ar extending from base to y. size is bar width. By default,
base = 0. Append bbase to change this value.
- -Sc
-
(c)ircle. size is diameter of circle.
- -Sd
-
(d)iamond. size is side of diamond.
- -So
-
c(o)lumn (3-D) extending from base to z. size sets base width (Use xsize/ysize if not the same). By default,
base = 0. Append bbase to change this value.
- -Sp
-
(p)oint. No size needs to be specified.
- -Ss
-
(s)quare. Give side in UNIT.
- -St
-
(t)riangle. Give side in UNIT.
- -Su
-
c(u)be (3-D). size sets length of all sides in UNIT.
- -Sv
-
(v)ector. Direction and length (in UNIT) must be found in columns 4 and 5.
size means arrowwidth/headlength/headwidth in (UNIT) [[Default is PARAMS UNIT].
By default arrow attributes remains invariant to the length
of the arrow. To have the size of the vector scale down with decreasing size,
append nnorm, where vectors shorter than norm will have their
attributes scaled by length/norm.
- -SV
-
Same as -Sv, except azimuth should be given instead of direction. The azimuth will
be mapped into an angle based on the chosen map projection (-Sv leaves the directions
unchanged.)
- -Sx
-
(x)cross. Give length in UNIT.
#include "explain_-U.txt"
#include "explain_-V.txt"
- -W
-
Set pen attributes. [Defaults: width = 1, color = 0/0/0, texture = solid]
#include "explain_-XY.txt"
- -Z
-
For 3-D projections: Sets the z-level of the basemap [0].
#include "explain_-t.txt"
#include "explain_-c.txt"
EXAMPLES
To plot blue columns (width = LEN_1 UNIT) at the positions listed in the file heights.xyz on a
3-D projection of the space (0-10), (0-10), (0-100), with tickmarks every 2, 2, and 10,
viewing it from the southeast at 30 degree elevation, try:
psxyz heights.xyz -R0/10/0/10/0/100 OPT_1
-G0/0/255 -B2:XLABEL:/2:YLABEL:/10:ZLABEL::."3-D PLOT":15 -E135/30 -Uc
-L -P > heights.ps
BUGS
No hidden line removal is employed for polygons and lines. Symbols, however, are first sorted
according to their distance from the viewpoint so that nearby symbols will overprint more distant
ones should they project to the same x,y position.
Header must be plotted separately using pstext.
SEE ALSO
gmt, psbasemap, psxy
#include "refs.i"
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- OPTIONS
-
- EXAMPLES
-
- BUGS
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 07:11:53 GMT, January 07, 2025