1PLBOX(3plplot) PLplot API PLBOX(3plplot)
2
3
4
6 plbox - Draw a box with axes, etc
7
9 plbox(xopt, xtick, nxsub, yopt, ytick, nysub)
10
12 Draws a box around the currently defined viewport, and labels it with
13 world coordinate values appropriate to the window. Thus plbox(3plplot)
14 should only be called after defining both viewport and window. The
15 ascii character strings xopt and yopt specify how the box should be
16 drawn as described below. If ticks and/or subticks are to be drawn for
17 a particular axis, the tick intervals and number of subintervals may be
18 specified explicitly, or they may be defaulted by setting the appropri‐
19 ate arguments to zero.
20
21 Redacted form: General: plbox(xopt, xtick, nxsub, yopt, ytick, nysub)
22
23
24 This function is used in examples 1, 2, 4, 6, 6-12, 14-18, 21, 23-26,
25 and 29.
26
28 xopt (PLCHAR_VECTOR(3plplot), input)
29 An ascii character string specifying options for the x axis.
30 The string can include any combination of the following letters
31 (upper or lower case) in any order: a: Draws axis, X-axis is
32 horizontal line (y=0), and Y-axis is vertical line (x=0). b:
33 Draws bottom (X) or left (Y) edge of frame. c: Draws top (X) or
34 right (Y) edge of frame. d: Plot labels as date / time. Values
35 are assumed to be seconds since the epoch (as used by gmtime).
36 f: Always use fixed point numeric labels. g: Draws a grid at
37 the major tick interval. h: Draws a grid at the minor tick
38 interval. i: Inverts tick marks, so they are drawn outwards,
39 rather than inwards. l: Labels axis logarithmically. This only
40 affects the labels, not the data, and so it is necessary to com‐
41 pute the logarithms of data points before passing them to any of
42 the drawing routines. m: Writes numeric labels at major tick
43 intervals in the unconventional location (above box for X, right
44 of box for Y). n: Writes numeric labels at major tick intervals
45 in the conventional location (below box for X, left of box for
46 Y). o: Use custom labelling function to generate axis label
47 text. The custom labelling function can be defined with the
48 plslabelfunc(3plplot) command. s: Enables subticks between
49 major ticks, only valid if t is also specified. t: Draws major
50 ticks. u: Exactly like "b" except don't draw edge line. w:
51 Exactly like "c" except don't draw edge line. x: Exactly like
52 "t" (including the side effect of the numerical labels for the
53 major ticks) except exclude drawing the major and minor tick
54 marks.
55
56
57 xtick (PLFLT(3plplot), input)
58 World coordinate interval between major ticks on the x axis. If
59 it is set to zero, PLplot automatically generates a suitable
60 tick interval.
61
62 nxsub (PLINT(3plplot), input)
63 Number of subintervals between major x axis ticks for minor
64 ticks. If it is set to zero, PLplot automatically generates a
65 suitable minor tick interval.
66
67 yopt (PLCHAR_VECTOR(3plplot), input)
68 An ascii character string specifying options for the y axis.
69 The string can include any combination of the letters defined
70 above for xopt, and in addition may contain: v: Write numeric
71 labels for the y axis parallel to the base of the graph, rather
72 than parallel to the axis.
73
74
75 ytick (PLFLT(3plplot), input)
76 World coordinate interval between major ticks on the y axis. If
77 it is set to zero, PLplot automatically generates a suitable
78 tick interval.
79
80 nysub (PLINT(3plplot), input)
81 Number of subintervals between major y axis ticks for minor
82 ticks. If it is set to zero, PLplot automatically generates a
83 suitable minor tick interval.
84
85
87 Many developers (who are credited at http://plplot.org/credits.php)
88 have contributed to PLplot over its long history.
89
91 PLplot documentation at http://plplot.org/documentation.php.
92
93
94
95 August, 2019 PLBOX(3plplot)