Fixing graph display

This commit is contained in:
Jay McCarthy 2010-08-31 12:06:15 -06:00
parent 33e6a96589
commit 211af0795b

View File

@ -156,14 +156,13 @@
(filter
(λ (x) (<= 2 (length (line-points (car (graph-lines x))))))
(build-large-graphs data))])
(reverse
(let loop ([graphs (reverse large-graphs)])
(let loop ([graphs (reverse large-graphs)])
(let-values ([(first rest) (split-out-graph graphs)])
(cond
[(null? rest)
(list first)]
[else
(cons first (loop rest))]))))))
(cons first (loop rest))])))))
;; split-out-graphs : (listof graph) -> (values (listof graph) (listof graph))
;; first result is a set of graphs to go into a single image