Consider
Plot[Sin[x], {x, 0, 2 π}, Frame -> True,
FrameLabel -> {Style["x", FontSize -> Scaled[0.05]], Style["sin(x)", FontSize -> Scaled[0.05]]},
FrameTicksStyle -> Scaled[0.02]]
The label $\sin(x)$ is cropped from the left. Adding PlotRangePadding -> {0, .5}
as a brutal fix seems to work:
but it obviously alters the plot range as it is intended to do. This can't be circumvented with PlotRange
as it's overwriten.
How to prevent the cropping?
Answer
Add Framed
around the problematic piece. Update: It seems you can also use Pane
(see comments).
Framed
is not only for drawing frames. It is also for controlling the box that contains the expression. You can eliminate the border with FrameStyle -> None
. Other relevant options are ContentPadding
and FrameMargins
. Note that in the latter, negative values are allowed too, which will let you effectively control the box placement (move it closer to the graphics frame).
However, if your aim is to scale graphics proportionally, I recommend using Magnify
instead of making all units scaled.
Comments
Post a Comment