I have been playing with ScalingFunctions
in Mathematica 11.0. I wanted to produce a logarithmic scaled plot with the direction reversed. I have had success with accomplishing my goals, but I have no understanding of why it works.
I am able to reverse the axis and/or create a logarithmic axes with out a problem.
Plot[x, {x, 1, 3},
PlotRange -> {{1, 3}, {1, 3}},
ScalingFunctions -> "Reverse"
]
Plot[x, {x, 1, 3},
PlotRange -> {{1, 3}, {1, 3}},
ScalingFunctions -> "Log"
]
In the documentation it talks about using
as a scaling function and gives an example of
{-Log[#] &, Exp[-#] &}
I decided to try it.
Plot[x, {x, 1, 3},
PlotRange -> {{1, 3}, {1, 3}},
ScalingFunctions -> {None, {-Log[#] &, Exp[-#] &}}
]
It produced what I wanted and in one sense that makes this a success. However, I am completely confused by what is going on.
The question is why does supplying ScalingFunctions
with the negative of a the log and its inverse produce a logarithmic scaled plot with the direction reversed?