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