Is there a contract we could add somewhere?

Robby

On Fri, Oct 14, 2016 at 6:31 PM, Alex Harsanyi <alexharsa...@gmail.com> wrote:
> Your tick format function returns less labels than the number of items in the 
> pre-ticks.  It should return one label for each pre-tick object (I just 
> printed out the lengths from the function to find this out.)
>
> To fix this, I replaced the format function with
>
>              (for/list (((t idx) (in-indexed pre-ticks)))
>                (list-ref string-list idx))
>
> Alex.
>
> On Friday, October 14, 2016 at 5:28:08 PM UTC+8, Laurent Orseau wrote:
>> Hi all,
>>
>>
>> I'm trying to write a `string-ticks` function to have arbitrary strings on 
>> the (y) axis.
>> It mostly works, but as soon as I try to zoom by selecting a rectangle *that 
>> touches upper left corner of the plot frame* DrRacket's interaction window 
>> goes crazy and I have to restart it.
>>
>>
>> Here's the (faulty) 
>> code:https://gist.github.com/Metaxal/e4ac303d442cbf9fb7f3edc21d8a9019
>>
>>
>>
>> Anyone has an idea about what goes wrong here?
>>
>>
>> Thanks,
>> Laurent
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to