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.

Line PropertiesCreateFcnstringCallback routine executed during object creation. This property defines acallback routine that executes when <strong>MATLAB</strong> creates a line object. You mustdefine this property as a default value for lines. For example, the statement,set(0,'DefaultLineCreateFcn','set(gca,''LineStyleOrder'',''-.|--'')')defines a default value on the root level that sets the axes LineStyleOrderwhenever you create a line object. <strong>MATLAB</strong> executes this routine after settingall line properties. Setting this property on an existing line object has no effect.The handle of the object whose CreateFcn is being executed is accessible onlythrough the root CallbackObject property, which you can query using gcbo.DeleteFcnstringDelete line callback routine. A callback routine that executes when you deletethe line object (e.g., when you issue a delete command or clear the axes orfigure). <strong>MATLAB</strong> executes the routine before deleting the object’s properties sothese values are available to the callback routine.The handle of the object whose DeleteFcn is being executed is accessible onlythrough the root CallbackObject property, which you can query using gcbo.EraseMode{normal} | none | xor | backgroundErase mode. This property controls the technique <strong>MATLAB</strong> uses to draw anderase line objects. Alternative erase modes are useful for creating animatedsequences, where control of the way individual objects redraw is necessary toimprove performance and obtain the desired effect.• normal (the default) — Redraw the affected region of the display, performingthe three-dimensional analysis necessary to ensure that all objects arerendered correctly. This mode produces the most accurate picture, but is theslowest. The other modes are faster, but do not perform a complete redrawand are therefore less accurate.• none – Do not erase the line when it is moved or destroyed. While the objectis still visible on the screen after erasing with EraseMode none, you cannotprint it because <strong>MATLAB</strong> stores no information about its former location.• xor – Draw and erase the line by performing an exclusive OR (XOR) with thecolor of the screen beneath it. This mode does not damage the color of the2-279

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

Saved successfully!

Ooh no, something went wrong!