0
$\begingroup$

I have a function called $sol[x]$. I want to plot it in LogLog SCALE. I write:

LogLogPlot[sol[x], {x, 1, 500}, PlotRange -> Full]

but y-axis of the output in not in logarithmic scale. What should I do?

$\endgroup$
  • $\begingroup$ If the y-range is not very large, it might look like a linear scale, e.g., LogLogPlot[1 + x/100, {x, 1, 10}] $\endgroup$ – Carl Woll Feb 23 '18 at 5:29
1
$\begingroup$

I am just guessing because you haven't provided complete info.

sol[x_] := x;

LogLogPlot[sol[x], {x, 1, 500}]

enter image description here

Both axis are not in the scientific format ($10^{n}$). If thats what you are looking for then,

LogLogPlot[sol[x], {x, 1, 500}, 
 Ticks -> {Table[{10^n, 10^Defer[Evaluate[n]]}, {n, 0, 5}], 
   Table[{10^i, 10^Defer[Evaluate[i]]}, {n, 0, 5}]}]

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.