4
$\begingroup$

It is a simple example using CustomTicks package:

<< CustomTicks`

Show[LogPlot[x^2, {x, 0, 10}], Ticks -> {Automatic, LogTicks}]

but we can see on the picture that the LogTicks on the vertical axis are not correct for x^2. How can I solve this problem?

Incorrect logticks on the vertical axis

$\endgroup$
1
  • 3
    $\begingroup$ The ticks are being processed twice, once by LogPlot and once by LogTicks. $\endgroup$ Feb 16, 2017 at 20:17

1 Answer 1

6
$\begingroup$

The easiest fix is do the Log yourself:

Show[Plot[Log10[x^2], {x, 0, 10}], Ticks -> {Automatic, LogTicks}]

enter image description here

Note that the documentation says that you can also use

SetOptions[LogTicks, LogPlot -> True];

but it doesn't seem to work straight-forwardly.

$\endgroup$
1
  • $\begingroup$ Thank you for the useful answer! $\endgroup$
    – student
    Mar 9, 2017 at 16:48

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.