5
$\begingroup$

When adding a frame to the following plot, the negative values become above the x-axis:

Plot[Log[t], {t, 0, 1}, Frame -> True]

enter image description here

How can the natural plot be maintained while using a frame?

$\endgroup$
2
  • 1
    $\begingroup$ What does "the negative values become above" mean? What do you mean by "natural plot"? $\endgroup$ Feb 3 at 12:21
  • $\begingroup$ I meant the same without 'Frame->True' (negative values are below x-axis) $\endgroup$
    – S. Euler
    Feb 3 at 12:22

2 Answers 2

5
$\begingroup$

Do you mean this?

Plot[Log[t], {t, 0, 1},
 FrameTicks -> {{All, None}, {None, All}},
 Frame -> True]

enter image description here

$\endgroup$
8
$\begingroup$
ticksWithoutLabels = Charting`ScaledFrameTicks[{Identity, Identity}];

ticksWithLabels = Charting`ScaledTicks[{Identity, Identity}];

Plot[Log[t], {t, 0, 1}, Frame -> True, 
 FrameTicks -> 
  {{Automatic, Automatic}, {ticksWithoutLabels, ticksWithLabels}}]

enter image description here

$\endgroup$

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.