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.

colordefPurpose2colordefSets default property values to display different color schemesSyntaxDescriptioncolordef whitecolordef blackcolordef nonecolordef(fig,color_option)h = colordef('new',color_option)colordef enables you to select either a white or black background for graphicsdisplay. It sets axis lines and labels to show up against the background color.colordef white sets the axis background color to white, the axis lines andlabels to black, and the figure background color to light gray.colordef black sets the axis background color to black, the axis lines andlabels to white, and the figure background color to dark gray.colordef none sets the figure coloring to that used by <strong>MATLAB</strong> Version 4(essentially a black background).colordef(fig,color_option) sets the color scheme of the figure identified bythe handle fig to the color option 'white', 'black', or 'none'.h = colordef('new',color_option) returns the handle to a new figurecreated with the specified color options (i.e., 'white', 'black', or 'none').Remarkscolordef affects only subsequently drawn figures, not those currently on thedisplay. This is because colordef works by setting default property values (onthe root or figure level). You can list the currently set default values on the rootlevel with the statement:get(0,'defaults')You can remove all default values using the reset command:reset(0)See the get and reset references pages for more information.See Alsowhitebg2-84

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

Saved successfully!

Ooh no, something went wrong!