0
$\begingroup$

Consider the following code

ListLinePlot[RandomReal[{0, 1}, 1000], AspectRatio -> 1/6,   Frame -> True, ImageSize -> 800, 
PlotRangePadding -> 0,   FrameTicks -> {{tickFunc, None}, {tickFunc, None}}]

where tickFunc is a customized ticks function, given by

tickFunc = MapAt[Reverse, {All, 3}]@*Charting`ScaledTicks[{Identity, Identity}, "TicksLength" -> {.018, .008}];

The plot looks like

enter image description here

The ticks in the x-axis and their labels slightly overlap. Is there any way to adjust my code and fix this? I am aware of TickLabelPositioning, but I am unsure whether this can be used within Frame. I am using Mathematica 13.2.0 on Windows 11.

$\endgroup$
5
  • 2
    $\begingroup$ On Mathematica 13.3.0.0 Windows 10 the x-axis ticks look fine: no overlap with major tick marks. $\endgroup$
    – JimB
    Commented Aug 8, 2023 at 22:03
  • $\begingroup$ Same here. No issues on 13.3.0. with macOSX 13.5 $\endgroup$
    – ydd
    Commented Aug 8, 2023 at 22:24
  • $\begingroup$ @JimB Interesting, I will update Mathematica and see. I was using Mathematica 13.2.0, for no particular reason. $\endgroup$
    – sam wolfe
    Commented Aug 9, 2023 at 11:46
  • 1
    $\begingroup$ In 13.3.0 seems to work just fine indeed, I edited the question to specify this issue was found in Mathematica 13.2.0. $\endgroup$
    – sam wolfe
    Commented Aug 10, 2023 at 11:17
  • $\begingroup$ For me Mma 13.2 Win 10 it works without overlapping. $\endgroup$ Commented Aug 10, 2023 at 13:25

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.