I don't understand the sequence that uses an axis's
PositionPercent, Texts.MarginToAxis, and
Title.Distance to determine the displayed positions of the axis, its ticks & labels, and its title. I had expected the sequence to be
- fix the axis using PositionPercent,
- fix the ticks & labels by using MarginToAxis,
- fix the title by using Distance
, but that is not correct. For example, I can get the axis, ticks, and labels just where I want them, with the only remaining issue being that the title is a little too far away. If I now decrease
Distance, the title doesn't move, but the ticks and labels move out to be near the title. It seems that the master object here is the title, not the axis.
Can a user program obtain the position (in pixels or in
muPercent units) of an axis title? If that were possible, then a reasonable (but ugly) strategy might be to
- set MarginToAxis to taste
- set Distance and PositionPercent to 0,
- see where that left the title,
- set Distance to pull the ticks & labels into position, and finally
- reset PositionPercent (or MarginToAxis?) to get the axis close to the ticks & labels.
At least some of these maneuvers would presumably need to be redone whenever the chart is resized. Ugh.