Charting`ScaledTicks was a convenient way to organize Ticks or Frameticks in Mathematica without needing to define a tick-function. Basically most tick-related questions here were answered with this undocumented command. This command is not working anymore in Mathematica 13.
Here is an easy example how it was used:
ListPlot[{{1, 1}, {2, 2}}, PlotRange -> {{0, 2.2}, {0, 2.2}},
Frame -> True,
FrameTicks -> {{Charting`ScaledTicks["Linear"][0, 2.2, {5, 5}],
Charting`ScaledTicks["Linear"][0,
2.2, {5, 5}]}, {Charting`ScaledTicks["Linear"][0, 2.2, {5, 5}],
Charting`ScaledTicks["Linear"][0, 2.2, {5, 5}]}},
FrameTicksStyle -> {{Black,
Directive[Black, FontOpacity -> 0, FontSize -> 0]}, {Black,
Directive[Black, FontOpacity -> 0, FontSize -> 0]}}]
Now I want to define my own tick-function. In the documentation you can define the position, label and length of a certain tick with:
{{x,label,length,...}
Is there also a way to just differentiate between a standard major and a minor tick (like in Automatic), instead of using length? Or do you know the standard-size of a major and minor tick in Mathematica, because I can't find it anywhere.
?Charting`ScaledTicks
on the Cloud, which is running version 13+. The syntax may have changed, since it is an undocumented function after all. Your best bet to recover your lost functionality would be to clear theProtected
andReadProtected
attributes from it and then read its definitions to figure out a new syntax if necessary. Start fromClearAttributes[Charting`ScaledTicks, {Protected, ReadProtected}]; Definition[Charting`ScaledTicks]
. $\endgroup$Charting`ScaledTicks["Linear", {Identity, Identity}, "Standard"][0, 2.2, {5, 5}]
instead. $\endgroup$Charting
undocumented functions. $\endgroup$