The following simple routine exhibits blinking when displaying the string text on the screen.
fg=figure('units','normalized');bgc=get(fg,'color');uh=uicontrol(fg,'style','text','units','normalized','position',[0.1 0.3 0.3 0.1], ... 'string','TEST','backgroundcolor',bgc);
When the figure is displayed, the background of the text field turns to lighter gray
and then changes to background gray color. Is there any way to eliminate the display of light gray so that the texts are displayed without the screen blinking?
Best Answer