On Mon, Dec 28, 2015 at 5:29 AM, Greg Trzeciak <[email protected]> wrote:
> Re: 3 Is there any example of plotting with x axis being the time+date > available? There's a small example in the docs for the 'plot' package: http://docs.racket-lang.org/plot/ticks_and_transforms.html#%28def._%28%28lib._plot%2Fmain..rkt%29._ticks-scale%29%29 Documentation on time ticks is here: http://docs.racket-lang.org/plot/ticks_and_transforms.html#%28part._.Time_.Ticks%29 And here's a smaller example: #lang racket/base (require plot) (define (earnings ms) (let ([d (seconds->date ms)]) (expt (date-minute d) 2))) (define (hour->date h) (date 0 0 h 1 1 2015 0 0 #f 0)) (parameterize ([plot-x-ticks (time-ticks #:number 6 #:formats '("~Mm"))]) (plot (function earnings #:label "$$$") #:x-min (datetime->real (hour->date 2)) #:x-max (datetime->real (hour->date 3)))) -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

