h_axis(P(a,b), P(c,d), n);
Draws an axis between and
with
evenly-spaced
tick marks appropriate for a horizontal axis. If the bounding box
has integer sides, then the command
h_axis(P(x_min, 0), P(x_max, 0), x_size);
draws a horizontal axis the width of the figure with tick marks spaced one Cartesian unit apart.
v_axis(P(a,b), P(c,d), n);
Same, but with tick marks appropriate for a vertical axis.
grid(P(a,b), P(c,d), n1, n2);
Draws an n1 by n2 grid in the coordinate rectangle with
opposite vertices and
.
polar_grid(r, n1, n2);
Draws a polar grid of radius r with n1 rings and n2 sectors.
spot(P(a,b)); dot(P(a,b)); ddot(P(a,b));
circ(P(a,b)); ring(P(a,b), r);
spot, dot, and ddot are black; circ is white
filled, cannot be colored, and masks what is underneath. A
ring has diameter r true pt, can be colored, and is
transparent. circ is useful for denoting the end of an open
interval. ePiX also provides a marker function, whose
syntax is marker(P(a,b), <MARKER TYPE>);
These marker types are also available when plotting data from a file, see dataplot below. Markers of type SPOT, DOT, and DDOT cannot be colored; this is a LATEX issue.
arrow(P(a,b), P(c,d)); dart(P(a,b), P(c,d));
Draws an arrow from to
whose head is 3 true pt
wide and 8.25 true pt long. If the true distance from
to
is less than 8.25 pt, only the arrowhead is drawn, with its
base at
. A dart is similar, but the head has half the
linear dimensions. Dart and arrow dimensions are
#define
d
in globals.h, and may only be changed at compile time.
h_axis_labels(P(a,b), P(c,d), n, P(u,v));
v_axis_labels(P(a,b), P(c,d), n, P(u,v));
h_axis_masklabels(P(a,b), P(c,d), n, P(u,v));
v_axis_masklabels(P(a,b), P(c,d), n, P(u,v));
h_axis_labels
puts evenly-spaced labels on the
segment joining
and
. (Usually
, but this is
not necessary.) The ``mask'' version draws an opaque white
rectangle under the label text, and requires the strcol
or color package. The labels are automatically generated
to match their horizontal location. The pair
P(u,v)
gives
the offset in true pt. For example,
h_axis_labels(P(x_min,0), P(x_max,0), 8, P(-4,-12));
divides the axis into 8 subintervals, generates labels
accordingly, and places them in Cartesian coordinates, but shifted
left by 4 pt and down by 12 pt. The ``v'' versions are analogous,
but for a vertical axis.
label(P(a,b), P(u,v), "<text string>");
masklabel(P(a,b), P(u,v), "<text string>");
Prints <text string>
with reference point at the Cartesian
point , offset in true points by
. The ``mask''
version puts an opaque white rectangle under the label text, and
requires the pstcol or color package. To get
a
\
in output, there must be a \\
in the string. For
example, the call
label(P(4,2), P(0,0), "$\\sigma=\\phi(\\tau)$");
prints the line
\put(360,180){$\sigma=\phi(\tau)$}
in the output file. (The put location depends on user-supplied dimensions.)