5
$\begingroup$

I have a parametric plot and would like to display it double logarithmic with one axis reversed.

For example how can I get two log axes for this plot:

ParametricPlot[{Abs[Gamma[z]], z}, {z, 1, 5}, ScalingFunctions -> {"Log", "Reverse"}]
$\endgroup$
2
  • $\begingroup$ You cannot take the Log of the z axis since it includes non-positive values. $\endgroup$
    – Bob Hanlon
    Commented Nov 23, 2016 at 15:36
  • $\begingroup$ Now I can. Edited accordingly. $\endgroup$ Commented Nov 23, 2016 at 17:01

1 Answer 1

6
$\begingroup$

You can use your own pure function as a scaling function; you just have to provide an appropriate inverse:

ParametricPlot[
  {Abs[Gamma[z]], z}, {z, 1, 5},
  ScalingFunctions -> {"Log10", {(-Log10[#] &), (10^-# &)}},
  Axes -> False, Frame -> True
]

Mathematica graphics

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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