It doesn't seem to work when the figure style is docked - any ideas why not?
To reproduce the behavior, try the following which doesn't work:
But if you go back to set(0,'DefaultFigureWindowStyle','normal'); then it works just fine.
24 May 2014
Rotate XTickLabel to better accommodate long labels and text labels.