MATLAB: Am I unable to insert a line in a plot in MATLAB when setting the DefaultAxesUnits property of the root to something other than ‘normalized’

centimeterdefaultaxesunitsfigureinchesinsertlineMATLABnormalizedpixelsplotpoints

Why am I unable to insert a line in a plot in MATLAB when setting the DefaultAxesUnits property of the root to something other than 'normalized'?
I am using the following code:
figure
plot(1:10)
set(gcf,'defaultaxesunits','normalized')
After running this code, I click on the 'Insert Line' button in the figure toolbar. I can draw a line in the axes and I am able to see it. But, if I repeat the same code to set the DefaultAxesUnits property to anything other than 'normalized' (i.e inches,centimeter,points,pixels or characters) and draw the line by clicking the 'Insert Line' button, I cannot see the line in the axes.
However, if I use the FINDALL command
findall(gcf,'type','line')
I am able to see the handle to the line.
If the DefaultAxesUnits property is set to 'inches' and if I try to draw the line very close to the origin in the axes, I am able to see very small section of the line. With other property values, I cannot do even this.

Best Answer

This bug has been fixed in Release 14 Service Pack 2 (R14SP2). For previous releases, please read below for any possible workarounds:
This is a bug in MATLAB 6.5 (R13) when plotting with the DefaultAxesUnits property of the root set to something other than 'normalized'. Our development staff is currently investigating this issue.
The only known work around is to set the Units property of the current axes rather than setting the DefaultAxesUnits property of the root.
The following code demonstrates how to set the Units property for the axes:
set(gca,'units','inches');