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.

Figure Propertiesclick. See uicontrol for information on how this property is set when you clickon a uicontrol object.ShareColors{on} | offShare slots in system colortable with like colors. This property affects the way<strong>MATLAB</strong> stores the figure colormap in the system color table. By default,<strong>MATLAB</strong> looks at colors already defined and uses those slots to assign pixelcolors. This leads to an efficient use of color resources (which are limited onsystems capable of displaying 256 or less colors) and extends the number offigure windows that can simultaneously display correct colors.However, in situations where you want to change the figure colormap quicklywithout causing <strong>MATLAB</strong> to re-render the displayed graphics objects, youshould disable color sharing (set ShareColors to off). In this case, <strong>MATLAB</strong>can swap one colormap for another without changing pixel color assignmentsbecause all the slots in the system color table used for the first colormap arereplaced with the corresponding color in the second colormap. (Note that thisapplies only in cases where both colormaps are the same length and where thecomputer hardware allows user modification of the system color table.)TagstringUser-specified object label. The Tag property provides a means to identifygraphics objects with a user-specified label. This is particularly useful whenconstructing interactive graphics programs that would otherwise need todefine object handles as global variables or pass them as arguments betweencallback routines.For example, suppose you want to direct all graphics output from an M-file toa particular figure, regardless of user actions that may have changed thecurrent figure. To do this, identify the figure with a Tag.figure('Tag','Plotting Figure')Then make that figure the current figure before drawing by searching for theTag with findobj.figure(findobj('Tag','Plotting Figure'))Typestring (read only)Object class. This property identifies the kind of graphics object. For figureobjects, Type is always the string 'figure'.2-187

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

Saved successfully!

Ooh no, something went wrong!