23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

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.

colordef<br />

2colordef<br />

Purpose Sets default property values to display different color schemes<br />

Syntax colordef white<br />

colordef black<br />

colordef none<br />

colordef(fig,color_option)<br />

h = colordef('new',color_option)<br />

Description colordef enables you to select either a white or black background for graphics<br />

display. It sets axis lines and labels to show up against the background color.<br />

2-284<br />

colordef white sets the axis background color to white, the axis lines and<br />

labels to black, and the figure background color to light gray.<br />

colordef black sets the axis background color to black, the axis lines and<br />

labels to white, and the figure background color to dark gray.<br />

colordef none sets the figure coloring to that used by <strong>MATLAB</strong> Version 4<br />

(essentially a black background).<br />

colordef(fig,color_option) sets the color scheme of the figure identified by<br />

the handle fig to the color option 'white', 'black', or 'none'.<br />

h = colordef('new',color_option) returns the handle to a new figure<br />

created with the specified color options (i.e., 'white', 'black', or 'none').<br />

Remarks colordef affects only subsequently drawn figures, not those currently on the<br />

display. This is because colordef works by setting default property values (on<br />

the root or figure level). You can list the currently set default values on the root<br />

level with the statement:<br />

get(0,'defaults')<br />

You can remove all default values using the reset command:<br />

reset(0)<br />

See Also whitebg<br />

See the get and reset references pages for more information.

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

Saved successfully!

Ooh no, something went wrong!