Getting a figure handle in the report class

16 views
Skip to first unread message

aor...@nes.ru

unread,
Nov 20, 2013, 9:27:44 AM11/20/13
to iris-t...@googlegroups.com
Hello, guys!

When creating a figure using the report class, is it possible to get a figure handle? I would like the figure to be exported to formats other than pdf.

Best,
Andrey O.

Jaromir Benes

unread,
Nov 20, 2013, 9:46:47 AM11/20/13
to aor...@nes.ru, the-iris-toolbox [discussion forum]
Hi Andrey

Currently, the figure handles are not returned from any of the report functions. Please submit a feature request through the Issues tab on the main website.

In the meantime, you can you the following as a workaround:

1. When opening a new report, set the option 'close=' false (otherwise all figure windows will be automatically closed upon completion of the report), and close all existing figure windows

close all;
x = report.new('Report Title Bla Bla','close=',false);

Note the first input argument must be always the title of the report.

2. Create and publish the report the usual way (the figure windows are actually created only at the time of publishing the report object). You will end up having all your figure windows open and available for whatever you wish to do.

3. To get a vector of all open figure handles, use the following command

AllMyFigures = get(0,'children');



Hope this will help you.

Best,
Jaromir



--
You received this message because you are subscribed to the Google Groups "iris-toolbox-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iris-toolbox...@googlegroups.com.
To post to this group, send email to iris-t...@googlegroups.com.
Visit this group at http://groups.google.com/group/iris-toolbox.
For more options, visit https://groups.google.com/groups/opt_out.

aor...@nes.ru

unread,
Nov 20, 2013, 10:22:49 AM11/20/13
to iris-t...@googlegroups.com
Thank you, Benes!
Reply all
Reply to author
Forward
0 new messages