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))


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:
> 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 
For more options, visit

Reply via email to