Google
 

Trailing-Edge - PDP-10 Archives - BB-AI48A-BM - datatrieve/pc350/multi_shade.cdd-plot
There are 3 other files named multi_shade.cdd-plot in the archive. Click here to see a list.
{]&ie]znoJ0]:]+0],LLABEL 0]N]? 0]@XALABELP ]] ]YMXP \i] ]COLORP \o\nCNT \u\sJTEMP \^\yK \c\bKOUNT \M\hOFFSET \S\QBARWIDTH \X\WBARX \*\]BARY \0\/YREF \6\4YLENGTH \;\:YMIN \A\@YMAX \G\EYSCALE \\KYLABEL \\XREF \\XLENGTH \\XMIN \$\#XMAX \)XSCALEmf]b]h]n]t 0]&]f0XLABEL 0]b]l0LABEL1 0]h]r0LABEL2 0]n]x0LABEL3
^^^^&^1^;^?^U^k/H^^tl9^HOUSEKEEP^0^ 0
^$L"X"FFFFFFFFFFFFFFFF^, 0
^.L"Y"FFFFFFFFFFFFFFFF^6 0
^9L"Z"FFFFFFFFFFFFFFFF^I^P]N^M00^SX^^f]^c00^u]h]&^y0]NV X 0\Zho]l X Xl]t]&l X\l
!y\*l%"6@\l3"R`\0lB"5plF0\\*\\0]b\G9lHLABEL

\im1]&m5mP\^m\^mc 0oDmtmynn 0]&mx0X mtm~Y1 mynY2 nn
Y3nn5nZn~o#nmt]:n)nn-]:0n?my\znMnDnQ\z0ndn\znrnhnv\z0on\zoo
\Mp Pp(\i\*\M\u]:9pX_LABEL\6pi\z\;p|	\zq\6\;9qLABEL	q$\z9q&LABELq8 0q:@:A\oqK\^we 0r
rsXttvCvIqSqWqgqkr 0qVT(A0)W(I0Sq`\*qd 0 0qj)P	qtq{\qx
 0\*r 0 0rV\is(]:r#rJr{s$\cr@r9\or2r=\ir6 0 X\Sr`rYrj\r]
 0\Mrt\irx 0\Xs
\z\cs	\S\Xs-s1sAsU 0s0T(A1)W(Ss:\*s> 0sJ]N\o 0sW)s^sasusxt 0s`W(Isj]\o 0sw)P	tt\s|
 0\*t 0 0tV\iv]:t0tXuu1u5\ctNtG\ot@tK\itD 0 X\Stntgtx\tk
 0\Mu\iu 0\Xu\z\cu"	\S\Xu:u^uCuS]	\i\z\cuguw]	\i\z\cu|v
vv#v@ 0u~W(S0Iv]\o 0v")P	v,v9\v0
 0\*v= 0 0vBV\iw_]:vZww2w[\cvxvq\ovjvu\ivn 0 X\Swww"\w
 0\Mw+\iw/ 0\XwB\z\cwL	\S\Xwl 0wnT(A0)@;@AwtH\\*\\0\M]	]N]]&9wvLEGEND
xj9xlHOUSEKEEP
DEFINE PLOT MULTI_SHADE
DECLARE X_REF, X_LENGTH, X_MIN, X_MAX, X_SCALE
DECLARE Y_REF, Y_LENGTH, Y_MIN, Y_MAX, Y_SCALE, Y_LABEL
DECLARE BAR_WIDTH, BAR_X, BAR_Y
DECLARE KOUNT, OFFSET

DECLARE CNT, J_TEMP, K
DECLARE VECTOR Y_VALUE, Y_MX, COLOR
DECLARE STRING VECTOR L_LABEL, X_LABEL, HATCH
ENTRY 0 (X_LABEL : STRING,
         LABEL_1 : STRING,
         LABEL_2 : STRING,
         LABEL_3 : STRING)
BEGIN
    PLOT HOUSEKEEP 0
    PRINT "S(M 1(AH150L50S100)2(AH150L45S66)3(AH170L75S66))"
	    PRINT "L(A1)"
    PRINT "L""X""FFFFFFFFFFFFFFFF"
    PRINT "L""Y""FFFFFFFFFFFFFFFF"
    PRINT "L""Z""FFFFFFFFFFFFFFFF"
    HATCH(1) = "X"   COLOR(1) = 1   L_LABEL(1) = LABEL_1
    HATCH(2) = "Y"   COLOR(2) = 2   L_LABEL(2) = LABEL_2
    HATCH(3) = "Z"   COLOR(3) = 3   L_LABEL(3) = LABEL_3
"    X_REF = 100    Y_REF = 360    X_LENGTH = 600    Y_LENGTH = 350
!    PLOT LABEL 0 (X_REF,Y_REF,X_LENGTH,Y_LENGTH,X_LABEL,Y_LABEL)
LLABEL
        IF LENGTH(L_LABEL(CNT)) NE 0 THEN
            KOUNT = KOUNT + 1
END
ENTRY 1 (X : STRING, Y1 : REAL ,
	Y2 : REAL ,
	Y3 : REAL )
BEGIN
    X_LABEL(SIZE(X_LABEL) + 1) = X
    Y_VALUE(SIZE(Y_VALUE) + 1) = Y1
    Y_VALUE(SIZE(Y_VALUE) + 1) = Y2
    Y_VALUE(SIZE(Y_VALUE) + 1) = Y3
    Y_MX(SIZE(Y_MX) + 1) = 5000
END
ENTRY 2
BEGIN
    BAR_WIDTH =         (X_LENGTH - 2) / (SIZE(X_LABEL) - 1)
    CNT = X_REF - BAR_WIDTH / 2
    PLOT X_LABEL 0 (CNT, Y_REF, BAR_WIDTH, K, X_LABEL)
VALUE)
VALUE)
    PLOT LABEL 3 (Y_MIN,Y_MAX)
    PLOT LABEL 8 (Y_VALUE)
    PRINT "@:A"
    INCR J_TEMP FROM 1 TO KOUNT
    BEGIN
(        PRINT "T(A0)W(I0S", LY(Y_REF - 1), ")P", LXY(X_REF + 1,Y_REF - 1), "V"
        INCR CNT OVER X_LABEL
        BEGIN
            OFFSET =         (CNT - 1) * 3 + J_TEMP
            BAR_X = X_REF + 1 + BAR_WIDTH * (CNT  - 1)
            BAR_Y = Y_VALUE(OFFSET)
            PRINT LXY(BAR_X,BAR_Y)
        END
"        PRINT "T(A1)W(S", LY(Y_REF - 1), QUOTE(HATCH(J_TEMP)), ")"
'        PRINT "W(I", CVT(COLOR(J_TEMP)), ")P", LXY(X_REF + 1,Y_REF - 1), "V"
        INCR CNT OVER X_LABEL
        BEGIN
            OFFSET =         (CNT  - 1) * 3 + J_TEMP
            BAR_X = X_REF + 1 + BAR_WIDTH * (CNT  - 1)
            BAR_Y = Y_VALUE(OFFSET)
            PRINT LXY(BAR_X,BAR_Y)
            IF Y_MX(CNT) > Y_VALUE(OFFSET) THEN
                Y_MX(CNT) = Y_VALUE(OFFSET)
        END
	(        PRINT "W(S0I", CVT(COLOR(J_TEMP)), ")P", LXY(X_REF + 1,Y_REF  - 1), "V"
        INCR CNT OVER X_LABEL
        BEGIN
            OFFSET =         (CNT  - 1) * 3 + J_TEMP
            BAR_X = X_REF + 1 + BAR_WIDTH * (CNT  - 1)
            BAR_Y = Y_VALUE(OFFSET)
            PRINT LXY(BAR_X,BAR_Y)
        END
    END
    PRINT "T(A0)@;@A"
	+    PLOT LEGEND 3 (X_REF,Y_REF,X_LENGTH,Y_LENGTH,BAR_WIDTH,Y_MX,HATCH,COLOR,L_LABEL)
    PLOT HOUSEKEEP 2
END
END_PLOT