12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ColorSpecExamplesTo change the background color of a figure to green, specify the color with ashort name, a long name, or an RGB triple. These statements generateequivalent results:whitebg('g')whitebg('green')whitebg([0 1 0]);You can use ColorSpec anywhere you need to define a color. For example, thisstatement changes the figure background color to pink:set(gcf,'Color',[1,0.4,0.6])See Alsobar, bar3, colordef, colormap, fill, fill3, whitebg2-90

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!