[racket] plot w/ log scale

From: David Van Horn (dvanhorn at ccs.neu.edu)
Date: Thu Nov 8 18:29:46 EST 2012

On 11/8/12 5:48 PM, Vincent St-Amour wrote:
> You can use axis transforms, but you may need to bound them.
>
> #lang racket
> (require plot)
> (parameterize ([plot-y-transform (axis-transform-bound log-transform 1 2000)])
>    (plot (discrete-histogram '(#(a 10) #(b 100) #(c 1000)))))

Thanks!

Maybe someone can explain why this doesn't work?

#lang racket
(require plot)
(parameterize
   ([plot-y-transform (axis-transform-bound log-transform 1 2000)]
    [plot-y-ticks (log-ticks)])
   (plot (discrete-histogram '(#(a 10) #(b 100) #(c 1000)))))


log-ticks-layout: expects type <positive real> as 1st argument, given: 
0; other arguments were: 1000

David


Posted on the users mailing list.