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$
  • 3
    $\begingroup$ The ticks are being processed twice, once by LogPlot and once by LogTicks. $\endgroup$ – Brett Champion Feb 16 '17 at 20:17
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$
  • $\begingroup$ Thank you for the useful answer! $\endgroup$ – István Szanyi Mar 9 '17 at 16:48

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.