Ken & Mike on the MATLAB Desktop

April 27th, 2009

New figure capture methods for publish

In R2009a, we added two new figure capture methods to publish. The figure capture method determines the way in which publish grabs screen shots of your figures, in order to insert it into the final published document.

Here are descriptions of the new figure capture methods, along with exactly what they capture:

entireGUIWindow (the new default):
This figure capture method grabs the content of your figure window. For a plot, this will be the axis. For a GUIDE figure, this will include the title bar (note that the getFrame method would not include the title bar on the GUIDE figure). This will be the option you want to use most of the time.

entireFigureWindow
This figure capture method grabs the entire figure window (including the window chrome, e.g. the title bar) for all types of MATLAB figures. Use this option with prudence, as including the window chrome will detract from the content of your figure. This option is most appropriate if your creating a tutorial where you want to make it obvious that the graphic is a MATLAB figure.

To see descriptions and visuals of all the figure capture methods, check out the doc.

Leave a Reply

Wrap code fragments inside <pre> tags, like this:

<pre class="code">
a = magic(3);
sum(a)
</pre>

If you have a "<" character in your code, either follow it with a space or replace it with "&lt;" (including the semicolon).


Ken & Mike work on the MATLAB Desktop team.
  • Ori: The current folder shortcut used to be alt-y. Now it is alt-o. However, while in the editor window, alt-o opens...
  • Jose Miguel: Hi First of all, thanks for the post, it is really useful. I am trying to develop a Java GUI within...
  • Ken: Hi Siddharth, There isn’t currently any way to move the docking controls. Feel free to submit an...
  • Phil: I have the same problem as described above with UITable working fine in the Matlab environment but showing no...
  • Siddharth: Is there any way to move the position of the docking controls (or eliminate them through some...
  • Chris: Yes, it is a challenge to organize functions into categories, especially with so many functions. Ken and I...
  • Mike: Thanks for fielding that one, Yair.
  • Yair Altman: Jimmy - if you mean that you wish to include hyperlinks in your function’s help comment, that will...
  • OysterEngineer: Thanks for explaining the Function Browser. I fired it up and gave it a try. It appears that it has...
  • Jimmy: Is there any way to include hyperlinks in a comment, such as the standard help at the beginning of a function?

These postings are the author's and don't necessarily represent the opinions of The MathWorks.