Thanks Robby, my plots are very pretty plots now. Is it possible to have nicely formatted LaTeX style labels on plots instead of "y = x^2"?
see this example http://docs.racket-lang.org/plot/renderer2d.html#%28def._%28%28lib._plot%2Fmain..rkt%29._inverse%29%29 (plot <file:///Applications/Racket%20v6.1.0.8/doc/plot/plotting.html#%28def._%28%28lib._plot%2Fmain..rkt%29._plot%29%29> (list <file:///Applications/Racket%20v6.1.0.8/doc/reference/pairs.html#%28def._%28%28quote._~23~25kernel%29._list%29%29> (axes <file:///Applications/Racket%20v6.1.0.8/doc/plot/renderer2d.html#%28def._%28%28lib._plot%2Fmain..rkt%29._axes%29%29> ) (function <file:///Applications/Racket%20v6.1.0.8/doc/plot/renderer2d.html#%28def._%28%28lib._plot%2Fmain..rkt%29._function%29%29> sqr <file:///Applications/Racket%20v6.1.0.8/doc/reference/generic-numbers.html#%28def._%28%28lib._racket%2Fmath..rkt%29._sqr%29%29> -2 2 #:label "y = x^2") (function <file:///Applications/Racket%20v6.1.0.8/doc/plot/renderer2d.html#%28def._%28%28lib._plot%2Fmain..rkt%29._function%29%29> (λ <file:///Applications/Racket%20v6.1.0.8/doc/reference/lambda.html#%28form._%28%28lib._racket%2Fprivate%2Fbase..rkt%29._~ce~bb%29%29> (x) x) #:color 0 #:style 'dot #:label "y = x") (inverse <file:///Applications/Racket%20v6.1.0.8/doc/plot/renderer2d.html#%28def._%28%28lib._plot%2Fmain..rkt%29._inverse%29%29> sqr <file:///Applications/Racket%20v6.1.0.8/doc/reference/generic-numbers.html#%28def._%28%28lib._racket%2Fmath..rkt%29._sqr%29%29> -2 2 #:color 3 #:label "x = y^2"))) (Racket has just displaced LaTeX and Maxima for me) Thanks & kind regards, Stephen On Wed, Oct 8, 2014 at 2:24 AM, Robby Findler <ro...@eecs.northwestern.edu> wrote: > If you use plot-pict, it will do the right thing. > > And probably plots should implement the pict-convertible? api. > > Robby > > > On Tue, Oct 7, 2014 at 7:55 PM, Stephen De Gabrielle > <spdegabrie...@gmail.com> wrote: > > Hi, > > > > I'm learning some scribble, along with adding some images from plot. > > > > This works nicely, but i'm trying to work out how to improve the image > > quality in the resulting PDF. (the html output is fine.) > > > > is there any way to make my images sharper and clearer in PDF? > > > > kind regards, > > > > Stephen > > > > ---- > > > > #lang scribble/base > > > > @(require plot racket/math) > > > > @title{Math 135 Assignment 1} > > @section{First Test} > > > > @(define ((deriv f) x) > > (/ (- (f x) (f (- x 0.001))) 0.001)) > > @(define (thrice f) (lambda (x) (f (f (f x))))) > > > > @(define (x^2 x) (* x x)) > > > > > > @(parameterize ([plot-width 150] > > [plot-height 150] > > [plot-x-label "xaxis"] > > [plot-y-label #f]) > > (list (plot (function x^2 (- pi) pi)))) > > > > > > > > ____________________ > > Racket Users list: > > http://lists.racket-lang.org/users > > >
____________________ Racket Users list: http://lists.racket-lang.org/users