
(/VERSIONCHECK 2) 

(DEFUN |GRIMAGE;numberCheck| (|nums| $)
  (PROG (#1=#:G1812 #2=#:G1810 #3=#:G1814 |i|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ
        (LETT |i| (SPADCALL |nums| (QREFELT $ 9)) . #4=(|GRIMAGE;numberCheck|))
        (LETT #3# (SPADCALL |nums| (QREFELT $ 10)) . #4#) G190
        (COND ((> |i| #3#) (GO G191)))
        (SEQ
         (EXIT
          (COND
           ((COMPLEXP
             (SPADCALL |nums|
                       (PROG1 (LETT #2# |i| . #4#)
                         (|check-subtype| (> #2# 0) '(|PositiveInteger|) #2#))
                       (QREFELT $ 12)))
            (PROGN
             (LETT #1#
                   (|error|
                    "An unexpected complex number was encountered in the calculations.")
                   . #4#)
             (GO #1#))))))
        (LETT |i| (+ |i| 1) . #4#) (GO G190) G191 (EXIT NIL)))
      #1# (EXIT #1#))))) 

(DEFUN |GRIMAGE;doOptions| (|g| $)
  (PROG (|lu| |lr|)
    (RETURN
     (SEQ
      (LETT |lr|
            (SPADCALL (QVELT |g| 7) (SPADCALL |g| (QREFELT $ 14))
                      (QREFELT $ 17))
            . #1=(|GRIMAGE;doOptions|))
      (COND
       ((< 1 (LENGTH |lr|))
        (QSETVELT |g| 1
                  (LIST
                   (SPADCALL
                    (SPADCALL
                     (SPADCALL (SPADCALL |lr| 1 (QREFELT $ 19)) (QREFELT $ 21))
                     (QREFELT $ 22))
                    (SPADCALL
                     (SPADCALL (SPADCALL |lr| 1 (QREFELT $ 19)) (QREFELT $ 23))
                     (QREFELT $ 22))
                    (QREFELT $ 25))
                   (SPADCALL
                    (SPADCALL
                     (SPADCALL (SPADCALL |lr| 2 (QREFELT $ 19)) (QREFELT $ 21))
                     (QREFELT $ 22))
                    (SPADCALL
                     (SPADCALL (SPADCALL |lr| 2 (QREFELT $ 19)) (QREFELT $ 23))
                     (QREFELT $ 22))
                    (QREFELT $ 25)))))
       (#2='T (QSETVELT |g| 1 NIL)))
      (LETT |lu|
            (SPADCALL (QVELT |g| 7) (SPADCALL |g| (QREFELT $ 27))
                      (QREFELT $ 28))
            . #1#)
      (EXIT
       (COND
        ((< 1 (LENGTH |lu|))
         (QSETVELT |g| 2
                   (LIST
                    (SPADCALL (SPADCALL |lu| 1 (QREFELT $ 29)) (QREFELT $ 22))
                    (SPADCALL (SPADCALL |lu| 2 (QREFELT $ 29))
                              (QREFELT $ 22)))))
        (#2# (QSETVELT |g| 2 NIL)))))))) 

(DEFUN |GRIMAGE;putColorInfo;LLL;3| (|llp| |listOfPalettes| $)
  (PROG (|llp2| |lp2| |p| |d| #1=#:G1847 |daShade| |daHue| #2=#:G1845 |lp|
         #3=#:G1846 |pal|)
    (RETURN
     (SEQ (LETT |llp2| NIL . #4=(|GRIMAGE;putColorInfo;LLL;3|))
          (SEQ (LETT |pal| NIL . #4#) (LETT #3# |listOfPalettes| . #4#)
               (LETT |lp| NIL . #4#) (LETT #2# |llp| . #4#) G190
               (COND
                ((OR (ATOM #2#) (PROGN (LETT |lp| (CAR #2#) . #4#) NIL)
                     (ATOM #3#) (PROGN (LETT |pal| (CAR #3#) . #4#) NIL))
                 #5=(GO G191)))
               (SEQ (LETT |lp2| NIL . #4#)
                    (LETT |daHue|
                          (FLOAT
                           (SPADCALL (SPADCALL |pal| (QREFELT $ 32))
                                     (QREFELT $ 33))
                           MOST-POSITIVE-DOUBLE-FLOAT)
                          . #4#)
                    (LETT |daShade|
                          (FLOAT (SPADCALL |pal| (QREFELT $ 34))
                                 MOST-POSITIVE-DOUBLE-FLOAT)
                          . #4#)
                    (SEQ (LETT |p| NIL . #4#) (LETT #1# |lp| . #4#) G190
                         (COND
                          ((OR (ATOM #1#)
                               (PROGN (LETT |p| (CAR #1#) . #4#) NIL))
                           #5#))
                         (SEQ
                          (SEQ (LETT |d| (SPADCALL |p| (QREFELT $ 36)) . #4#)
                               (EXIT
                                (COND
                                 ((< |d| 3)
                                  (LETT |p|
                                        (SPADCALL |p| (LIST |daHue| |daShade|)
                                                  (QREFELT $ 38))
                                        . #4#))
                                 ('T
                                  (SEQ (SPADCALL |p| 3 |daHue| (QREFELT $ 39))
                                       (EXIT
                                        (COND
                                         ((< |d| 4)
                                          (LETT |p|
                                                (SPADCALL |p| (LIST |daShade|)
                                                          (QREFELT $ 38))
                                                . #4#))
                                         ('T
                                          (SPADCALL |p| 4 |daShade|
                                                    (QREFELT $ 39))))))))))
                          (EXIT (LETT |lp2| (CONS |p| |lp2|) . #4#)))
                         (LETT #1# (CDR #1#) . #4#) #6=(GO G190) G191
                         (EXIT NIL))
                    (EXIT (LETT |llp2| (CONS (NREVERSE |lp2|) |llp2|) . #4#)))
               (LETT #2# (PROG1 (CDR #2#) (LETT #3# (CDR #3#) . #4#)) . #4#)
               #6# G191 (EXIT NIL))
          (EXIT (NREVERSE |llp2|)))))) 

(DEFUN |GRIMAGE;graph| (|demRanges| $)
  (PROG (|demRangesSF|)
    (RETURN
     (SEQ
      (COND ((NULL |demRanges|) (VECTOR 0 NIL NIL NIL NIL NIL NIL NIL))
            ('T
             (SEQ
              (LETT |demRangesSF|
                    (LIST
                     (SPADCALL
                      (SPADCALL
                       (SPADCALL (SPADCALL |demRanges| 1 (QREFELT $ 19))
                                 (QREFELT $ 21))
                       (QREFELT $ 22))
                      (SPADCALL
                       (SPADCALL (SPADCALL |demRanges| 1 (QREFELT $ 19))
                                 (QREFELT $ 23))
                       (QREFELT $ 22))
                      (QREFELT $ 25))
                     (SPADCALL
                      (SPADCALL
                       (SPADCALL (SPADCALL |demRanges| 1 (QREFELT $ 19))
                                 (QREFELT $ 21))
                       (QREFELT $ 22))
                      (SPADCALL
                       (SPADCALL (SPADCALL |demRanges| 1 (QREFELT $ 19))
                                 (QREFELT $ 23))
                       (QREFELT $ 22))
                      (QREFELT $ 25)))
                    |GRIMAGE;graph|)
              (EXIT (VECTOR 0 |demRangesSF| NIL NIL NIL NIL NIL NIL))))))))) 

(DEFUN |GRIMAGE;scaleStep| (|rangeseg| $)
  (PROG (|scaleDown| |numerals| |tryStep| |range| |adjust|)
    (RETURN
     (SEQ
      (LETT |range|
            (SUB-DF (SPADCALL |rangeseg| (QREFELT $ 43))
                    (SPADCALL |rangeseg| (QREFELT $ 44)))
            . #1=(|GRIMAGE;scaleStep|))
      (LETT |adjust| 0 . #1#)
      (SEQ G190
           (COND
            ((NULL
              (LESS-DF |range|
                       (SPADCALL (SPADCALL 100 0 10 (QREFELT $ 45))
                                 (QREFELT $ 46))))
             (GO G191)))
           (SEQ (LETT |adjust| (+ |adjust| 1) . #1#)
                (EXIT
                 (LETT |range|
                       (MUL-DF |range|
                               (SPADCALL (SPADCALL 10 0 10 (QREFELT $ 45))
                                         (QREFELT $ 46)))
                       . #1#)))
           NIL (GO G190) G191 (EXIT NIL))
      (LETT |tryStep|
            (DIV-DF |range|
                    (SPADCALL (SPADCALL 10 0 10 (QREFELT $ 45))
                              (QREFELT $ 46)))
            . #1#)
      (LETT |numerals|
            (STRINGIMAGE
             (SPADCALL (SPADCALL |tryStep| (QREFELT $ 47)) (QREFELT $ 48)))
            . #1#)
      (LETT |scaleDown|
            (FLOAT (EXPT 10 (- (QCSIZE |numerals|) 1))
                   MOST-POSITIVE-DOUBLE-FLOAT)
            . #1#)
      (EXIT
       (DIV-DF
        (MUL-DF |scaleDown|
                (SPADCALL
                 (SUB-DF (DIV-DF |tryStep| |scaleDown|)
                         (SPADCALL (SPADCALL 5 -1 10 (QREFELT $ 45))
                                   (QREFELT $ 46)))
                 (QREFELT $ 47)))
        (FLOAT (EXPT 10 |adjust|) MOST-POSITIVE-DOUBLE-FLOAT))))))) 

(DEFUN |GRIMAGE;figureUnits| (|ranges| $)
  (LIST (|GRIMAGE;scaleStep| (|SPADfirst| |ranges|) $)
        (|GRIMAGE;scaleStep| (SPADCALL |ranges| (QREFELT $ 50)) $))) 

(DEFUN |GRIMAGE;roundRange| (|range| $)
  (PROG (|high| |low| |singleeps|)
    (RETURN
     (SEQ
      (LETT |singleeps|
            (EXPT-DF-I
             (SPADCALL (SPADCALL 2 0 10 (QREFELT $ 45)) (QREFELT $ 46)) -19)
            . #1=(|GRIMAGE;roundRange|))
      (LETT |low| (SPADCALL |range| (QREFELT $ 44)) . #1#)
      (LETT |low|
            (COND
             ((LESS-DF (FLOAT-SIGN 1.0 |low|) 1.0) (SUB-DF |low| |singleeps|))
             ((LESS-DF |low| 0.0)
              (MUL-DF
               (ADD-DF
                (SPADCALL (SPADCALL 1 0 10 (QREFELT $ 45)) (QREFELT $ 46))
                |singleeps|)
               |low|))
             (#2='T
              (MUL-DF
               (SUB-DF
                (SPADCALL (SPADCALL 1 0 10 (QREFELT $ 45)) (QREFELT $ 46))
                |singleeps|)
               |low|)))
            . #1#)
      (LETT |high| (SPADCALL |range| (QREFELT $ 43)) . #1#)
      (LETT |high|
            (COND
             ((LESS-DF (FLOAT-SIGN 1.0 |high|) 1.0)
              (ADD-DF |high| |singleeps|))
             ((LESS-DF |high| 0.0)
              (MUL-DF
               (SUB-DF
                (SPADCALL (SPADCALL 1 0 10 (QREFELT $ 45)) (QREFELT $ 46))
                |singleeps|)
               |high|))
             (#2#
              (MUL-DF
               (ADD-DF
                (SPADCALL (SPADCALL 1 0 10 (QREFELT $ 45)) (QREFELT $ 46))
                |singleeps|)
               |high|)))
            . #1#)
      (EXIT (SPADCALL |low| |high| (QREFELT $ 53))))))) 

(DEFUN |GRIMAGE;roundRanges| (|ranges| $)
  (LIST (|GRIMAGE;roundRange| (|SPADfirst| |ranges|) $)
        (|GRIMAGE;roundRange| (SPADCALL |ranges| (QREFELT $ 50)) $))) 

(DEFUN |GRIMAGE;plotLists|
       (|graf| |listOfListsOfPoints| |listOfPointColors| |listOfLineColors|
        |listOfPointSizes| $)
  (PROG (#1=#:G1889 |givenLen| #2=#:G1881 #3=#:G1873 |len| #4=#:G1894 |l|
         #5=#:G1893)
    (RETURN
     (SEQ
      (LETT |givenLen| (LENGTH |listOfListsOfPoints|)
            . #6=(|GRIMAGE;plotLists|))
      (LETT |listOfListsOfPoints|
            (PROGN
             (LETT #5# NIL . #6#)
             (SEQ (LETT |l| NIL . #6#) (LETT #4# |listOfListsOfPoints| . #6#)
                  G190
                  (COND
                   ((OR (ATOM #4#) (PROGN (LETT |l| (CAR #4#) . #6#) NIL))
                    (GO G191)))
                  (SEQ
                   (EXIT
                    (COND
                     ((COND ((NULL |l|) 'NIL) (#7='T 'T))
                      (LETT #5# (CONS |l| #5#) . #6#)))))
                  (LETT #4# (CDR #4#) . #6#) (GO G190) G191
                  (EXIT (NREVERSE0 #5#))))
            . #6#)
      (COND
       ((NULL |listOfListsOfPoints|)
        (|error|
         "GraphImage was given a list that contained no valid point lists")))
      (SEQ (LETT |len| (LENGTH |listOfListsOfPoints|) . #6#)
           (EXIT
            (COND
             ((NULL (EQL |len| |givenLen|))
              (|sayBrightly|
               (LIST "   Warning: Ignoring pointless point list"))))))
      (QSETVELT |graf| 3 |listOfListsOfPoints|)
      (SEQ (LETT |givenLen| (LENGTH |listOfPointColors|) . #6#)
           (EXIT
            (COND
             ((< |len| |givenLen|)
              (QSETVELT |graf| 4
                        (SPADCALL |listOfPointColors|
                                  (SPADCALL
                                   (+
                                    (PROG1
                                        (LETT #3# (- |len| |givenLen|) . #6#)
                                      (|check-subtype| (>= #3# 0)
                                                       '(|NonNegativeInteger|)
                                                       #3#))
                                    1)
                                   (SPADCALL (QREFELT $ 55)) (QREFELT $ 57))
                                  (QREFELT $ 58))))
             (#7#
              (QSETVELT |graf| 4
                        (SPADCALL |listOfPointColors| |len|
                                  (QREFELT $ 59)))))))
      (SEQ (LETT |givenLen| (LENGTH |listOfLineColors|) . #6#)
           (EXIT
            (COND
             ((< |len| |givenLen|)
              (QSETVELT |graf| 5
                        (SPADCALL |listOfLineColors|
                                  (SPADCALL
                                   (+
                                    (PROG1
                                        (LETT #2# (- |len| |givenLen|) . #6#)
                                      (|check-subtype| (>= #2# 0)
                                                       '(|NonNegativeInteger|)
                                                       #2#))
                                    1)
                                   (SPADCALL (QREFELT $ 60)) (QREFELT $ 57))
                                  (QREFELT $ 58))))
             (#7#
              (QSETVELT |graf| 5
                        (SPADCALL |listOfLineColors| |len| (QREFELT $ 59)))))))
      (SEQ (LETT |givenLen| (LENGTH |listOfPointSizes|) . #6#)
           (EXIT
            (COND
             ((< |len| |givenLen|)
              (QSETVELT |graf| 6
                        (SPADCALL |listOfPointSizes|
                                  (SPADCALL
                                   (+
                                    (PROG1
                                        (LETT #1# (- |len| |givenLen|) . #6#)
                                      (|check-subtype| (>= #1# 0)
                                                       '(|NonNegativeInteger|)
                                                       #1#))
                                    1)
                                   (SPADCALL (QREFELT $ 61)) (QREFELT $ 63))
                                  (QREFELT $ 64))))
             (#7#
              (QSETVELT |graf| 6
                        (SPADCALL |listOfPointSizes| |len| (QREFELT $ 65)))))))
      (EXIT |graf|))))) 

(DEFUN |GRIMAGE;makeGraph| (|graf| $)
  (PROG (|hueShade| |aPoint| #1=#:G1912 |p| #2=#:G1908 |aList| #3=#:G1909
         |pColor| #4=#:G1910 |lColor| #5=#:G1911 |s| |tonto| |transform|)
    (RETURN
     (SEQ (|GRIMAGE;doOptions| |graf| $)
          (LETT |s| (LENGTH (QVELT |graf| 3)) . #6=(|GRIMAGE;makeGraph|))
          (EXIT
           (COND
            ((EQL |s| 0)
             (|error| "You are trying to make a graph with no points"))
            ((NULL (EQL (SPADCALL |graf| (QREFELT $ 66)) 0))
             (|error| "You are trying to draw over an existing graph"))
            ('T
             (SEQ
              (LETT |transform|
                    (SPADCALL (QVELT |graf| 7) (ELT $ 68) (QREFELT $ 70))
                    . #6#)
              (QSETVELT |graf| 3
                        (SPADCALL (QVELT |graf| 3) (QVELT |graf| 4)
                                  (QREFELT $ 42)))
              (COND
               ((NULL (SPADCALL |graf| (QREFELT $ 14)))
                (QSETVELT |graf| 1
                          (SPADCALL (QVELT |graf| 3) (QREFELT $ 72)))))
              (QSETVELT |graf| 1 (|GRIMAGE;roundRanges| (QVELT |graf| 1) $))
              (COND
               ((NULL (SPADCALL |graf| (QREFELT $ 27)))
                (QSETVELT |graf| 2
                          (|GRIMAGE;figureUnits| (QVELT |graf| 1) $))))
              (|sayBrightly|
               (LIST
                "   Graph data being transmitted to the viewport manager..."))
              (|sockSendInt| |$ViewportServer| 2)
              (|sockSendInt| |$ViewportServer| -1)
              (LETT |tonto| (QVELT |graf| 1) . #6#)
              (|sockSendFloat| |$ViewportServer|
                               (SPADCALL (|SPADfirst| |tonto|) (QREFELT $ 44)))
              (|sockSendFloat| |$ViewportServer|
                               (SPADCALL (|SPADfirst| |tonto|) (QREFELT $ 43)))
              (|sockSendFloat| |$ViewportServer|
                               (SPADCALL (SPADCALL |tonto| (QREFELT $ 50))
                                         (QREFELT $ 44)))
              (|sockSendFloat| |$ViewportServer|
                               (SPADCALL (SPADCALL |tonto| (QREFELT $ 50))
                                         (QREFELT $ 43)))
              (|sockSendFloat| |$ViewportServer|
                               (|SPADfirst| (QVELT |graf| 2)))
              (|sockSendFloat| |$ViewportServer|
                               (SPADCALL (QVELT |graf| 2) (QREFELT $ 73)))
              (|sockSendInt| |$ViewportServer| |s|)
              (SEQ (LETT |s| NIL . #6#) (LETT #5# (QVELT |graf| 6) . #6#)
                   (LETT |lColor| NIL . #6#) (LETT #4# (QVELT |graf| 5) . #6#)
                   (LETT |pColor| NIL . #6#) (LETT #3# (QVELT |graf| 4) . #6#)
                   (LETT |aList| NIL . #6#) (LETT #2# (QVELT |graf| 3) . #6#)
                   G190
                   (COND
                    ((OR (ATOM #2#) (PROGN (LETT |aList| (CAR #2#) . #6#) NIL)
                         (ATOM #3#) (PROGN (LETT |pColor| (CAR #3#) . #6#) NIL)
                         (ATOM #4#) (PROGN (LETT |lColor| (CAR #4#) . #6#) NIL)
                         (ATOM #5#) (PROGN (LETT |s| (CAR #5#) . #6#) NIL))
                     #7=(GO G191)))
                   (SEQ (|sockSendInt| |$ViewportServer| (LENGTH |aList|))
                        (SEQ (LETT |p| NIL . #6#) (LETT #1# |aList| . #6#) G190
                             (COND
                              ((OR (ATOM #1#)
                                   (PROGN (LETT |p| (CAR #1#) . #6#) NIL))
                               #7#))
                             (SEQ
                              (LETT |aPoint| (SPADCALL |p| |transform|) . #6#)
                              (|sockSendFloat| |$ViewportServer|
                                               (SPADCALL |aPoint|
                                                         (QREFELT $ 75)))
                              (|sockSendFloat| |$ViewportServer|
                                               (SPADCALL |aPoint|
                                                         (QREFELT $ 76)))
                              (|sockSendFloat| |$ViewportServer|
                                               (SPADCALL |p| (QREFELT $ 77)))
                              (EXIT
                               (|sockSendFloat| |$ViewportServer|
                                                (SPADCALL |p|
                                                          (QREFELT $ 78)))))
                             (LETT #1# (CDR #1#) . #6#) #8=(GO G190) G191
                             (EXIT NIL))
                        (LETT |hueShade|
                              (+
                               (SPADCALL (SPADCALL |pColor| (QREFELT $ 32))
                                         (QREFELT $ 33))
                               (* (SPADCALL |pColor| (QREFELT $ 34))
                                  (SPADCALL (QREFELT $ 79))))
                              . #6#)
                        (|sockSendInt| |$ViewportServer| |hueShade|)
                        (LETT |hueShade|
                              (+
                               (SPADCALL
                                (-
                                 (SPADCALL (SPADCALL |lColor| (QREFELT $ 32))
                                           (QREFELT $ 33))
                                 1)
                                5 (QREFELT $ 81))
                               (SPADCALL |lColor| (QREFELT $ 34)))
                              . #6#)
                        (|sockSendInt| |$ViewportServer| |hueShade|)
                        (EXIT (|sockSendInt| |$ViewportServer| |s|)))
                   (LETT #2#
                         (PROG1 (CDR #2#)
                           (LETT #3#
                                 (PROG1 (CDR #3#)
                                   (LETT #4#
                                         (PROG1 (CDR #4#)
                                           (LETT #5# (CDR #5#) . #6#))
                                         . #6#))
                                 . #6#))
                         . #6#)
                   #8# G191 (EXIT NIL))
              (QSETVELT |graf| 0 (|sockGetInt| |$ViewportServer|))
              (EXIT |graf|))))))))) 

(DEFUN |GRIMAGE;makeGraphImage;2$;11| (|graf| $) (|GRIMAGE;makeGraph| |graf| $)) 

(PUT '|GRIMAGE;key;$I;12| '|SPADreplace| '(XLAM (|graf|) (QVELT |graf| 0))) 

(DEFUN |GRIMAGE;key;$I;12| (|graf| $) (QVELT |graf| 0)) 

(PUT '|GRIMAGE;pointLists;$L;13| '|SPADreplace|
     '(XLAM (|graf|) (QVELT |graf| 3))) 

(DEFUN |GRIMAGE;pointLists;$L;13| (|graf| $) (QVELT |graf| 3)) 

(DEFUN |GRIMAGE;ranges;$L;14| (|graf| $)
  (COND ((NULL (QVELT |graf| 1)) NIL)
        ('T
         (LIST
          (SPADCALL
           (SPADCALL
            (SPADCALL (SPADCALL (QVELT |graf| 1) 1 (QREFELT $ 84))
                      (QREFELT $ 44))
            (QREFELT $ 85))
           (SPADCALL
            (SPADCALL (SPADCALL (QVELT |graf| 1) 1 (QREFELT $ 84))
                      (QREFELT $ 43))
            (QREFELT $ 85))
           (QREFELT $ 86))
          (SPADCALL
           (SPADCALL
            (SPADCALL (SPADCALL (QVELT |graf| 1) 2 (QREFELT $ 84))
                      (QREFELT $ 44))
            (QREFELT $ 85))
           (SPADCALL
            (SPADCALL (SPADCALL (QVELT |graf| 1) 2 (QREFELT $ 84))
                      (QREFELT $ 43))
            (QREFELT $ 85))
           (QREFELT $ 86)))))) 

(DEFUN |GRIMAGE;ranges;$2L;15| (|graf| |rangesList| $)
  (SEQ
   (QSETVELT |graf| 1
             (LIST
              (SPADCALL
               (SPADCALL
                (SPADCALL (SPADCALL |rangesList| 1 (QREFELT $ 19))
                          (QREFELT $ 21))
                (QREFELT $ 22))
               (SPADCALL
                (SPADCALL (SPADCALL |rangesList| 1 (QREFELT $ 19))
                          (QREFELT $ 23))
                (QREFELT $ 22))
               (QREFELT $ 25))
              (SPADCALL
               (SPADCALL
                (SPADCALL (SPADCALL |rangesList| 2 (QREFELT $ 19))
                          (QREFELT $ 21))
                (QREFELT $ 22))
               (SPADCALL
                (SPADCALL (SPADCALL |rangesList| 2 (QREFELT $ 19))
                          (QREFELT $ 23))
                (QREFELT $ 22))
               (QREFELT $ 25))))
   (EXIT |rangesList|))) 

(DEFUN |GRIMAGE;units;$L;16| (|graf| $)
  (COND ((NULL (QVELT |graf| 2)) NIL)
        ('T
         (LIST
          (SPADCALL (SPADCALL (QVELT |graf| 2) 1 (QREFELT $ 88))
                    (QREFELT $ 85))
          (SPADCALL (SPADCALL (QVELT |graf| 2) 2 (QREFELT $ 88))
                    (QREFELT $ 85)))))) 

(DEFUN |GRIMAGE;units;$2L;17| (|graf| |unitsToBe| $)
  (SEQ
   (QSETVELT |graf| 2
             (LIST
              (SPADCALL (SPADCALL |unitsToBe| 1 (QREFELT $ 29)) (QREFELT $ 22))
              (SPADCALL (SPADCALL |unitsToBe| 2 (QREFELT $ 29))
                        (QREFELT $ 22))))
   (EXIT |unitsToBe|))) 

(DEFUN |GRIMAGE;graphImage;$;18| ($) (|GRIMAGE;graph| NIL $)) 

(DEFUN |GRIMAGE;makeGraphImage;L$;19| (|llp| $)
  (PROG (|i| #1=#:G1933 #2=#:G1932 #3=#:G1931 |l| #4=#:G1930)
    (RETURN
     (SEQ
      (SPADCALL |llp|
                (PROGN
                 (LETT #4# NIL . #5=(|GRIMAGE;makeGraphImage;L$;19|))
                 (SEQ (LETT |i| 1 . #5#)
                      (LETT #3# (LETT |l| (LENGTH |llp|) . #5#) . #5#) G190
                      (COND ((QSGREATERP |i| #3#) #6=(GO G191)))
                      (SEQ
                       (EXIT
                        (LETT #4# (CONS (SPADCALL (QREFELT $ 55)) #4#) . #5#)))
                      (LETT |i| (QSADD1 |i|) . #5#) #7=(GO G190) G191
                      (EXIT (NREVERSE0 #4#))))
                (PROGN
                 (LETT #2# NIL . #5#)
                 (SEQ (LETT |i| 1 . #5#) G190 (COND ((QSGREATERP |i| |l|) #6#))
                      (SEQ
                       (EXIT
                        (LETT #2# (CONS (SPADCALL (QREFELT $ 60)) #2#) . #5#)))
                      (LETT |i| (QSADD1 |i|) . #5#) #7# G191
                      (EXIT (NREVERSE0 #2#))))
                (PROGN
                 (LETT #1# NIL . #5#)
                 (SEQ (LETT |i| 1 . #5#) G190 (COND ((QSGREATERP |i| |l|) #6#))
                      (SEQ
                       (EXIT
                        (LETT #1# (CONS (SPADCALL (QREFELT $ 61)) #1#) . #5#)))
                      (LETT |i| (QSADD1 |i|) . #5#) #7# G191
                      (EXIT (NREVERSE0 #1#))))
                (QREFELT $ 91)))))) 

(DEFUN |GRIMAGE;makeGraphImage;L2LL$;20| (|llp| |lpc| |llc| |lps| $)
  (SPADCALL |llp| |lpc| |llc| |lps| NIL (QREFELT $ 93))) 

(DEFUN |GRIMAGE;makeGraphImage;L2LLL$;21| (|llp| |lpc| |llc| |lps| |opts| $)
  (PROG (|aPoint| #1=#:G1942 |p| #2=#:G1941 |aList| |transform| |graf|)
    (RETURN
     (SEQ
      (LETT |graf| (|GRIMAGE;graph| (SPADCALL |opts| NIL (QREFELT $ 17)) $)
            . #3=(|GRIMAGE;makeGraphImage;L2LLL$;21|))
      (QSETVELT |graf| 7 |opts|)
      (LETT |graf| (|GRIMAGE;plotLists| |graf| |llp| |lpc| |llc| |lps| $)
            . #3#)
      (LETT |transform| (SPADCALL (QVELT |graf| 7) (ELT $ 68) (QREFELT $ 70))
            . #3#)
      (SEQ (LETT |aList| NIL . #3#) (LETT #2# (QVELT |graf| 3) . #3#) G190
           (COND
            ((OR (ATOM #2#) (PROGN (LETT |aList| (CAR #2#) . #3#) NIL))
             #4=(GO G191)))
           (SEQ
            (EXIT
             (SEQ (LETT |p| NIL . #3#) (LETT #1# |aList| . #3#) G190
                  (COND
                   ((OR (ATOM #1#) (PROGN (LETT |p| (CAR #1#) . #3#) NIL))
                    #4#))
                  (SEQ (LETT |aPoint| (SPADCALL |p| |transform|) . #3#)
                       (EXIT (|GRIMAGE;numberCheck| |aPoint| $)))
                  (LETT #1# (CDR #1#) . #3#) #5=(GO G190) G191 (EXIT NIL))))
           (LETT #2# (CDR #2#) . #3#) #5# G191 (EXIT NIL))
      (EXIT (|GRIMAGE;makeGraph| |graf| $)))))) 

(DEFUN |GRIMAGE;component;$L2PPiV;22|
       (|graf| |ListOfPoints| |PointColor| |LineColor| |PointSize| $)
  (SEQ (QSETVELT |graf| 3 (APPEND (QVELT |graf| 3) (LIST |ListOfPoints|)))
       (QSETVELT |graf| 4 (APPEND (QVELT |graf| 4) (LIST |PointColor|)))
       (QSETVELT |graf| 5 (APPEND (QVELT |graf| 5) (LIST |LineColor|)))
       (EXIT (QSETVELT |graf| 6 (APPEND (QVELT |graf| 6) (LIST |PointSize|)))))) 

(DEFUN |GRIMAGE;component;$PV;23| (|graf| |aPoint| $)
  (SPADCALL |graf| |aPoint| (SPADCALL (QREFELT $ 55)) (SPADCALL (QREFELT $ 60))
            (SPADCALL (QREFELT $ 61)) (QREFELT $ 97))) 

(DEFUN |GRIMAGE;component;$P2PPiV;24|
       (|graf| |aPoint| |PointColor| |LineColor| |PointSize| $)
  (SPADCALL |graf| (LIST |aPoint|) |PointColor| |LineColor| |PointSize|
            (QREFELT $ 96))) 

(DEFUN |GRIMAGE;appendPoint;$PV;25| (|graf| |aPoint| $)
  (PROG (|num|)
    (RETURN
     (SEQ
      (LETT |num| (- (LENGTH (QVELT |graf| 3)) 1) |GRIMAGE;appendPoint;$PV;25|)
      (EXIT
       (COND ((< |num| 0) (|error| "No point lists to append to!"))
             ('T
              (SPADCALL (QVELT |graf| 3) |num|
                        (APPEND
                         (SPADCALL (QVELT |graf| 3) |num| (QREFELT $ 99))
                         (LIST |aPoint|))
                        (QREFELT $ 100))))))))) 

(DEFUN |GRIMAGE;point;$PPV;26| (|graf| |aPoint| |PointColor| $)
  (SPADCALL |graf| |aPoint| |PointColor| (SPADCALL (QREFELT $ 60))
            (SPADCALL (QREFELT $ 61)) (QREFELT $ 97))) 

(DEFUN |GRIMAGE;coerce;L$;27| (|llp| $)
  (PROG (|i| #1=#:G1958 #2=#:G1957 #3=#:G1956 |l| #4=#:G1955)
    (RETURN
     (SEQ
      (SPADCALL |llp|
                (PROGN
                 (LETT #4# NIL . #5=(|GRIMAGE;coerce;L$;27|))
                 (SEQ (LETT |i| 1 . #5#)
                      (LETT #3# (LETT |l| (LENGTH |llp|) . #5#) . #5#) G190
                      (COND ((QSGREATERP |i| #3#) #6=(GO G191)))
                      (SEQ
                       (EXIT
                        (LETT #4# (CONS (SPADCALL (QREFELT $ 55)) #4#) . #5#)))
                      (LETT |i| (QSADD1 |i|) . #5#) #7=(GO G190) G191
                      (EXIT (NREVERSE0 #4#))))
                (PROGN
                 (LETT #2# NIL . #5#)
                 (SEQ (LETT |i| 1 . #5#) G190 (COND ((QSGREATERP |i| |l|) #6#))
                      (SEQ
                       (EXIT
                        (LETT #2# (CONS (SPADCALL (QREFELT $ 60)) #2#) . #5#)))
                      (LETT |i| (QSADD1 |i|) . #5#) #7# G191
                      (EXIT (NREVERSE0 #2#))))
                (PROGN
                 (LETT #1# NIL . #5#)
                 (SEQ (LETT |i| 1 . #5#) G190 (COND ((QSGREATERP |i| |l|) #6#))
                      (SEQ
                       (EXIT
                        (LETT #1# (CONS (SPADCALL (QREFELT $ 61)) #1#) . #5#)))
                      (LETT |i| (QSADD1 |i|) . #5#) #7# G191
                      (EXIT (NREVERSE0 #1#))))
                (QREFELT $ 91)))))) 

(DEFUN |GRIMAGE;coerce;$Of;28| (|graf| $)
  (PROG (|p|)
    (RETURN
     (SPADCALL
      (LIST "Graph with "
            (SPADCALL
             (LETT |p| (LENGTH (SPADCALL |graf| (QREFELT $ 83)))
                   |GRIMAGE;coerce;$Of;28|)
             (QREFELT $ 105))
            (COND ((EQL |p| 1) " point list") ('T " point lists")))
      (QREFELT $ 107))))) 

(DEFUN |GraphImage| #1=()
  (PROG #1#
    (RETURN
     (PROG (#2=#:G1961)
       (RETURN
        (COND
         ((LETT #2# (HGET |$ConstructorCache| '|GraphImage|)
                . #3=(|GraphImage|))
          (|CDRwithIncrement| (CDAR #2#)))
         ('T
          (UNWIND-PROTECT
              (PROG1
                  (CDDAR
                   (HPUT |$ConstructorCache| '|GraphImage|
                         (LIST (CONS NIL (CONS 1 (|GraphImage;|))))))
                (LETT #2# T . #3#))
            (COND ((NOT #2#) (HREM |$ConstructorCache| '|GraphImage|))))))))))) 

(DEFUN |GraphImage;| ()
  (PROG (|dv$| $ |pv$|)
    (RETURN
     (PROGN
      (LETT |dv$| '(|GraphImage|) . #1=(|GraphImage|))
      (LETT $ (GETREFV 111) . #1#)
      (QSETREFV $ 0 |dv$|)
      (QSETREFV $ 3 (LETT |pv$| (|buildPredVector| 0 0 NIL) . #1#))
      (|haddProp| |$ConstructorCache| '|GraphImage| NIL (CONS 1 $))
      (|stuffDomainSlots| $)
      (SETF |pv$| (QREFELT $ 3))
      (QSETREFV $ 6
                (|Record| (|:| |key| (|Integer|))
                          (|:| |rangesField|
                               (|List| (|Segment| (|DoubleFloat|))))
                          (|:| |unitsField| (|List| (|DoubleFloat|)))
                          (|:| |llPoints|
                               (|List| (|List| (|Point| (|DoubleFloat|)))))
                          (|:| |pointColors| (|List| (|Palette|)))
                          (|:| |lineColors| (|List| (|Palette|)))
                          (|:| |pointSizes| (|List| (|PositiveInteger|)))
                          (|:| |optionsField| (|List| (|DrawOption|)))))
      $)))) 

(MAKEPROP '|GraphImage| '|infovec|
          (LIST
           '#(NIL NIL NIL NIL NIL NIL '|Rep| (|Integer|) (|Point| 11)
              (0 . |minIndex|) (5 . |maxIndex|) (|DoubleFloat|) (10 . |elt|)
              (|List| 18) |GRIMAGE;ranges;$L;14| (|List| (|DrawOption|))
              (|DrawOptionFunctions0|) (16 . |ranges|) (|Segment| 20)
              (22 . |elt|) (|Float|) (28 . |lo|) (33 . |convert|) (38 . |hi|)
              (|Segment| 11) (43 . |segment|) (|List| 20) |GRIMAGE;units;$L;16|
              (49 . |units|) (55 . |elt|) (|Color|) (|Palette|) (61 . |hue|)
              (66 . |hue|) (71 . |shade|) (|PositiveInteger|)
              (76 . |dimension|) (|List| 11) (81 . |extend|) (87 . |setelt|)
              (|List| 95) (|List| 31) |GRIMAGE;putColorInfo;LLL;3| (94 . |hi|)
              (99 . |lo|) (104 . |float|) (111 . |coerce|) (116 . |ceiling|)
              (121 . |retract|) (|List| 24) (126 . |second|) (131 . |Zero|)
              (135 . |One|) (139 . SEGMENT) (|ViewDefaultsPackage|)
              (145 . |pointColorDefault|) (|NonNegativeInteger|) (149 . |new|)
              (155 . |concat|) (161 . |first|) (167 . |lineColorDefault|)
              (171 . |pointSizeDefault|) (|List| 35) (175 . |new|)
              (181 . |concat|) (187 . |first|) |GRIMAGE;key;$I;12|
              (|CoordinateSystems| 11) (193 . |cartesian|) (|Mapping| 8 8)
              (198 . |coord|) (|PlotTools|) (204 . |calcRanges|)
              (209 . |second|) (|PointPackage| 11) (214 . |xCoord|)
              (219 . |yCoord|) (224 . |hue|) (229 . |shade|)
              (234 . |numberOfHues|) (|SingleInteger|) (238 . *)
              |GRIMAGE;makeGraphImage;2$;11| |GRIMAGE;pointLists;$L;13|
              (244 . |elt|) (250 . |convert|) (255 . |segment|)
              |GRIMAGE;ranges;$2L;15| (261 . |elt|) |GRIMAGE;units;$2L;17|
              |GRIMAGE;graphImage;$;18| |GRIMAGE;makeGraphImage;L2LL$;20|
              |GRIMAGE;makeGraphImage;L$;19| |GRIMAGE;makeGraphImage;L2LLL$;21|
              (|Void|) (|List| 8) |GRIMAGE;component;$L2PPiV;22|
              |GRIMAGE;component;$P2PPiV;24| |GRIMAGE;component;$PV;23|
              (267 . |elt|) (273 . |setelt|) |GRIMAGE;appendPoint;$PV;25|
              |GRIMAGE;point;$PPV;26| |GRIMAGE;coerce;L$;27| (|OutputForm|)
              (280 . |coerce|) (|List| $) (285 . |hconcat|)
              |GRIMAGE;coerce;$Of;28| (|String|) (|Boolean|))
           '#(~= 290 |units| 296 |ranges| 307 |putColorInfo| 318 |pointLists|
              324 |point| 329 |makeGraphImage| 336 |latex| 363 |key| 368 |hash|
              373 |graphImage| 378 |component| 382 |coerce| 406 |appendPoint|
              416 = 422)
           'NIL
           (CONS (|makeByteWordVec2| 1 '(0 0 0))
                 (CONS '#(|SetCategory&| |BasicType&| NIL)
                       (CONS
                        '#((|SetCategory|) (|BasicType|) (|CoercibleTo| 104))
                        (|makeByteWordVec2| 110
                                            '(1 8 7 0 9 1 8 7 0 10 2 8 11 0 7
                                              12 2 16 13 15 13 17 2 13 18 0 7
                                              19 1 18 20 0 21 1 20 11 0 22 1 18
                                              20 0 23 2 24 0 11 11 25 2 16 26
                                              15 26 28 2 26 20 0 7 29 1 31 30 0
                                              32 1 30 7 0 33 1 31 7 0 34 1 8 35
                                              0 36 2 8 0 0 37 38 3 8 11 0 7 11
                                              39 1 24 11 0 43 1 24 11 0 44 3 20
                                              0 7 7 35 45 1 20 11 0 46 1 11 0 0
                                              47 1 11 7 0 48 1 49 24 0 50 0 20
                                              0 51 0 20 0 52 2 24 0 11 11 53 0
                                              54 31 55 2 41 0 56 31 57 2 41 0 0
                                              0 58 2 41 0 0 56 59 0 54 31 60 0
                                              54 35 61 2 62 0 56 35 63 2 62 0 0
                                              0 64 2 62 0 0 56 65 1 67 8 8 68 2
                                              16 69 15 69 70 1 71 49 40 72 1 37
                                              11 0 73 1 74 11 8 75 1 74 11 8 76
                                              1 74 11 8 77 1 74 11 8 78 0 30 35
                                              79 2 80 0 7 0 81 2 49 24 0 7 84 1
                                              11 20 0 85 2 18 0 20 20 86 2 37
                                              11 0 7 88 2 40 95 0 7 99 3 40 95
                                              0 7 95 100 1 56 104 0 105 1 104 0
                                              106 107 2 0 110 0 0 1 2 0 26 0 26
                                              89 1 0 26 0 27 1 0 13 0 14 2 0 13
                                              0 13 87 2 0 40 40 41 42 1 0 40 0
                                              83 3 0 94 0 8 31 102 5 0 0 40 41
                                              41 62 15 93 4 0 0 40 41 41 62 91
                                              1 0 0 0 82 1 0 0 40 92 1 0 109 0
                                              1 1 0 7 0 66 1 0 80 0 1 0 0 0 90
                                              5 0 94 0 8 31 31 35 97 2 0 94 0 8
                                              98 5 0 94 0 95 31 31 35 96 1 0 0
                                              40 103 1 0 104 0 108 2 0 94 0 8
                                              101 2 0 110 0 0 1)))))
           '|lookupComplete|)) 

(MAKEPROP '|GraphImage| 'NILADIC T) 
