Oliver, you are possibly correct. I may have made the change in an earlier version to let my cygwin install work with it (and then forgotten about it). Thanks for incorporating the change. That will make it work well with cygwin.
This is a brilliant contribution. Thank you!
I have found a bug with reproducing textbox annotations. The left-hand edge is not reproduced. A simple example is:
annotation('textbox',[0.2 0.3 0.6 0.4],'String','test')