Skip to content

Parameter plot-background-alpha has no effect (since 8.1) #96

@bksaiki

Description

@bksaiki

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions