Stage 1 If the range of the axis is fully negative, draw it mapping numbers to position as -log(-x)
.
Stage 2 If the range contains numbers of both signs:
-C-log(-x)
and positives as log(x)
. C
so that the negative part is positioned to the left of the positive one with a small gap (∼¹⁄₁₅ of the total width).Thanks!
Forgot a couple of points:
I am not sure I understand correctly.
A sketched example might help.
Would this be different from what you do already by defining a nonlinear axis?
Thanks! Your picture would be OK with
OK. Here is a more polished version of the same script using a nonlinear x axis rather than y axis.
Last edit: Ethan Merritt 2024-06-28
Sorry: I see now where you are confused by what I wrote!
In your picture, the log scale on the horizontal axis makes perfect sense to the right of 2. Likewise to the left of ‒2. However, it is ‘broken’ between ‒2 and 2. “Make this part the gray area!”
In other words: make the gray strip vertical going somewhere in between of -2 and 2. Does it make more sense now?