28.12.2012 Views

Figure Properties - SERC

Figure Properties - SERC

Figure Properties - SERC

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.

Light <strong>Properties</strong><br />

2-1310<br />

ButtonDownFcn string<br />

This property is not useful on lights.<br />

Children handles<br />

The empty matrix; light objects have no children.<br />

Clipping on | off<br />

Clipping has no effect on light objects.<br />

Color ColorSpec<br />

Color of light. This property defines the color of the light emanating from the<br />

light object. Define it as a three-element RGB vector or one of the MATLAB<br />

predefined names. See the ColorSpec reference page for more information.<br />

CreateFcn string or function handle<br />

Callback routine executed during object creation. This property defines a<br />

callback routine that executes when MATLAB creates a light object. You must<br />

define this property as a default value for lights or in a call to the light<br />

function to create a new light object. For example, the statement<br />

set(0,'DefaultLightCreateFcn','set(gcf,''Colormap'',hsv)')<br />

sets the current figure colormap to hsv whenever you create a light object.<br />

MATLAB executes this routine after setting all light properties. Setting this<br />

property on an existing light object has no effect.<br />

The handle of the object whose CreateFcn is being executed is accessible only<br />

through the root CallbackObject property, which you can query using gcbo.<br />

See Function Handle Callbacks for information on how to use function handles<br />

to define the callback function.<br />

DeleteFcn string or function handle<br />

Delete light callback routine. A callback routine that executes when you delete<br />

the light object (i.e., when you issue a delete command or clear the axes or<br />

figure containing the light). MATLAB executes the routine before destroying<br />

the object’s properties so these values are available to the callback routine.<br />

The handle of the object whose DeleteFcn is being executed is accessible only<br />

through the root CallbackObject property, which you can query using gcbo.<br />

See Function Handle Callbacks for information on how to use function handles<br />

to define the callback function.

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

Saved successfully!

Ooh no, something went wrong!