0
$\begingroup$

In this simple example, the top of the capital letter on the Y-Axis is sliced off. How can that be avoided?

Labeled[Plot[-x^2 - 4, {x, 0, 5}, ImageSize -> 500, AxesOrigin -> {0, -1}], {"Top of T Sliced Off", "X-Axis"}, {Left, Top}, RotateLabel -> True]
$\endgroup$
6
  • $\begingroup$ I cannot reproduce this on Win 10, Mma 12. Everything is perfectly visible. $\endgroup$ Nov 12 '19 at 9:55
  • $\begingroup$ I am using 11.1.1.0 $\endgroup$
    – user120911
    Nov 12 '19 at 9:56
  • 2
    $\begingroup$ try Pane["Top of T Sliced Off"] instead of "Top of T Sliced Off"? $\endgroup$
    – kglr
    Nov 12 '19 at 9:58
  • $\begingroup$ In this case instead of Labeled I would use the option Frame->True, or PlotTheme->"Scientific". That should work in v.11. $\endgroup$ Nov 12 '19 at 10:04
  • 1
    $\begingroup$ @user120911 Please have a look at the answer. $\endgroup$ Nov 12 '19 at 11:14
1
$\begingroup$

This repeats your image with the option Frame->True:

    Plot[-x^2 - 4, {x, 0, 5}, ImageSize -> 500, AxesOrigin -> {0, 0}, 
 Frame -> True, 
 FrameLabel -> {{Style["Top of T Sliced Off", 16, Black], 
    None}, {None, Style["X-Axis", 16, Black]}}, AxesOrigin -> {0, 0}, 
 FrameStyle -> {{Black, White}, {White, Black}}, 
 FrameTicks -> {{Automatic, None}, {None, Range[5]}}]

with the following effect:

enter image description here

Have fun!

$\endgroup$
1
  • 1
    $\begingroup$ Instead of "painting" with FrameStyle you also can turn on/off sides: Frame -> {{True, False}, {False, True}}. $\endgroup$
    – Alx
    Nov 12 '19 at 12:53

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.