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.

Lineseries <strong>Properties</strong><br />

2-1334<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.<br />

DisplayName string<br />

Label used by plot legends. The legend command and the figure’s active legend<br />

use the text you specify for this property as labels for any bar objects appearing<br />

in these legends.<br />

EraseMode {normal} | none | xor | background<br />

Erase mode. This property controls the technique MATLAB uses to draw and<br />

erase line objects. Alternative erase modes are useful for creating animated<br />

sequences, where control of the way individual objects are redrawn is<br />

necessary to improve performance and obtain the desired effect.<br />

normal (the default) — Redraw the affected region of the display, performing<br />

the three-dimensional analysis necessary to ensure that all objects are<br />

rendered correctly. This mode produces the most accurate picture, but is the<br />

slowest. The other modes are faster, but do not perform a complete redraw<br />

and are therefore less accurate.<br />

none — Do not erase the line when it is moved or destroyed. While the object<br />

is still visible on the screen after erasing with EraseMode none, you cannot<br />

print it because MATLAB stores no information about its former location.<br />

xor — Draw and erase the line by performing an exclusive OR (XOR) with<br />

the color of the screen beneath it. This mode does not damage the color of the<br />

objects beneath the line. However, the line’s color depends on the color of<br />

whatever is beneath it on the display.<br />

background — Erase the line by drawing it in the axes background Color, or<br />

the figure background Color if the axes Color is set to none. This damages<br />

objects that are behind the erased line, but lines are always properly colored.<br />

Printing with Nonnormal Erase Modes<br />

MATLAB always prints figures as if the EraseMode of all objects is normal. This<br />

means graphics objects created with EraseMode set to none, xor, or background<br />

can look different on screen than on paper. On screen, MATLAB may<br />

mathematically combine layers of colors (e.g., performing an XOR on a pixel<br />

color with that of the pixel behind it) and ignore three-dimensional sorting to

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

Saved successfully!

Ooh no, something went wrong!