set background of plot to be colorspectrum matlab code example Example: plot background color matlab set (gca, 'Color' , 'k' )