Fixing graph display
This commit is contained in:
parent
33e6a96589
commit
211af0795b
|
@ -156,14 +156,13 @@
|
||||||
(filter
|
(filter
|
||||||
(λ (x) (<= 2 (length (line-points (car (graph-lines x))))))
|
(λ (x) (<= 2 (length (line-points (car (graph-lines x))))))
|
||||||
(build-large-graphs data))])
|
(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)])
|
(let-values ([(first rest) (split-out-graph graphs)])
|
||||||
(cond
|
(cond
|
||||||
[(null? rest)
|
[(null? rest)
|
||||||
(list first)]
|
(list first)]
|
||||||
[else
|
[else
|
||||||
(cons first (loop rest))]))))))
|
(cons first (loop rest))])))))
|
||||||
|
|
||||||
;; split-out-graphs : (listof graph) -> (values (listof graph) (listof graph))
|
;; split-out-graphs : (listof graph) -> (values (listof graph) (listof graph))
|
||||||
;; first result is a set of graphs to go into a single image
|
;; first result is a set of graphs to go into a single image
|
||||||
|
|
Loading…
Reference in New Issue
Block a user