Motivation:
I'm having issues with controlling the spacing between tick labels and the edge of the axis/frame. While there are a wide variety of methods out there, they're rather complicated and would present issues when using the Charting
functionality. I'm hoping to find something as simple as the Charting`ScaledTicks
functions shown below, that works with their application.
Graphics[
{Thickness[0.003], Line[{{0.10, 14.0}, {0.50, 15.0}}]},
PlotRange -> {{0.2, 0.4}, {14., 15.}},
AspectRatio -> 1/GoldenRatio,
ImageSize -> 800,
Frame -> True,
LabelStyle -> Directive[Bold, Black, 28, FontFamily -> "Times"],
FrameStyle -> Thick,
FrameTicksStyle ->
{
Directive[Thick, Bold, Black, 28, FontFamily -> "Times"],
Directive[Thick, Bold, Black, 28, FontFamily -> "Times"]
},
PlotRangePadding -> None,
PlotRangeClipping -> True,
FrameTicks ->
{
{Charting`ScaledTicks["Linear",
TicksLength -> {0.02, 0.01}][#1, #2, {5, 5}] &,
None}, {Charting`ScaledTicks["Linear",
TicksLength -> {0.02, 0.01}][#1, #2, {5, 5}] &, None}
}
]
Produces this:
Problem:
Notice how the labels for the ticks are so close together in the lower-left portion of the frame. There must be some method to simply increase the padding on all sides of the frame/plot area, such that one can easily control the spacing the same as one can control the ScaledTicks
, but I cannot determine such a method.
How can the spacing between ticks labels and the plotted region (frame/axis) be controlled in a simple manner?
I would think a method that can continue to use the Charting
functionality would be the most ideal in this situation. Thanks to all who consider a solution to this!