[racket] plot w/ log scale

From: Vincent St-Amour (stamourv at ccs.neu.edu)
Date: Thu Nov 8 17:48:26 EST 2012

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)))))


Vincent


At Thu, 08 Nov 2012 17:19:11 -0500,
David Van Horn wrote:
> 
> Is there some way to plot a discrete histogram with a log-scale y-axis?
> 
> Thanks,
> David
> ____________________
>   Racket Users list:
>   http://lists.racket-lang.org/users

Posted on the users mailing list.