<div dir="ltr">I can replicate the original problem (Racket 5.3.6 32-bit on Win7 64-bit).<div><br></div><div><div class="gmail_extra">The new plot has problems also - see attached.</div><div class="gmail_extra"><br></div><div class="gmail_extra">
Kieron.</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">
On Fri, Apr 25, 2014 at 4:39 PM, Neil Toronto <span dir="ltr"><<a href="mailto:neil.toronto@gmail.com" target="_blank">neil.toronto@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I can't replicate this problem on my machine, so I'll need more information. Can you run the following program and reply with what you see?<br>
<br>
<br>
#lang racket<br>
<br>
(require racket/draw plot)<br>
<br>
(plot (function sin #e1e-157 #e1e-156))<br>
<br>
(define bm (make-bitmap 400 400))<br>
(define dc (make-object bitmap-dc% bm))<br>
(send dc set-smoothing 'smoothed)<br>
(send dc set-scale 2 2)<br>
(send dc set-font (make-font #:size (plot-font-size)<br>
#:family (plot-font-family)<br>
#:size-in-pixels? #t))<br>
(send dc get-text-extent "X (⇑∘C)" #f #t 0)<br>
(send dc draw-text "X (⇑∘C)" 80 180 #t 0 0)<br>
(send dc get-text-extent "Y (∘C)" #f #t 0)<br>
(send dc draw-text "Y (∘C)" 10 120 #t 0 (/ pi 2))<br>
(send dc draw-ellipse 30 30 140 140)<br>
bm<br>
<br>
<br>
It should produce a simple plot with tick labels on both axes with the superscripted exponent "-157", a collection of numbers that looks something like this:<br>
<br>
110.0<br>
13.5<br>
3.0<br>
0.0<br>
34.0<br>
13.5<br>
3.0<br>
0.0<br>
<br>
and a bitmap with a circle and the X and Y axis labels you expect, with approximately the placement and orientation you expect them on a plot (though bigger).<br>
<br>
Neil ⊥<br>
<br>
On 04/25/2014 03:39 PM, Deren Dohoda wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Short story: put a \circ in the y-label and plotting fails?<br>
<br>
Racket 6.0 32-bit on 64-bit Windows 7. Using DrRacket. The plot frame is<br>
generated, the plot title and x-label appear, the tick marks on the axes<br>
appear, but the y-label doesn't appear and neither (points ...) nor<br>
(function ...) appear.<br>
<br>
Example code (hopefully the extra characters come through email correctly):<br>
<br>
#lang racket<br>
(require plot)<br>
<br>
(define (make-p title y-label)<br>
(plot (function (λ(x) x))<br>
#:x-min 0 #:x-max 50<br>
#:y-min 0 #:y-max 50<br>
#:x-label "X (⇑∘C)"<br>
#:y-label y-label<br>
#:title title))<br>
<br>
(define-values (works doesnt-work)<br>
(values (make-p "Works (⇓∘C)" "Y (C)")<br>
(make-p "Doesn't Work (⇓∘C)" "Y (∘C)")))<br>
<br>
works<br>
doesnt-work<br>
;;;;;;;;;;;;;;;;;;;;;<br>
<br>
<br>
It's not just arbitrary character substitutions, for instance all the<br>
\left|right|up|downarrow don't cause any problems, but<br>
\Down|Up|etc.arrow causes the same problem as \circ. I threw some in the<br>
title and x-label to show that they didn't cause any failures. I've<br>
attached an image of what appears in case it helps.<br>
<br>
Deren<br>
<br>
<br>
____________________<br>
Racket Users list:<br>
<a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/<u></u>users</a><br>
<br>
</blockquote>
<br>
____________________<br>
Racket Users list:<br>
<a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/<u></u>users</a><br>
</blockquote></div><br></div></div></div>