[racket-dev] Plot testing and feedback

From: Neil Toronto (neil.toronto at gmail.com)
Date: Fri Aug 12 22:41:21 EDT 2011

Can I get a racket/gui expert's help on Jay's machine's output? There 
are two issues:

1. I have it render text with an 8 point font. On Jay's Mac, it's too 
small to be 8 point. Either there's some font scaling or it's 
erroneously choosing an 8 *pixel* font. How can we tell?

2. The Mac's get-char-width is returning something apparently too big - 
especially for the tiny font size - which makes all of Jay's plots 
scrunch up to make room for the Y axis labels. Is this a bug?

I don't know how to work around #1.

For #2, I think I can use get-text-extent with a representative tick 
label string like "0000000.0".

Neil T

On 08/12/2011 07:18 PM, Jay McCarthy wrote:
> OS X 10.7
> Racket v5.1.2.3.
> http://faculty.cs.byu.edu/~jay/tmp/201108122018-osx.zip
> On Fri, Aug 12, 2011 at 6:33 PM, Neil Toronto<neil.toronto at gmail.com>  wrote:
>> I've pushed the latest plot2d and plot3d to my github account. I want to
>> know whether there are any critical differences in output or execution time
>> among platforms. There shouldn't be any, but it's possible.
>> Can I get a few volunteers, at least one on Windows and one on Mac, to clone
>> it and run the test plots?
>> First, do
>>     git clone https://github.com/ntoronto/plt-stuff.git
>> Then do each of
>>     drracket plt-stuff/plot/tests/plot2d-tests.rkt
>>     drracket plt-stuff/plot/tests/plot3d-tests.rkt
>> After running each, copy the entire REPL output (it will contain timing info
>> and image snips), paste it into a new .rkt file, and save it in the current
>> directory.
>> The tests will generate some files (.png, .jpg, .pdf, .svg, etc.) in the
>> current directory. Zip those and the new .rkt files together, and email them
>> to me. Write in the email which OS you're running.
>> Thanks!
>> Neil
>> _________________________________________________
>>   For list-related administrative tasks:
>>   http://lists.racket-lang.org/listinfo/dev

Posted on the dev mailing list.