cmds.bgo - short list of Bongo Commands    


NOTE: in cmds.bgo commands among columns: 1-15; # of params: 16-17; Comment (dummy): 18-80 (see botton)

Command # Pars. Description [# Pars.=9 means "string"]
BANDX 2 vertical rectangle from (p1,y1) to (p2,y2)
BANDY 2 horizontal rectangle from (x1,p1) to (x2,p2)
BBB 0 display the 1.st 20 columns of BBB(7000,50). Used only for debugging Bongo.
BIN 3 bin data vector. Needs nbin, bin width, flag
BOX 2 draw box. If p1 or p2=0 no values
CIRCLE 3 draw e circle:radius p1;s-angle p2; e-angle p3 40
CLABEL 9 write a comment, 40 chars max, at top left.if "?" read comment from keyboard
COLOR 1 set drawing color to 'col'
COLUMNS 2 first and last column in the data file
CONNECT 0 connect data points by line LTYPE
CONTINUE 0 continue to process the Bongo command file
CONTOUR 0 draws iso-curves, after levels.dat
CONVERT 3 convert bongo.ps to pdf,png,jpg,gif. p1=ext;p2=alpha;p3=dpi. Def. values= 0.
CORR 2 auto/cross-correlation function of YV and EYV (p=2) or corr. coeff. of YV and EYV (p1=1). def p1=2. p2=maxlag.
COS 3 cosine function, given p1=amplitude; p2=period; p3= x-zero-point
DATA 9 open and read data_file as 80 chars strings
DELETE 2 delete lines n1 to n2. Re-arrange the list.
DELTA 2 % axis length of first x,y ticks .
DERIV 0 numerical derivatives of YV from diff(YV)/diff(XV)
DIGITS 2 define the number of decimal digits for x and y axes
DOS 9 run an Operating System command
DOT 0 draw at current point a symbol defined by ptyper
DRAW 2 draw from current point to X,Y
DUMMY 0 '%' and blaks are translated into this command
EBAR 1 draws error bars: p1=0 (def) no output file; else output file ebar.out
EDIT 1 edits the command line # n ->, space ,RE
ELLIPSE 5 draws an ellipse:p1 s-major;p2 b/a;p3 rot;p4 s-angle;p5 e-angle
END 0 exit (from Ins or from Bongo) to DOS
ERASE 0 clear postscript page
EXCOL 2 assign to EXV column # n of data file. Drawing flagged
EXDIFF 1 Forward or Backward differences o EXV vector, P1 flag =1 forward; =-1 (default) backward.
EXOPER 2 apply opcode and constant to EXV
EXP 3 compute y(i)=p1*exp(x(i)*p2); p3= kmax
EXSAVE 0 save on disk the last EXV vector
EYCOL 2 assign to EYV column # n of data file. Drawing flagged
EYDIFF 1 Forward or Backward differences of EYV vector, P1 flag =1 forward; =-1 (default) backward.
EYOPER 2 apply opcode and constant to EYV
EYSAVE 0 save on disk the last EYV vector
FILL 0 set filling ability ON
FIT 2 polynomial fit (max degree = 6). Weights (1) or not (0)
FONT 9 loads new font file
GAUSS 2 compute standard normal distro
GRID 3 draw grid: pattern, color, flag (=1 small ticks)
HELP 9 display help of a command (name); list commands (none)
HISTO 3 draw histogram with bin width, color, flag
IDENT 9 write date, time, 2 chars user-id on top right.
INFO 0 information about Bongo, References, Author's address.
INPUT 9 data input from keyboard. Write a disk file
INSERT 1 insert command AFTER line #n of command buffer
JUMP 0 jump to the first occurrence of the command CONTINUE
KS 0 compute K-S non parametric test
LABEL 9 write text at last cursor position. if "?" read comment from keyboard
LAST 1 define the last n data to be plotted (def=300)
LIMITS 4 limits of the plot in user coordinates
LINES 3 first, last line and step of data vector
LIST 0 list the command buffer
LOMB 2 compute the LOMB spectrum
LTICKS 2 number of main (large) ticks on x, y axis
LTYPE 2 set line shape and color
MACRO 9 load and execute the macro routine name.bmr
MASK 2 mask data or line: 1 mask value; 2 xcol 0; 3 mask line
MEM 2 compute MEM power spectrum; #nodes; step (def: ndati/2;2)
MEMO 1 range for moving average
MODE 1 sets graphic mode to n
NOFILL 0 set filling OFF
NOISE 1 compute noise (1=uniform; 2=default)=gaussian; 3= exponential) and write EYV vector
OFF 0 close bongo.ps but not Bongo. Like END
PAUSE 0 stop execution of command buffer. Hit a key to restart
PBOX 2 define origin of BOX in screen coordinates
PCOM 0 display data of Plotpe and Bongo common blocks
PHYSICAL 4 define screen coords of box XS, XE, YS, YE
PLAYBACK 0 execute actual command buffer
POINTS 0 draw points at current point and change it
POW 3 compute y(i)=p1*x(i)**p2; p3= kmax
PTYPE 3 define symbol: shape, dimension, color
QUIT 0 like END, does not write the logo
READ 9 read file with command list
RECT 4 draw a (filled) rectangle in user coordinates
RELOCATE 2 set current point to x, y (user coords.)
RESET 0 sets parameters to original values as in bconfig.plt
RGB 1 1/0=color/black&white drawing
RIMA 9 read matrix from file-name
SAVE 1 save on disk-file savenn.sav all available save.nn files
SCALOG 2 define log scales in x,y or both axes
SGF 2 Savitzky-Golay smoothing. p1 window size; p2 polynomial order (2,4)
SIN 4 sine function, given p1=amplitude; p2=period; p3=x-zero-point, p4=xmax; p4=0 -->p4=kmax
SLIN 4 compute a line after p1,p2 of y=p1+p2*x and p3,p4 limits of the abscissa
SMOOTH 1 smooth YV vector with window=step. FFT Low-pass filter
SORT 0 sort XV, rearrange YV
STAIRS 2 draw stair-like histogram. Color, flag
STICKS 2 set small ticks number for X and Y axis
TEXT 3 set text dimension, color, angle or default values
TTEXT 9 sets text to alpha (A) or graphic (G) mode
VERSION 1 output actual Bongo version number
VWRITE 2 display on screen of the last XV,YV,EXV,EYV from p1 to p2
WCOMM 2 define 1st-last lines of a comment
WLINE 1 define the drawing line width (real numbers) ONLY PS
WRIMA 0 write matrix on screen
WRITE 9 write command buffer on disk - file
XAXIS 1 length of x-axis (pixels)
XCOLUMN 1 assign column #n to internal vector XV
XDIFF 1 Forward or Backward differences of XV vector, P1 flag =1 forward; =-1 (default) backward.
XGRID 3 draw X-axis (vertical) grid
XLABEL 9 define x-axis label. if "?" read comment from keyboard
XOPER 2 apply operation #m, with constant c, to xcol
XROW 1 assign row #n to internal vector XV
XSAVE 0 save on disk the last XV vector
XSORT 0 sort XV and rearrange YV
XSTAT 0 save on disk n,mean,std.dev.,var,3.rd & 4.th moment of XV
XYSTAT 0 save on disk n,mean,std.dev.,var,3.rd & 4.th moment of XV
XZERO 1 draw a line at X=value from YMIN to YMAX
YAXIS 1 length of y-axis in pixels
YCOLUMN 1 assign column #n to internal vector YV
YDIFF 1 Forward or Backward differences of YV vector, P1 flag =1 forward; =-1 (default) backward.
YGRID 3 draw Y-axis (orizontal) grid
YLABEL 9 define and write y-axis label. if "?" read comment from keyboard
YOPER 2 apply operation #m, with constant c, to ycol
YROW 1 assign row #n to internal vector YV
YSAVE 0 save on disk-file the last YV vector
YSORT 0 sort YV and rearrange XV
YSTAT 0 save on disk n,mean,std.dev.,var,3.rd & 4.th moment of YV
YZERO 1 draw a line at Y=value from XMIN to XMAX
SCIRC 1 screen coordinates. Draw circle of radius ir at current point
SMOVE 2 screen coordinates. Define current point in pixel. The same as SRELOCATE
SRECT 2 screen coordinates. Draw rectangle left bottom at current point right top ix,iy
SRELOCATE 2 screen coordinates. Define current point in pixel.


NOTE: due to some unknown cause, the file cmds.bgo I'd copied to my Windows version of Bongo had # Pars. in column 14 (instead of 16-17) and I spent 10 days to understand why Bongo appeared like that (Linux version, i.e. the same fortran code, worked fine):
c:\bongo> bongo
>re istat.bon
>pl
>end
>^C (forced exit)

i.e. no command appeared have been executed, and the prompt continuosly shown. So, if you have a similar behaviour - without compilation errors - please control that the columns in cmds.bgo are correctly disposed

Last Updated: