<div dir="ltr"><div class="gmail_default" style="font-family:courier new,monospace">Hi Neil,<br><br>I have the 32-bit version installed on my Win7 machine at home, too. I was able to reproduce my own problem here as well.<br>
<br>When I run your example, the first plot looks like I'd expect. The second one does not have the circle. If I remove the \circ from the text-extent it doesn't change anything. If I remove \circ from the text-extent and the draw-text, then the circle appears. If I remove \circ from only draw-text (leaving it in text-extent), the circle also appears. I did take a screenshot if you want to see it. Otherwise, the numbers are <br>
<br>39.0<br>13.5<br>2.5<br>0.0<br>31.0<br>13.5<br>2.5<br>0.0<br></div><div class="gmail_default" style="font-family:courier new,monospace"><br>I then uninstalled the 32-bit version, downloaded and installed the x86_64 version, and reran your example. The same thing happened again. <br>
<br>Something maybe helpful: when the \circ is in the string for draw-text the text is NOT rotated 90 degrees counter-clockwise. When the \circ is removed, the text is drawn rotated 90 degrees counter-clockwise.<br><br>...Ah, I see Kieron has uploaded an image to show. That is exactly what I see.<br>
</div><div class="gmail_default" style="font-family:courier new,monospace"><br>Deren<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Apr 25, 2014 at 6: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 ⊥<div><div class="h5"><br>
<br>
On 04/25/2014 03:39 PM, Deren Dohoda wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
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></div></div>
____________________<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>