[racket] plot: HOLY MOLEY!

From: Marijn (hkBst at gentoo.org)
Date: Tue Nov 22 08:33:45 EST 2011

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 21-11-11 18:52, Neil Toronto wrote:
> On 11/21/2011 04:36 AM, Marijn wrote:
>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
>> 
>> On 02-11-11 14:55, Laurent wrote:
>>>> 
>>>> 
>>>> Which is just absolutely amazing. But then, just on a total 
>>>> whim, I used the mouse to... grab and turn it ?!??   JAW
>>>> DROPS OPEN HERE.
>>>> 
>>> 
>>> Wow, that is cool!
>>> 
>>> For those who want to try that right away, here is a snippet
>>> taken from the docs:
>>> 
>>> #lang racket (require plot) (plot3d (list (surface3d (λ (x y)
>>> (+ (sqr x) (sqr y))) -1 1 -1 1 #:label "z = x^2 + y^2")
>>> (surface3d (λ (x y) (- (+ (sqr x) (sqr y)))) -1 1 -1 1 #:color
>>> 4 #:line-color 4 #:label "z = -x^2 - y^2")))
>>> 
>>> 
>>> (actually that's a seven-liner ;) )
>>> 
>>> Laurent
>> 
>> I just tried this fragment on my current git checkout and got:
>> 
>> inexact->exact: no exact representation for +nan.0
>> 
>> this is on a x86-64 GNU/Linux box
> 
> Is this on stable or master?

That would be master.

> On master, I can't replicate that error on my own x86-64 GNU/Linux
> box. I just pulled and rebuilt to make sure I had everyone else's
> latest.
> 
> I've had my local repo in a state that would have generated that
> error. But I always run my tests before pushing commits, and
> there's nothing special about that plot that means I wouldn't have
> caught that error. So... I have no idea. Pull the latest and try
> again?

I just did and it's still happening. Also clicking check syntax
freezes DrRacket. ``Check Syntax: coloring expression'' is shown below.

> If it keeps happening, we'll try to get a stack trace or
> something.

Right, shoulda thought of that myself. Here you go:

$ racket racketzooi/test-plot
inexact->exact: no exact representation for +nan.0

 === context ===
/usr/lib64/racket/collects/plot/common/draw.rkt:65:0: real->color-byte
/usr/lib64/racket/collects/plot/common/plot-device.rkt:146:4: set-pen
method in plot-device%
/usr/lib64/racket/collects/plot/plot3d/plot-area.rkt:621:4: draw-polygon
/usr/lib64/racket/collects/plot/plot3d/plot-area.rkt:617:6: for-loop
/usr/lib64/racket/collects/plot/plot3d/plot-area.rkt:719:4:
end-renderers method in 3d-plot-area%
/usr/lib64/racket/collects/plot/plot3d/plot.rkt:199:10
/usr/lib64/racket/collects/plot/common/draw.rkt:558:0:
draw-bitmap/supersampling
/usr/lib64/racket/collects/plot/plot3d/snip.rkt:28:2
/usr/lib64/racket/collects/racket/private/class-internal.rkt:3627:0:
continue-make-object
/usr/lib64/racket/collects/racket/private/class-internal.rkt:3549:2:
make-object
/home/marijn/racketzooi/test-plot: [running body]

Marijn
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk7LpLkACgkQp/VmCx0OL2xvcgCaAgkDbJflCTQ7B40gx6zUISCp
hogAoMXyru2qtxdjLBQeQt55fJOeVmFk
=4pLk
-----END PGP SIGNATURE-----


Posted on the users mailing list.