matlab graph background color code example Example 1: figure bachground matlab color set(gcf,'color','w'); Example 2: plot background color matlab set (gca, 'Color' , 'k' )