It looks like this is a bug to me. Based on david's comment and Michael's answer, we see:
TracePrint[
ToBoxes @ Graphics[
AxisObject[
Line[{{0, 0}, {10, 10}}],
{0, 10},
TickPositions -> {{0, 10, 2}, {1, 9, 2}},
TickLabels -> {All, All}
]
],
_System`Dump`formatTickLabelSet,
TraceInternal -> True
]
System`Dump`formatTickLabelSet[All,StandardForm]
System`Dump`formatTickLabelSet[All,StandardForm]
GraphicsBox[
AxisBox[LineBox[{{0, 0}, {10, 10}}], {0, 10},
TickLabels -> {Automatic, Automatic},
TickPositions -> {{0, 10, 2}, {1, 9, 2}}]]
As Michael says, note that the TickLabels
option has been changed from {All, All}
to {Automatic, Automatic}
.
Now, the DownValues
for System`Dump`formatTickLabelSet
are:
Block[{Internal`$ContextMarks = False},
Print @ Column @ DownValues @ System`Dump`formatTickLabelSet
]
HoldPattern[formatTickLabelSet[Automatic,fmt_]]:>Automatic
HoldPattern[formatTickLabelSet[None|False,fmt_]]:>None
HoldPattern[formatTickLabelSet[All|True,fmt_]]:>Automatic
HoldPattern[formatTickLabelSet[ticklabels_List,fmt_]]:>(LabelToBoxes[#1,fmt,Automatic]&)/@ticklabels
Notice that All
gets sent to Automatic
. This looks like a bug to me. One possibility is to do:
System`Dump`formatTickLabelSet[All, _] := All
Then:
ToBoxes @ Graphics[
AxisObject[
Line[{{0, 0}, {10, 10}}],
{0, 10},
TickPositions -> {{0, 10, 2}, {1, 9, 2}},
TickLabels -> {All, All}
]
]
GraphicsBox[
AxisBox[LineBox[{{0, 0}, {10, 10}}], {0, 10}, TickLabels -> {All, All},
TickPositions -> {{0, 10, 2}, {1, 9, 2}}]]
And this renders correctly:
RawBoxes @ %
