<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Do you dock figure windows? What does your desktop look like?</title>
	<link>http://blogs.mathworks.com/desktop/2007/05/18/do-you-dock-figure-windows-what-does-your-desktop-look-like/</link>
	<description>Ken &#38; Mike work on the MATLAB Desktop team</description>
	<pubDate>Sun, 22 Nov 2009 23:10:35 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Ken</title>
		<link>http://blogs.mathworks.com/desktop/2007/05/18/do-you-dock-figure-windows-what-does-your-desktop-look-like/#comment-6311</link>
		<dc:creator>Ken</dc:creator>
		<pubDate>Thu, 25 Jun 2009 12:24:31 +0000</pubDate>
		<guid>http://blogs.mathworks.com/desktop/2007/05/18/do-you-dock-figure-windows-what-does-your-desktop-look-like/#comment-6311</guid>
		<description>Hi Per,

Thanks for the request and use case. We'll keep it in mind.

-Ken</description>
		<content:encoded><![CDATA[<p>Hi Per,</p>
<p>Thanks for the request and use case. We&#8217;ll keep it in mind.</p>
<p>-Ken</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Per</title>
		<link>http://blogs.mathworks.com/desktop/2007/05/18/do-you-dock-figure-windows-what-does-your-desktop-look-like/#comment-6309</link>
		<dc:creator>Per</dc:creator>
		<pubDate>Wed, 24 Jun 2009 19:57:13 +0000</pubDate>
		<guid>http://blogs.mathworks.com/desktop/2007/05/18/do-you-dock-figure-windows-what-does-your-desktop-look-like/#comment-6309</guid>
		<description>I never dock windows in the desktop. However, I develop large and complex GUIs and one docking feature I would definitely use, if it was available, was to dock figures inside other figures. For instance, I have one GUI that generates a lot of subplots. It would be useful to have those subplots docked inside my main GUI (not all the time, of course, some users may want to blow up the figures by undocking and maximising). Perhaps something the Matlab Dev team can think about implementing...</description>
		<content:encoded><![CDATA[<p>I never dock windows in the desktop. However, I develop large and complex GUIs and one docking feature I would definitely use, if it was available, was to dock figures inside other figures. For instance, I have one GUI that generates a lot of subplots. It would be useful to have those subplots docked inside my main GUI (not all the time, of course, some users may want to blow up the figures by undocking and maximising). Perhaps something the Matlab Dev team can think about implementing&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Naor</title>
		<link>http://blogs.mathworks.com/desktop/2007/05/18/do-you-dock-figure-windows-what-does-your-desktop-look-like/#comment-6215</link>
		<dc:creator>Naor</dc:creator>
		<pubDate>Tue, 05 May 2009 22:12:55 +0000</pubDate>
		<guid>http://blogs.mathworks.com/desktop/2007/05/18/do-you-dock-figure-windows-what-does-your-desktop-look-like/#comment-6215</guid>
		<description>Antonia,
I am also frustrated by the same behaviour you describe. In fact the automatic docking of figures once you use any of the plot tools is causing me considerable pain almost on daily basis. Since docking almost inevitably causes moving and resizing of figures this is a serious issue. I could not find any fix or workaround for this problem, sorry.
-naor (R2008a xp64)</description>
		<content:encoded><![CDATA[<p>Antonia,<br />
I am also frustrated by the same behaviour you describe. In fact the automatic docking of figures once you use any of the plot tools is causing me considerable pain almost on daily basis. Since docking almost inevitably causes moving and resizing of figures this is a serious issue. I could not find any fix or workaround for this problem, sorry.<br />
-naor (R2008a xp64)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sweety</title>
		<link>http://blogs.mathworks.com/desktop/2007/05/18/do-you-dock-figure-windows-what-does-your-desktop-look-like/#comment-3703</link>
		<dc:creator>sweety</dc:creator>
		<pubDate>Wed, 19 Mar 2008 16:17:49 +0000</pubDate>
		<guid>http://blogs.mathworks.com/desktop/2007/05/18/do-you-dock-figure-windows-what-does-your-desktop-look-like/#comment-3703</guid>
		<description>I am stuck at some point in my project. My task for the project is to collect some data parameters and then use this parameter in other gui.Now i want to know how can i run the parameter collection gui and then return to main gui where i need to do futher processing for the collected data.</description>
		<content:encoded><![CDATA[<p>I am stuck at some point in my project. My task for the project is to collect some data parameters and then use this parameter in other gui.Now i want to know how can i run the parameter collection gui and then return to main gui where i need to do futher processing for the collected data.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Antonia</title>
		<link>http://blogs.mathworks.com/desktop/2007/05/18/do-you-dock-figure-windows-what-does-your-desktop-look-like/#comment-813</link>
		<dc:creator>Antonia</dc:creator>
		<pubDate>Thu, 11 Oct 2007 12:27:44 +0000</pubDate>
		<guid>http://blogs.mathworks.com/desktop/2007/05/18/do-you-dock-figure-windows-what-does-your-desktop-look-like/#comment-813</guid>
		<description>I hope you can help me about this docking!!

Normaly I do not dock any figures. Every figure opens a new window. But after the upgrade to Matlab R2007a I have some problems with that. When editing a figure, the figure automaticly moves to this figure group container. Of course after editing I could undock it again but thats annoying. Is there any way to avoid this docking?

An other way might be to dock all figures right from the beginning to this container. I found one way to do so:
    set(0,'DefaultFigureWindowStyle','docked')
Do you work like that?

I thought for my problem there might be the opposite of this setting, but all I tried was without success. When starting to edit the figure, it moves to the container again.

So maybe you know something about that, the documentation about this container is very poor in the help, I feel. (As it is in general about these "desktop-topics".)

Hoping for you

Antonia</description>
		<content:encoded><![CDATA[<p>I hope you can help me about this docking!!</p>
<p>Normaly I do not dock any figures. Every figure opens a new window. But after the upgrade to Matlab R2007a I have some problems with that. When editing a figure, the figure automaticly moves to this figure group container. Of course after editing I could undock it again but thats annoying. Is there any way to avoid this docking?</p>
<p>An other way might be to dock all figures right from the beginning to this container. I found one way to do so:<br />
    set(0,&#8217;DefaultFigureWindowStyle&#8217;,'docked&#8217;)<br />
Do you work like that?</p>
<p>I thought for my problem there might be the opposite of this setting, but all I tried was without success. When starting to edit the figure, it moves to the container again.</p>
<p>So maybe you know something about that, the documentation about this container is very poor in the help, I feel. (As it is in general about these &#8220;desktop-topics&#8221;.)</p>
<p>Hoping for you</p>
<p>Antonia</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yair Altman</title>
		<link>http://blogs.mathworks.com/desktop/2007/05/18/do-you-dock-figure-windows-what-does-your-desktop-look-like/#comment-670</link>
		<dc:creator>Yair Altman</dc:creator>
		<pubDate>Wed, 26 Sep 2007 14:12:59 +0000</pubDate>
		<guid>http://blogs.mathworks.com/desktop/2007/05/18/do-you-dock-figure-windows-what-does-your-desktop-look-like/#comment-670</guid>
		<description>picky, picky... :-)

desktop.setGroupDocked('Figures',false);</description>
		<content:encoded><![CDATA[<p>picky, picky&#8230; :-)</p>
<p>desktop.setGroupDocked(&#8217;Figures&#8217;,false);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Les Beckham</title>
		<link>http://blogs.mathworks.com/desktop/2007/05/18/do-you-dock-figure-windows-what-does-your-desktop-look-like/#comment-658</link>
		<dc:creator>Les Beckham</dc:creator>
		<pubDate>Wed, 26 Sep 2007 05:38:53 +0000</pubDate>
		<guid>http://blogs.mathworks.com/desktop/2007/05/18/do-you-dock-figure-windows-what-does-your-desktop-look-like/#comment-658</guid>
		<description>This is very nearly brilliant!  The only problem now is that when you create a batch of figures and then dock them they dock into the desktop (in a new figure group container).  You then must undock the figure container.  At that point the container.setSize method seems to do the trick.

I have been hoping for a way to handle the following:

Create a batch of figures in a script (e.g., by running a simulation and making plots using the results) and automatically force those figures to dock into the figure container (separate from the desktop) with a specified size.

My workaround so far has been:

1) Create the figures
2) Run the following script to dock all of the figures:

last_fig_no=max(get(0, 'Children'));

for fig_no=1:last_fig_no
    figure(fig_no)
    set(gcf, 'WindowStyle', 'docked')
end
clear last_fig_no fig_no

3) Manually undock the figure container from the desktop and set the size.

Yair Altman's approach seems to work for setting the container size.  It seems that the missing piece is how to "Undock" the container window.  When the container window is still docked in the desktop, the container.setSize method resizes the entire Matlab desktop.</description>
		<content:encoded><![CDATA[<p>This is very nearly brilliant!  The only problem now is that when you create a batch of figures and then dock them they dock into the desktop (in a new figure group container).  You then must undock the figure container.  At that point the container.setSize method seems to do the trick.</p>
<p>I have been hoping for a way to handle the following:</p>
<p>Create a batch of figures in a script (e.g., by running a simulation and making plots using the results) and automatically force those figures to dock into the figure container (separate from the desktop) with a specified size.</p>
<p>My workaround so far has been:</p>
<p>1) Create the figures<br />
2) Run the following script to dock all of the figures:</p>
<p>last_fig_no=max(get(0, &#8216;Children&#8217;));</p>
<p>for fig_no=1:last_fig_no<br />
    figure(fig_no)<br />
    set(gcf, &#8216;WindowStyle&#8217;, &#8216;docked&#8217;)<br />
end<br />
clear last_fig_no fig_no</p>
<p>3) Manually undock the figure container from the desktop and set the size.</p>
<p>Yair Altman&#8217;s approach seems to work for setting the container size.  It seems that the missing piece is how to &#8220;Undock&#8221; the container window.  When the container window is still docked in the desktop, the container.setSize method resizes the entire Matlab desktop.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yair Altman</title>
		<link>http://blogs.mathworks.com/desktop/2007/05/18/do-you-dock-figure-windows-what-does-your-desktop-look-like/#comment-626</link>
		<dc:creator>Yair Altman</dc:creator>
		<pubDate>Mon, 24 Sep 2007 20:37:58 +0000</pubDate>
		<guid>http://blogs.mathworks.com/desktop/2007/05/18/do-you-dock-figure-windows-what-does-your-desktop-look-like/#comment-626</guid>
		<description>Here's an undocumented/unsupported hack to programmatically resize the figures group container. It works on Matlab 7.4 (R2007a) - no guaranty it will continue working in future versions:

desktop=com.mathworks.mde.desk.MLDesktop.getInstance;
container=desktop.getGroupContainer('Figures').getTopLevelAncestor;
container.setSize(width,height);  % e.g., (500,300)

You can also do the following useful actions:
container.setAlwaysOnTop(1);  % or 0 to return to normal
container.setMaximized(1);  % or 0 to return to normal
container.setMinimized(1);  % or 0 to return to normal
container.setVisible(1);  % or 0 to hide - ignore the java error...
container.methodsview; % show full list of possible actions</description>
		<content:encoded><![CDATA[<p>Here&#8217;s an undocumented/unsupported hack to programmatically resize the figures group container. It works on Matlab 7.4 (R2007a) - no guaranty it will continue working in future versions:</p>
<p>desktop=com.mathworks.mde.desk.MLDesktop.getInstance;<br />
container=desktop.getGroupContainer(&#8217;Figures&#8217;).getTopLevelAncestor;<br />
container.setSize(width,height);  % e.g., (500,300)</p>
<p>You can also do the following useful actions:<br />
container.setAlwaysOnTop(1);  % or 0 to return to normal<br />
container.setMaximized(1);  % or 0 to return to normal<br />
container.setMinimized(1);  % or 0 to return to normal<br />
container.setVisible(1);  % or 0 to hide - ignore the java error&#8230;<br />
container.methodsview; % show full list of possible actions</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Les Beckham</title>
		<link>http://blogs.mathworks.com/desktop/2007/05/18/do-you-dock-figure-windows-what-does-your-desktop-look-like/#comment-86</link>
		<dc:creator>Les Beckham</dc:creator>
		<pubDate>Fri, 01 Jun 2007 23:35:38 +0000</pubDate>
		<guid>http://blogs.mathworks.com/desktop/2007/05/18/do-you-dock-figure-windows-what-does-your-desktop-look-like/#comment-86</guid>
		<description>I agree with nicolas' comment about the "figure container".

After learning about the ability to dock figures into the desktop "figure container" or figure group and then undock the group from the desktop, I've started using this feature a lot.  I wish, however, that there was a way to programmatically control the size of the figure group or "container" window.  Is there a way to do this?

I like the idea of using the group to keep all figures the same size without having to individually set figure position for each figure.  Unfortunately, the only way that I kind find for setting the size of the group is interactively sizing this container window.</description>
		<content:encoded><![CDATA[<p>I agree with nicolas&#8217; comment about the &#8220;figure container&#8221;.</p>
<p>After learning about the ability to dock figures into the desktop &#8220;figure container&#8221; or figure group and then undock the group from the desktop, I&#8217;ve started using this feature a lot.  I wish, however, that there was a way to programmatically control the size of the figure group or &#8220;container&#8221; window.  Is there a way to do this?</p>
<p>I like the idea of using the group to keep all figures the same size without having to individually set figure position for each figure.  Unfortunately, the only way that I kind find for setting the size of the group is interactively sizing this container window.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nicolas ruh</title>
		<link>http://blogs.mathworks.com/desktop/2007/05/18/do-you-dock-figure-windows-what-does-your-desktop-look-like/#comment-84</link>
		<dc:creator>nicolas ruh</dc:creator>
		<pubDate>Wed, 23 May 2007 17:51:44 +0000</pubDate>
		<guid>http://blogs.mathworks.com/desktop/2007/05/18/do-you-dock-figure-windows-what-does-your-desktop-look-like/#comment-84</guid>
		<description>I sometimes would dock my figures if I could control the way in which they appear (tiled, split, etc.) and possibly  the location to which they are docked programmatically. However, these features of the elusive 'figure container' seem to be undocumented. Pity</description>
		<content:encoded><![CDATA[<p>I sometimes would dock my figures if I could control the way in which they appear (tiled, split, etc.) and possibly  the location to which they are docked programmatically. However, these features of the elusive &#8216;figure container&#8217; seem to be undocumented. Pity</p>
]]></content:encoded>
	</item>
</channel>
</rss>
