Google
 

Trailing-Edge - PDP-10 Archives - BB-AI48A-BM - datatrieve/pc350/x_freq.cdd-plot
There are 4 other files named x_freq.cdd-plot in the archive. Click here to see a list.
{\Xie\{^;\O\f\\\]XSP\A\k\lYSP\G\FXPOS\L\KYPOS\R\QICOUNT\;\WINDEX0\]]	]]']5]D^'\9]HOUSEKEEP\;] 0]NUMBER\
^5\X\R_)_C\f\R_9_G\f\R 0aB_S_e_x``;`Z`n`sa>\+_\\X\%_o\X\6_|\f\0``\+\%\X9`LABEL`A\0\69`CLABEL``\f9`bLABEL\La6\Xaaa)a0a3\X\Laa-\f\L! 0a2+!a:9a<HOUSEKEEP
DEFINE PLOT X_FREQ
$DECLARE X_AXIS, Y_AXIS, X_LENGTH, Y_LENGTH, X_MAX, X_MIN, Y_MIN, Y_MAX

DECLARE STRING Y_LABEL
DECLARE X_POS, Y_POS, ICOUNT, INDEX
DECLARE VECTOR XS, YS
ENTRY 0 (X_LABEL : STRING)
    BEGIN
		PLOT HOUSEKEEP 0

	Y_LABEL = "NUMBER"
	X_AXIS = 100
	Y_AXIS = 360
	X_LENGTH = 600
	Y_LENGTH = 350
#	PLOT LABEL 0 (X_AXIS, Y_AXIS, X_LENGTH, Y_LENGTH, X_LABEL, Y_LABEL)
    END

ENTRY 1 (X : REAL)
	BEGIN

	INDEX = SEARCH (X, XS)
	IF INDEX EQ 0
	    BEGIN

		INDEX = SIZE (YS) + 1
			XS (INDEX) = X
	    END
	YS (INDEX) = YS (INDEX) + 1
    END
! Print scatter plot
ENTRY 2
    BEGIN
		X_MIN = MIN (XS)
		X_MAX = MAX (XS)
		Y_MAX = MAX (YS)
	Y_MIN = 0
	PLOT LABEL 2 (X_MIN, X_MAX, XS)
	PLOT LABEL 3 (Y_MIN, Y_MAX)

	PLOT LABEL 8 (YS)
	INCR ICOUNT OVER XS
	    PRINT CENTER (XS(ICOUNT), YS(ICOUNT)-9, "+", 9)
		PLOT HOUSEKEEP 2
    END
END_PLOT