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.

Figure Propertieswindows until it becomes invisible, or is returned to WindowStyle normal, or isdeleted. At that time, focus reverts to the window that last had focus.Figures with WindowStyle modal and Visible off do not behave modally untilthey are made visible, so it is acceptable to hide a modal window instead ofdestroying it when you want to reuse it.You can change the WindowStyle of a figure at any time, including when thefigure is visible and contains children. However, on some systems this maycause the figure to flash or disappear and reappear, depending on thewindowing-system’s implementation of normal and modal windows. For bestvisual results, you should set WindowStyle at creation time or when the figureis invisible.Modal figures do not display uimenu children or built-in menus, but it is not anerror to create uimenus in a modal figure or to change WindowStyle to modalon a figure with uimenu children. The uimenu objects exist and their handlesare retained by the figure. If you reset the figure’s WindowStyle to normal, theuimenus are displayed.Use modal figures to create dialog boxes that force the user to respond withoutbeing able to interact with other windows. Typing Control C at the <strong>MATLAB</strong>prompt causes all figures with WindowStyle modal to revert to WindowStylenormal, allowing you to type at the command line.XDisplaydisplay identifier (UNIX only)Specify display for <strong>MATLAB</strong>. You can display figure windows on differentdisplays using the XDisplay property. For example, to display the currentfigure on a system called fred, use the command:set(gcf,'XDisplay','fred:0.0')XVisualvisual identifier (UNIX only)Select visual used by <strong>MATLAB</strong>. You can select the visual used by <strong>MATLAB</strong> bysetting the XVisual property to the desired visual ID. This can be useful if youwant to test your application on an 8-bit or grayscale visual. To see whatvisuals are avail on your system, use the UNIX xdpyinfo command. From<strong>MATLAB</strong>, type!xdpyinfo2-190

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

Saved successfully!

Ooh no, something went wrong!