[racket] Plot library: mirror axes?

From: Neil Toronto (neil.toronto at gmail.com)
Date: Tue Sep 17 13:02:16 EDT 2013

That is evil and bad, and I'm sorry I made you do it. :p FWIW, plot uses 
exact numbers, so you can use anything in place of (/ 99 100); e.g. (- 1 
(expt 10 -10000)) should work for pretty much any plot.

Ian, if you have time, could you submit a bug report / change request?

Neil ⊥

On 09/16/2013 08:36 PM, Stephen Chang wrote:
> In the spirit of your "close enough" attempt, how about this?
>
> #lang racket
> (require plot)
>
> (parameterize ([plot-y-far-ticks (ticks-scale (plot-y-ticks)
> (linear-scale (/ 99 100)))])
>    (plot
>     (list (lines '((1 1) (2 2) (3 3) (4 4) (5 5))))))
>
> On Mon, Sep 16, 2013 at 10:16 PM, J. Ian Johnson <ianj at ccs.neu.edu> wrote:
>> I'm trying to show the same numbers for the near and far y-axis, just to make visual comparison easier for the left and right of the graph. The docs say that these get collapsed if they're the same, which is something I'd like to opt out of. Additionally, I tried to cheat by using (log-ticks #:number 10) on one side and (log-ticks #:number 9) on the other and hope they weren't too different, but nothing changed. I tried other numbers too, but to no avail.
>>
>> What can I do here? I tried to dive into the code base to do something about it, but got a bit lost.
>> Thanks,
>> -Ian
>> ____________________
>>    Racket Users list:
>>    http://lists.racket-lang.org/users
>
> ____________________
>    Racket Users list:
>    http://lists.racket-lang.org/users
>


Posted on the users mailing list.