I am making a ListContourPlot but want the y-axis in the log scale. I almost got everything from the thread How to do the log scale plot for ListContourPlot. But there both the axes are put to Log scale. In particular, I am unable to understand the function of the lines:

ticks = FrameTicks /. AbsoluteOptions[pdata, FrameTicks];
logticks = Apply[If[#1 == 0, {#1, , ##3}, {Log[10, #1], ##2}] &, ticks, {2}];

Can someone please enlighten me?

  • $\begingroup$ Does your version of Mathematica have ScalingFunctions? $\endgroup$
    – J. M.'s torpor
    Aug 10 '17 at 9:14
  • $\begingroup$ @J.M. Yes it does. $\endgroup$
    – siddhartha
    Aug 10 '17 at 9:56

Your Answer

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

Browse other questions tagged or ask your own question.