<div dir="ltr">I think it would make sense for plot to allow picts as valid #:label arguments and hopefully not too much of a pain to add. (If it is painful for some reason, I'm happy to help.) Then you'd have to make up your own pict.<div><br></div><div>Oh! Or in this case you could use unicode:</div><div><br></div><div> y = x²<br><div><br></div><div>Robby</div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 8, 2014 at 7:18 AM, Stephen De Gabrielle <span dir="ltr"><<a href="mailto:spdegabrielle@gmail.com" target="_blank">spdegabrielle@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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-wrap">"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" target="_blank">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" style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:pre-wrap;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 style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(132,60,36);font-size:1rem">(</span><span style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:inherit;font-size:1rem"><a style="margin:0px;padding:0px;text-decoration:none;color:rgb(0,119,170);font-size:1rem">plot</a></span><span style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(132,60,36);font-size:1rem">(</span><span style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:inherit;font-size:1rem"><a style="margin:0px;padding:0px;text-decoration:none;color:rgb(0,119,170);font-size:1rem">list</a></span><span style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(132,60,36);font-size:1rem">(</span><span style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:inherit;font-size:1rem"><a style="margin:0px;padding:0px;text-decoration:none;color:rgb(0,119,170);font-size:1rem">axes</a></span><span 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 style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(132,60,36);font-size:1rem">(</span><span style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:inherit;font-size:1rem"><a style="margin:0px;padding:0px;text-decoration:none;color:rgb(0,119,170);font-size:1rem">function</a></span><span style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:inherit;font-size:1rem"><a style="margin:0px;padding:0px;text-decoration:none;color:rgb(0,119,170);font-size:1rem">sqr</a></span><span style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(34,139,34);font-size:1rem"><span style="margin:0px;padding:0px;white-space:nowrap">-2</span></span><span style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span 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 style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span 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 style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span 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 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 style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(132,60,36);font-size:1rem">(</span><span style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:inherit;font-size:1rem"><a style="margin:0px;padding:0px;text-decoration:none;color:rgb(0,119,170);font-size:1rem">function</a></span><span style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(132,60,36);font-size:1rem">(</span><span style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:inherit;font-size:1rem"><a style="margin:0px;padding:0px;text-decoration:none;color:rgb(0,119,170);font-size:1rem">λ</a></span><span style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(132,60,36);font-size:1rem">(</span><span style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:inherit;font-size:1rem">x</span><span style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(132,60,36);font-size:1rem">)</span><span style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:inherit;font-size:1rem">x</span><span style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(132,60,36);font-size:1rem">)</span><span style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span 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 style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span 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 style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span 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 style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(34,139,34);font-size:1rem">'</span><span 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 style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span 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 style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span 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 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 style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(132,60,36);font-size:1rem">(</span><span style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:inherit;font-size:1rem"><a style="margin:0px;padding:0px;text-decoration:none;color:rgb(0,119,170);font-size:1rem">inverse</a></span><span style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:inherit;font-size:1rem"><a style="margin:0px;padding:0px;text-decoration:none;color:rgb(0,119,170);font-size:1rem">sqr</a></span><span style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(34,139,34);font-size:1rem"><span style="margin:0px;padding:0px;white-space:nowrap">-2</span></span><span style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span 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 style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span 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 style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span 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 style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span 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 style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;font-size:1rem"> </span><span 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 style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(132,60,36);font-size:1rem">)</span><span style="margin:0px;padding:0px;font-family:'Source Code Pro',monospace;white-space:inherit;color:rgb(132,60,36);font-size:1rem">)</span><span 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><span class="HOEnZb"><font color="#888888"><div><br></div><div>Stephen</div><div><br></div><div><br></div></font></span></div><div class="gmail_extra"><br><div class="gmail_quote"><span class="">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></span><div><div class="h5"><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><br>
<br>
On Tue, Oct 7, 2014 at 7:55 PM, Stephen De Gabrielle<br>
<<a href="mailto:spdegabrielle@gmail.com" target="_blank">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></div></div><br></div>
</blockquote></div><br></div>