The case of AxesLabel
is somewhat ambiguous as in some way it isits elements are explicitly displayed, therefore individual Dynamic
labels being converted into DynamicBox
expressions might be appropriate. However in
In version 10.1.0 under Windows using this hangs Mathematica:
This however works correctly:
ColorSlider @ Dynamic[x]
Graphics[Disk[],
Axes -> True,
AxesLabel -> {Dynamic[x]}
]
Adding RawBoxes
by itself doesn'tto a bare Dynamic
does not work right eitherwell:
This implies an explanation for Box conversion: in GraphicsBox
the value of AxesLabel
needs to be in Box form. By placing this conversion inside our force-fed Dynamic
we also get a working value:
To give values for both axes we need individual Box conversion:
ColorSlider @ Dynamic[x]
Graphics[Disk[],
Axes -> True,
AxesLabel -> RawBoxes @ Dynamic[ToBoxes /@ {x, Darker @ x}]
]
It is cleargood to see that individual Dynamic
labels are handled correctly, but AxesLabel -> Dynamic[x]
should not hang the Front End in my opinion so there is some complicationroom for improvement here but it seems to me that this could still be handled better by default.