Rongo Command Reference¶ ↑
Jun Makino 2004/01/05
Alphabetical list of all implemented commands¶ ↑
-
angle d - sets angle of text or points to d degrees
-
box (xopt yopt) - makes a box labelled according to arguments
Box behaves quite differently than in original mongo.
Options (for parameters XOPT and YOPT): A : draw Axis (X axis is horizontal line Y=0, Y axis is vertical line X=0). B : draw bottom (X) or left (Y) edge of frame. C : draw top (X) or right (Y) edge of frame. G : draw Grid of vertical (X) or horizontal (Y) lines. I : Invert the tick marks; ie draw them outside the viewport instead of inside. L : label axis Logarithmically (see below). N : write Numeric labels in the conventional location below the viewport (X) or to the left of the viewport (Y). P : extend ("Project") major tick marks outside the box (ignored if option I is specified). M : write numeric labels in the unconventional location above the viewport (X) or to the right of the viewport (Y). T : draw major Tick marks at the major coordinate interval. S : draw minor tick marks (Subticks). V : orient numeric labels Vertically. This is only applicable to Y. The default is to write Y-labels parallel to the axis. 1 : force decimal labelling, instead of automatic choice (see PGNUMB). 2 : force exponential labelling, instead of automatic.
Some example of reasonable arguments are:
BCNTSV BCNTSV (this is default) This creates a box with ticks in all sides, and numeric labels at left and bottom BCNTSVL BCNTSVL This creaets logarithmic ticks (and labels) for both horizontal and vertical axes.
-
connect - connects (x,y) pairs read by x and ycolumn with line segments
-
data fspec - opens the file “fspec” for reading data
-
dot - makes a point of the current style at the current location
-
draw x y - draws a line to (x,y) from the last coordinate
-
erase - erases the graphics screen or initializes a printer plot
-
expand e - expands all characters or points by a factor e
-
fcolumn [x/y] expression - reads x or y data from current data file.
This is an extension of the standard xcolumn or ycolumn command. Instead of reading from a fixed column, this command reads the entire line and evaluate the expression specified in the second argument. The data in columns are specified as “cx”, where x is a number. For example,
fcolumn x c1*c1
sets the square of the first column to x data. Any valid expression of Ruby can be used here. This command tries to convert all columns to numbers, unless there is a column starting with “#”. All data after “#” will be ignored.
-
justification
used as replacement for “putlabel x”. You can say
justfication center justfication left justfication right
which will affect the justification of the subsequent texts printed by label command.
-
limits (x1 x2 y1 y2) - sets the limits of the plot (no args for auto)
-
ltype n - sets the line type to n
-
lweight n - sets the line weight to n
-
points - draws points of the current style at the (x,y) of x and ycolumn
-
psfix (filename) - add the correct boundingbox at the beginning of the file, instead of the end.
-
printer devicename - directs output to a hardcopy printer.
If no argument is given, “pgplot.ps/vcps” is assumed
-
ptype n s - sets the point type to an n-gon of style s
PTYPE n s causes points to be drawn as n sided polygons of a style s, where s refers to: 0 = open 1 = skeletal (center connected to vertices) 2 = starred 3 = solid PTYPE will also accept one argument which is a composite = 10*n + s.
-
quit
In mongo, you can use “end”, but since “end” is a reserved word in Ruby we need to use something else.
-
relocate x y - sets the current coordinates to (x,y)
-
squareview - force a squre viewport
This command is useful to make a square plot (which I like)
-
terminal devicename - directs output to a graphics terminal
The argument is the same as that for PGOPEN. If no argument is given, “/xserve” is assumed
-
viewport x0 x1 y0 y1
change viewport, relative to the current viewport
-
writeb filename
write the command history to file filename (works only in the interactive mode)
-
xcolumn n - reads x data from column n of the current file
-
ycolumn n - reads y data from column n of the current file
-
xdata array - set xdata from Ruby array array
-
ydata array - set ydata from Ruby array array
-
xlabel … - writes the label … centered under the x axis
-
xlogarithm - takes the logarithm of x values from XCOLUMN
-
ylabel … - writes the label … centered left of the y axis
-
ylogarithm - takes the logarithm of y values from YCOLUMN