7
$\begingroup$

I want to modify the question in Flipping axis on a plot. How to flip y-axes on a LogPlot? In contrast to Plot, LogPlot does not allow for the ScalingFunctions option so that the first solution proposed in Flipping axis on a plot does not work.

$\endgroup$
10
$\begingroup$

You can use a custom ScalingFunctions option for Plot instead. For example, here is a log plot:

LogPlot[Abs[Gamma[z]], {z, -5, 5}]

enter image description here

To reverse the y-axis use a custom ScalingFunctions option to Plot:

Plot[Abs[Gamma[z]], {z, -5, 5}, ScalingFunctions -> {Minus @* Log, Exp @* Minus}]

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.