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$
  • $\begingroup$ You cannot take the Log of the z axis since it includes non-positive values. $\endgroup$ – Bob Hanlon Nov 23 '16 at 15:36
  • $\begingroup$ Now I can. Edited accordingly. $\endgroup$ – Frank Breitling Nov 23 '16 at 17:01
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, privacy policy and cookie policy

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