I need to do a LogLogPlot as follow.

Consider the function $m(x) = x^4$. I want to plot $m(x)$ in LogLogScale adding furthermore a vertical axis on the right which shows the value of $m(x)^2$ for any given point $(x,m(x))$ in the plane.

I want to set Frame-> True and then I thought to use FrameTicks, but I don't know what function should I give to FrameTicks.

  • 1
    $\begingroup$ Create two different plots (one for $m(x)$, another for $m(x)^2$ but with 0 opacity) and combine different axes as explained here: mathematica.stackexchange.com/a/629/35091 $\endgroup$ Sep 25, 2017 at 8:25
  • $\begingroup$ related: 94726, 86253 $\endgroup$
    – yohbs
    Sep 25, 2017 at 13:11
  • $\begingroup$ I believe he wants a single plot with a second nonlinear axis. This may be a dup but I think not of the ones @yohbs has linked. $\endgroup$
    – george2079
    Sep 25, 2017 at 20:48

1 Answer 1


is this what you want?

LogLogPlot[ x^2 , {x, .01, 1000}, Frame -> True, 
 FrameTicks -> {{Automatic, 
    Table[{10^i, 10.^(2 i)}, {i, -4, 6}]}, {Automatic, None}}]

enter image description here


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