MATLAB: Do the text boxes created by the CLABEL function not maintain their background color in MATLAB 7.0.1 (R14SP1)

backgroundclabelcolorcompatibilitycontourfilllabel;MATLABtext;v6

I am using the CLABEL function to add labels to a contour plot. I then use the SET function to set the background color of the labels, as shown in the code below:
Z = peaks;
[C,h] = contour(interp2(Z,4));
text_handle = clabel(C,h);
set(text_handle,'BackgroundColor',[1 1 .6],'Edgecolor',[.7 .7 .7])
When I save this figure, either from the File menu or by using the SAVE function, and reopen it, the background color reverts to the default.

Best Answer

This bug has been fixed in Release 2006a (R2006a). For previous product releases, read below for any possible workarounds:
We have verified that there is a bug in MATLAB 7.0.1 (R14SP1) when using the CLABEL function. To work around this issue, use the 'v6' option with the CONTOUR command, as in the following example:
Z = peaks;
[C,h] = contour('v6',interp2(Z,4));
text_handle = clabel(C,h);
set(text_handle,'BackgroundColor',[1 1 .6],'Edgecolor',[.7 .7 .7])