Google
 

Trailing-Edge - PDP-10 Archives - BB-AI48A-BM - datatrieve/vt125/x_freq.cdd-plot
There are 4 other files named x_freq.cdd-plot in the archive. Click here to see a list.
hFXF{H;IOFfF\F]XSPFAFkFlYSPFGFFXPOSFLFKYPOSFRFQICOUNTF;FWINDEX0FGG	GG'G5GDH'F9GHOUSEKEEPF;G 0GNUMBERF
H5FXFRI)ICFfFRI9IGFfFR 0KBISIeIxJJ;JZJnJsK>F+I\FXF%IoFXF6I|FfF0JJF+F%FX9JLABELJAF0F69JCLABELJ`Ff9JbLABELFLK6FXKKK)K0K3FXFLKK-FfFL! 0K2+!K:9K<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