<div dir="ltr">Thanks Robby, my plots are very pretty plots now.<div><br></div><div>Is it possible to have nicely formatted LaTeX style labels on plots instead of <span style="color:rgb(34,139,34);font-family:'Source Code Pro',monospace;font-size:16px;line-height:22px;white-space:pre">"y = x^2"?</span></div><div><br></div><div>see this example </div><div><br></div><div><a href="http://docs.racket-lang.org/plot/renderer2d.html#%28def._%28%28lib._plot%2Fmain..rkt%29._inverse%29%29">http://docs.racket-lang.org/plot/renderer2d.html#%28def._%28%28lib._plot%2Fmain..rkt%29._inverse%29%29</a> <br></div><div><br></div><div><table cellspacing="0" cellpadding="0" class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:pre;font-size:15px;color:rgb(0,0,0);line-height:22px"><tbody style="margin:0px;padding:0px"><tr style="margin:0px;padding:0px;white-space:inherit"><td style="padding:0px;vertical-align:baseline;white-space:inherit"><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(132,60,36);font-size:1rem">(</span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:inherit;font-size:1rem"><a href="file:///Applications/Racket%20v6.1.0.8/doc/plot/plotting.html#%28def._%28%28lib._plot%2Fmain..rkt%29._plot%29%29" class="" style="margin:0px;padding:0px;text-decoration:none;color:rgb(0,119,170);font-size:1rem">plot</a></span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(132,60,36);font-size:1rem">(</span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:inherit;font-size:1rem"><a href="file:///Applications/Racket%20v6.1.0.8/doc/reference/pairs.html#%28def._%28%28quote._~23~25kernel%29._list%29%29" class="" style="margin:0px;padding:0px;text-decoration:none;color:rgb(0,119,170);font-size:1rem">list</a></span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(132,60,36);font-size:1rem">(</span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:inherit;font-size:1rem"><a href="file:///Applications/Racket%20v6.1.0.8/doc/plot/renderer2d.html#%28def._%28%28lib._plot%2Fmain..rkt%29._axes%29%29" class="" style="margin:0px;padding:0px;text-decoration:none;color:rgb(0,119,170);font-size:1rem">axes</a></span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(132,60,36);font-size:1rem">)</span></td></tr><tr style="margin:0px;padding:0px;white-space:inherit"><td style="padding:0px;vertical-align:baseline;white-space:inherit"><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem">  </span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem">            </span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(132,60,36);font-size:1rem">(</span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:inherit;font-size:1rem"><a href="file:///Applications/Racket%20v6.1.0.8/doc/plot/renderer2d.html#%28def._%28%28lib._plot%2Fmain..rkt%29._function%29%29" class="" style="margin:0px;padding:0px;text-decoration:none;color:rgb(0,119,170);font-size:1rem">function</a></span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:inherit;font-size:1rem"><a href="file:///Applications/Racket%20v6.1.0.8/doc/reference/generic-numbers.html#%28def._%28%28lib._racket%2Fmath..rkt%29._sqr%29%29" class="" style="margin:0px;padding:0px;text-decoration:none;color:rgb(0,119,170);font-size:1rem">sqr</a></span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(34,139,34);font-size:1rem"><span class="" style="margin:0px;padding:0px;white-space:nowrap">-2</span></span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(34,139,34);font-size:1rem">2</span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(132,60,36);font-size:1rem">#:label</span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(34,139,34);font-size:1rem">"y = x^2"</span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(132,60,36);font-size:1rem">)</span></td></tr><tr style="margin:0px;padding:0px;white-space:inherit"><td style="padding:0px;vertical-align:baseline;white-space:inherit"><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem">  </span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem">            </span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(132,60,36);font-size:1rem">(</span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:inherit;font-size:1rem"><a href="file:///Applications/Racket%20v6.1.0.8/doc/plot/renderer2d.html#%28def._%28%28lib._plot%2Fmain..rkt%29._function%29%29" class="" style="margin:0px;padding:0px;text-decoration:none;color:rgb(0,119,170);font-size:1rem">function</a></span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(132,60,36);font-size:1rem">(</span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:inherit;font-size:1rem"><a href="file:///Applications/Racket%20v6.1.0.8/doc/reference/lambda.html#%28form._%28%28lib._racket%2Fprivate%2Fbase..rkt%29._~ce~bb%29%29" class="" style="margin:0px;padding:0px;text-decoration:none;color:rgb(0,119,170);font-size:1rem">λ</a></span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(132,60,36);font-size:1rem">(</span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:inherit;font-size:1rem">x</span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(132,60,36);font-size:1rem">)</span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:inherit;font-size:1rem">x</span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(132,60,36);font-size:1rem">)</span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(132,60,36);font-size:1rem">#:color</span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(34,139,34);font-size:1rem">0</span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(132,60,36);font-size:1rem">#:style</span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(34,139,34);font-size:1rem">'</span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(34,139,34);font-size:1rem">dot</span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(132,60,36);font-size:1rem">#:label</span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(34,139,34);font-size:1rem">"y = x"</span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(132,60,36);font-size:1rem">)</span></td></tr><tr style="margin:0px;padding:0px;white-space:inherit"><td style="padding:0px;vertical-align:baseline;white-space:inherit"><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem">  </span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem">            </span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(132,60,36);font-size:1rem">(</span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:inherit;font-size:1rem"><a href="file:///Applications/Racket%20v6.1.0.8/doc/plot/renderer2d.html#%28def._%28%28lib._plot%2Fmain..rkt%29._inverse%29%29" class="" style="margin:0px;padding:0px;text-decoration:none;color:rgb(0,119,170);font-size:1rem">inverse</a></span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:inherit;font-size:1rem"><a href="file:///Applications/Racket%20v6.1.0.8/doc/reference/generic-numbers.html#%28def._%28%28lib._racket%2Fmath..rkt%29._sqr%29%29" class="" style="margin:0px;padding:0px;text-decoration:none;color:rgb(0,119,170);font-size:1rem">sqr</a></span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(34,139,34);font-size:1rem"><span class="" style="margin:0px;padding:0px;white-space:nowrap">-2</span></span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(34,139,34);font-size:1rem">2</span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(132,60,36);font-size:1rem">#:color</span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(34,139,34);font-size:1rem">3</span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(132,60,36);font-size:1rem">#:label</span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(34,139,34);font-size:1rem">"x = y^2"</span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(132,60,36);font-size:1rem">)</span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(132,60,36);font-size:1rem">)</span><span class="" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(132,60,36);font-size:1rem">)</span></td></tr></tbody></table><div><br></div><div>(Racket has just displaced LaTeX and Maxima for me)</div><div><br></div></div><div>Thanks & kind regards, </div><div><br></div><div>Stephen</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 8, 2014 at 2:24 AM, Robby Findler <span dir="ltr"><<a href="mailto:robby@eecs.northwestern.edu" target="_blank">robby@eecs.northwestern.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If you use plot-pict, it will do the right thing.<br>
<br>
And probably plots should implement the pict-convertible? api.<br>
<br>
Robby<br>
<div><div class="h5"><br>
<br>
On Tue, Oct 7, 2014 at 7:55 PM, Stephen De Gabrielle<br>
<<a href="mailto:spdegabrielle@gmail.com">spdegabrielle@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I'm learning some scribble, along with adding some images from plot.<br>
><br>
> This works nicely, but i'm trying to work out how to improve  the image<br>
> quality in the resulting PDF. (the html output is fine.)<br>
><br>
> is there any way to make my images sharper and clearer in PDF?<br>
><br>
> kind regards,<br>
><br>
> Stephen<br>
><br>
> ----<br>
><br>
> #lang scribble/base<br>
><br>
> @(require plot racket/math)<br>
><br>
> @title{Math 135 Assignment 1}<br>
> @section{First Test}<br>
><br>
> @(define ((deriv f) x)<br>
>   (/ (- (f x) (f (- x 0.001))) 0.001))<br>
> @(define (thrice f) (lambda (x) (f (f (f x)))))<br>
><br>
> @(define (x^2 x) (* x x))<br>
><br>
><br>
> @(parameterize ([plot-width    150]<br>
>                  [plot-height  150]<br>
>                  [plot-x-label  "xaxis"]<br>
>                  [plot-y-label  #f])<br>
>     (list (plot (function  x^2 (- pi) pi))))<br>
><br>
><br>
><br>
</div></div>> ____________________<br>
>   Racket Users list:<br>
>   <a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
><br>
</blockquote></div><br></div>