change color of plot in matlab code example Example: plot background color matlab set (gca, 'Color' , 'k' )