-
-
Notifications
You must be signed in to change notification settings - Fork 37
Closed
Labels
Description
It seems that plot-background-alpha no longer works when generating png files with plot-file. This bug was introduced after Racket 8.0. Here's a quick example:
(require plot/no-gui)
(define out (open-output-file "img.png" #:exists 'replace))
(parameterize ([plot-width 800] [plot-height 300]
[plot-background-alpha 0])
(define xs (build-list 20 (λ _ (random))))
(define ys (build-list 20 (λ _ (random))))
(define pts (points (map vector xs ys)
#:color "black"))
(plot-file (list pts) out 'png
#:x-min 0 #:x-max 1
#:y-min 0 #:y-max 1))
Please let me know if something has changed with this parameter.