racket/collects/plot/scribblings/common.rkt
Matthew Flatt 7ee6a814e5 explicitly close evaluator for plot doc
Although this shouldn't affect document rendering, since
each document is run under a custodian that is shut down,
it simplifies using the document individually to check for
leaks.
2012-11-04 06:09:21 -07:00

44 lines
1.3 KiB
Racket

#lang racket/base
(require scribble/eval
(for-label racket
racket/gui/base
slideshow/pict
db
plot
plot/utils
unstable/contract)
plot
plot/utils
plot/doc
unstable/latent-contract/defthing)
(provide (all-defined-out)
(all-from-out scribble/eval)
(for-label (all-from-out racket
racket/gui/base
slideshow/pict
db
plot
plot/utils
unstable/contract))
(all-from-out plot)
(all-from-out plot/doc)
(all-from-out plot/utils)
doc-apply)
(define (plot-name) "PLoT")
(define plot-eval
(let ([eval (make-base-eval)])
(eval '(begin
(require racket/math racket/match racket/list racket/draw racket/class
(rename-in (except-in plot plot plot3d)
[plot-bitmap plot]
[plot3d-bitmap plot3d])
plot/utils)))
eval))
(define (close-plot-eval)
(close-eval plot-eval))