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.
  • DP: Hi i have a problem with ezplot3, i want to plot more than i curve in the same graph but hold on command...
  • Ken: Hi Arsalan, Unfortunately there is no way to get the new Editor API in older versions of MATLAB. -Ken
  • Arsalan: Hi, I am very excited about the MATLAB API for editor because right now i am working on a project and i need...
  • Johannes: Since I started using matlab-emacs some days ago I never experienced Emacslink. But I experienced some...
  • Francisco J. Beron-Vera: Hi all, I have recently learned about ViEmu (http://www.vimemu.c om) which, for Vi/Vim...
  • OysterEngineer: When I first learned of the Publish feature in MatLab, I thought it might be useful to help to...
  • Ken: Hi Herve, I’m not quite sure what you mean by “stand-alone&# 8221; mode? -Ken
  • Herve: I wonder when the publish fonction will be supported in standalone mode.
  • Mike: Ravi, What you described should work as far I understand it. Please follow up with technical support. With a...
  • Mike: @Daniel, Thanks for that note.

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