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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Axes PropertiesClipping{on} | offThis property has no effect on axes.Color{none} | ColorSpecColor of the axes back planes. Setting this property to none means the axes istransparent and the figure color shows through. A ColorSpec is athree-element RGB vector or one of <strong>MATLAB</strong>’s predefined names. Note thatwhile the default value is none, the matlabrc.m file may set the axes color toa specific color.ColorOrder m-by-3 matrix of RGB valuesColors to use for multiline plots. ColorOrder is an m-by-3 matrix of RGB valuesthat define the colors used by the plot and plot3 functions to color each lineplotted. If you do not specify a line color with plot and plot3, these functionscycle through the ColorOrder to obtain the color for each line plotted. To obtainthe current ColorOrder, which may be set during startup, get the propertyvalue:get(gca,'ColorOrder')Note that if the axes NextPlot property is set to replace (the default),high-level functions like plot reset the ColorOrder property beforedetermining the colors to use. If you want <strong>MATLAB</strong> to use a ColorOrder thatis different from the default, set NextPlot to replacedata. You can also specifyyour own default ColorOrder.CreateFcnstringCallback routine executed during object creation. This property defines acallback routine that executes when <strong>MATLAB</strong> creates an axes object. You mustdefine this property as a default value for axes. For example, the statement,set(0,'DefaultAxesCreateFcn','set(gca,''Color'',''b'')')defines a default value on the Root level that sets the current axes’ backgroundcolor to blue whenever you (or <strong>MATLAB</strong>) create an axes. <strong>MATLAB</strong> executesthis routine after setting all properties for the axes. Setting this property on anexisting axes object has no effect.The handle of the object whose CreateFcn is being executed is accessible onlythrough the Root CallbackObject property, which can be queried using gcbo.2-20

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

Saved successfully!

Ooh no, something went wrong!