[racket] Plot library: mirror axes?

From: J. Ian Johnson (ianj at ccs.neu.edu)
Date: Mon Sep 16 22:49:54 EDT 2013

Unfortunately, that grossly changed the axis' rendering. Instead of showing 10^1, 10^2, 10^3 and 10^4 it shows ..... 5000, 10000, 15000 (all scrunched together).
-Ian
----- Original Message -----
From: "Stephen Chang" <stchang at ccs.neu.edu>
To: "J. Ian Johnson" <ianj at ccs.neu.edu>
Cc: "users" <users at racket-lang.org>
Sent: Monday, September 16, 2013 10:36:35 PM GMT -05:00 US/Canada Eastern
Subject: Re: [racket] Plot library: mirror axes?

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

Posted on the users mailing list.