<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/155225</link>
    <title>MATLAB Central Newsreader - How to create figures and dock them into my main GUI figure?</title>
    <description>Feed for thread: How to create figures and dock them into my main GUI figure?</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Mon, 27 Aug 2007 20:15:02 -0400</pubDate>
      <title>How to create figures and dock them into my main GUI figure?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/155225#389593</link>
      <author>G.A.M. </author>
      <description>Is it possible (and relatively easy) to create figures that&lt;br&gt;
dock into a parent figure? (I don't want to dock my figures&lt;br&gt;
to the Matlab workspace.)&lt;br&gt;
&lt;br&gt;
How do I dock my own figures into a main (parent) figure?&lt;br&gt;
Thanks.</description>
    </item>
    <item>
      <pubDate>Fri, 07 Sep 2007 04:26:16 -0400</pubDate>
      <title>Re: How to create figures and dock them into my main GUI figure?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/155225#391062</link>
      <author>Ashwini Deshpande</author>
      <description>&quot;G.A.M. &quot; &amp;lt;x0zero@gmail.com&amp;gt; wrote in message &amp;lt;favbc6&lt;br&gt;
$5uj$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Is it possible (and relatively easy) to create figures &lt;br&gt;
that&lt;br&gt;
&amp;gt; dock into a parent figure? (I don't want to dock my &lt;br&gt;
figures&lt;br&gt;
&amp;gt; to the Matlab workspace.)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; How do I dock my own figures into a main (parent) figure?&lt;br&gt;
&amp;gt; Thanks.&lt;br&gt;
&lt;br&gt;
Hi,&lt;br&gt;
&lt;br&gt;
I think you can use subplot command to plot multiple graphs &lt;br&gt;
in same window (figure)... &lt;br&gt;
&lt;br&gt;
If you feel this command is noe suitable for your &lt;br&gt;
application give some more idea about your requirement..&lt;br&gt;
&lt;br&gt;
Regards,&lt;br&gt;
Ashwini</description>
    </item>
    <item>
      <pubDate>Tue, 18 Sep 2007 01:01:03 -0400</pubDate>
      <title>Re: How to create figures and dock them into my main GUI figure?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/155225#392800</link>
      <author>G.A.M. </author>
      <description>&quot;Ashwini Deshpande&quot; &amp;lt;vd.ashwini@mathworks.com&amp;gt; wrote in&lt;br&gt;
message &amp;lt;fbqjt8$ea8$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;G.A.M. &quot; &amp;lt;x0zero@gmail.com&amp;gt; wrote in message &amp;lt;favbc6&lt;br&gt;
&amp;gt; $5uj$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; Is it possible (and relatively easy) to create figures &lt;br&gt;
&amp;gt; that&lt;br&gt;
&amp;gt; &amp;gt; dock into a parent figure? (I don't want to dock my &lt;br&gt;
&amp;gt; figures&lt;br&gt;
&amp;gt; &amp;gt; to the Matlab workspace.)&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; How do I dock my own figures into a main (parent) figure?&lt;br&gt;
&amp;gt; &amp;gt; Thanks.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I think you can use subplot command to plot multiple graphs &lt;br&gt;
&amp;gt; in same window (figure)... &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; If you feel this command is noe suitable for your &lt;br&gt;
&amp;gt; application give some more idea about your requirement..&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Regards,&lt;br&gt;
&amp;gt; Ashwini&lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
Docking is different from using subplots. I want to&lt;br&gt;
programmatically create a figure (a window) and specify that&lt;br&gt;
it should be docked within another figure I have created&lt;br&gt;
earlier. Can Matlab do this? Thanks.</description>
    </item>
    <item>
      <pubDate>Tue, 18 Sep 2007 12:13:15 -0400</pubDate>
      <title>Re: How to create figures and dock them into my main GUI figure?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/155225#392868</link>
      <author>Adam </author>
      <description>&quot;G.A.M. &quot; &amp;lt;x0zero@gmail.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;fcn80f$15l$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Ashwini Deshpande&quot; &amp;lt;vd.ashwini@mathworks.com&amp;gt; wrote in&lt;br&gt;
&amp;gt; message &amp;lt;fbqjt8$ea8$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &quot;G.A.M. &quot; &amp;lt;x0zero@gmail.com&amp;gt; wrote in message &amp;lt;favbc6&lt;br&gt;
&amp;gt; &amp;gt; $5uj$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Is it possible (and relatively easy) to create figures &lt;br&gt;
&amp;gt; &amp;gt; that&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; dock into a parent figure? (I don't want to dock my &lt;br&gt;
&amp;gt; &amp;gt; figures&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; to the Matlab workspace.)&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; How do I dock my own figures into a main (parent) figure?&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Thanks.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Hi,&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; I think you can use subplot command to plot multiple graphs &lt;br&gt;
&amp;gt; &amp;gt; in same window (figure)... &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; If you feel this command is noe suitable for your &lt;br&gt;
&amp;gt; &amp;gt; application give some more idea about your requirement..&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Regards,&lt;br&gt;
&amp;gt; &amp;gt; Ashwini&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Docking is different from using subplots. I want to&lt;br&gt;
&amp;gt; programmatically create a figure (a window) and specify that&lt;br&gt;
&amp;gt; it should be docked within another figure I have created&lt;br&gt;
&amp;gt; earlier. Can Matlab do this? Thanks.&lt;br&gt;
&lt;br&gt;
use:&lt;br&gt;
set(&amp;lt;figurename&amp;gt;, 'WindowStyle', 'docked')</description>
    </item>
    <item>
      <pubDate>Tue, 18 Sep 2007 16:54:36 -0400</pubDate>
      <title>Re: How to create figures and dock them into my main GUI figure?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/155225#392939</link>
      <author> &quot;G.A.M.</author>
      <description>On Sep 18, 12:25 pm, &quot;Adam &quot; &amp;lt;not.my.em...@mathworks.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;lt;SNIP&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; use:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; set(&amp;lt;figurename&amp;gt;, 'WindowStyle', 'docked')&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; My understanding from reading help is that this command&lt;br&gt;
&amp;gt; will only dock&lt;br&gt;
&amp;gt; &amp;gt; a figure to the Matlab desktop. Is that correct? If I&lt;br&gt;
&amp;gt; could pass it a&lt;br&gt;
&amp;gt; &amp;gt; parent figure parameter, that might do what I need.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; I want to create a main figure for my application and then&lt;br&gt;
&amp;gt; dock my&lt;br&gt;
&amp;gt; &amp;gt; other windows to MY figure. Thanks&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I don't have any experience using this.  However...&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; fig1 = figure;&lt;br&gt;
&amp;gt; set(fig1, 'WindowStyle', 'docked')&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; fig2 = figure;&lt;br&gt;
&amp;gt; set(fig2, 'WindowStyle', 'docked')&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; creates one figure, then docks the second with the first.&lt;br&gt;
&amp;gt; For me it remembers the last docked configuration, not sure&lt;br&gt;
&amp;gt; how to change that.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Use get(fig1) and get(fig2) to analyze parameters if no one&lt;br&gt;
&amp;gt; else chimes in with details&lt;br&gt;
&lt;br&gt;
I think I found what I need:&lt;br&gt;
&lt;a href=&quot;http://xtargets.com/cms/Tutorials/Matlab-Programming/Advanced-Layout-Management-With-Handle-Graphics.html&quot;&gt;http://xtargets.com/cms/Tutorials/Matlab-Programming/Advanced-Layout-Management-With-Handle-Graphics.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
I just found it thanks to &quot;per isakson&quot;. I haven't tried it yet, but&lt;br&gt;
it looks like exactly what I was hoping to find.</description>
    </item>
    <item>
      <pubDate>Fri, 28 Sep 2007 01:08:05 -0400</pubDate>
      <title>Re: How to create figures and dock them into my main GUI figure?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/155225#394309</link>
      <author>Yair Altman</author>
      <description>&amp;gt; &amp;gt; Docking is different from using subplots. I want to&lt;br&gt;
&amp;gt; &amp;gt; programmatically create a figure (a window) and specify that&lt;br&gt;
&amp;gt; &amp;gt; it should be docked within another figure I have created&lt;br&gt;
&amp;gt; &amp;gt; earlier. Can Matlab do this? Thanks.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; use:&lt;br&gt;
&amp;gt; set(&amp;lt;figurename&amp;gt;, 'WindowStyle', 'docked')&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Docking figures places them in the &quot;Figures&quot; group&lt;br&gt;
container. Here is an undocumented/unsupported hack to dock&lt;br&gt;
figures into your own custom-made group. This enables&lt;br&gt;
docking some figures into the &quot;Figures&quot; container and others&lt;br&gt;
into the &quot;myGroup&quot; container:&lt;br&gt;
&lt;br&gt;
desktop = com.mathworks.mde.desk.MLDesktop.getInstance;&lt;br&gt;
myGroup = desktop.addGroup('myGroup');&lt;br&gt;
set(get(gcf,'javaframe'), 'GroupName','myGroup');&lt;br&gt;
% docking gcf will now add it to myGroup, not &quot;Figures&quot;&lt;br&gt;
&lt;br&gt;
More hacks on groups (resizing, minimizing/maximizing,&lt;br&gt;
docking/undocking etc.) can be found here:&lt;br&gt;
&lt;a href=&quot;http://tinyurl.com/32q6hb&quot;&gt;http://tinyurl.com/32q6hb&lt;/a&gt; and: &lt;a href=&quot;http://tinyurl.com/2xpxdp&quot;&gt;http://tinyurl.com/2xpxdp&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Yair Altman&lt;br&gt;
&lt;a href=&quot;http://ymasoftware.com&quot;&gt;http://ymasoftware.com&lt;/a&gt;</description>
    </item>
    <item>
      <pubDate>Sat, 13 Oct 2007 22:06:05 -0400</pubDate>
      <title>Re: How to create figures and dock them into my main GUI figure?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/155225#396570</link>
      <author>Yair Altman</author>
      <description>&quot;Yair Altman&quot; &amp;lt;altmanyDEL@gmailDEL.comDEL&amp;gt; wrote in message&lt;br&gt;
&amp;lt;fdhk5l$ch8$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Docking is different from using subplots. I want to&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; programmatically create a figure (a window) and&lt;br&gt;
specify that&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; it should be docked within another figure I have created&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; earlier. Can Matlab do this? Thanks.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; use:&lt;br&gt;
&amp;gt; &amp;gt; set(&amp;lt;figurename&amp;gt;, 'WindowStyle', 'docked')&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Docking figures places them in the &quot;Figures&quot; group&lt;br&gt;
&amp;gt; container. Here is an undocumented/unsupported hack to dock&lt;br&gt;
&amp;gt; figures into your own custom-made group. This enables&lt;br&gt;
&amp;gt; docking some figures into the &quot;Figures&quot; container and others&lt;br&gt;
&amp;gt; into the &quot;myGroup&quot; container:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; desktop = com.mathworks.mde.desk.MLDesktop.getInstance;&lt;br&gt;
&amp;gt; myGroup = desktop.addGroup('myGroup');&lt;br&gt;
&amp;gt; set(get(gcf,'javaframe'), 'GroupName','myGroup');&lt;br&gt;
&amp;gt; % docking gcf will now add it to myGroup, not &quot;Figures&quot;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; More hacks on groups (resizing, minimizing/maximizing,&lt;br&gt;
&amp;gt; docking/undocking etc.) can be found here:&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://tinyurl.com/32q6hb&quot;&gt;http://tinyurl.com/32q6hb&lt;/a&gt; and: &lt;a href=&quot;http://tinyurl.com/2xpxdp&quot;&gt;http://tinyurl.com/2xpxdp&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Yair Altman&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://ymasoftware.com&quot;&gt;http://ymasoftware.com&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
For anyone interested, I recently posted a submission on the&lt;br&gt;
File Exchange that handles figure docking into any Matlab or&lt;br&gt;
user-defined figure-group (including odd groups like the&lt;br&gt;
Matlab editor...): setFigDockGroup -&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=16650&quot;&gt;http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=16650&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
enjoy :)&lt;br&gt;
&lt;br&gt;
Yair Altman</description>
    </item>
    <item>
      <pubDate>Sat, 26 Jan 2008 01:34:02 -0500</pubDate>
      <title>Re: How to create figures and dock them into my main GUI figure?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/155225#411327</link>
      <author>Scott Koch</author>
      <description>Hi Yair -&lt;br&gt;
&lt;br&gt;
Thanks for posting all of the information, it's quite nice to be able to dock &lt;br&gt;
figures in a separate window. I'm a total java hack but I thought I might post &lt;br&gt;
some useful (I think) ways I came across to manipulate the dock even further:&lt;br&gt;
&lt;br&gt;
%Pull contianter out of desktop.&lt;br&gt;
desktop.setGroupDocked('myGroup',0);&lt;br&gt;
&lt;br&gt;
%Set into 3x3 tiled mode.&lt;br&gt;
myDim = java.qwt.Dimension;&lt;br&gt;
myDim.height = 3;&lt;br&gt;
myDim.width = 3;&lt;br&gt;
&lt;br&gt;
I wonder if this might be what Antonia was asking for in the blog entry you &lt;br&gt;
referenced above...&lt;br&gt;
&lt;br&gt;
Thanks&lt;br&gt;
&lt;br&gt;
Scott</description>
    </item>
    <item>
      <pubDate>Wed, 30 Jan 2008 18:31:01 -0500</pubDate>
      <title>Re: How to create figures and dock them into my main GUI figure?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/155225#412038</link>
      <author>Scott Koch</author>
      <description>oupDocked('myGroup',0);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; %Set into 3x3 tiled mode.&lt;br&gt;
&amp;gt; myDim = java.qwt.Dimension;&lt;br&gt;
&amp;gt; myDim.height = 3;&lt;br&gt;
&amp;gt; myDim.width = 3;&lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
Forgot the a command:&lt;br&gt;
&lt;br&gt;
desktop.setDocumentArrangement('myGroup',2,myDim);&lt;br&gt;
&lt;br&gt;
scott</description>
    </item>
    <item>
      <pubDate>Tue, 29 Apr 2008 12:57:01 -0400</pubDate>
      <title>Re: How to create figures and dock them into my main GUI figure?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/155225#429363</link>
      <author>Naor Movshovitz</author>
      <description>&quot;Yair Altman&quot; &amp;lt;altmanyDEL@gmailDEL.comDEL&amp;gt; wrote in message &lt;br&gt;
&amp;lt;fdhk5l$ch8$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Docking figures places them in the &quot;Figures&quot; group&lt;br&gt;
&amp;gt; container...&lt;br&gt;
&amp;gt; &lt;br&gt;
Yair,&lt;br&gt;
Here's a related question: I skipped a couple of releases &lt;br&gt;
and am just encountering the &quot;Figures&quot; group container for &lt;br&gt;
the first time (am now in R2008a). I would really like to &lt;br&gt;
emulate the earlier behavior, i.e., figures create and STAY &lt;br&gt;
in separate windows. My problem is that once you activate &lt;br&gt;
the property editor, the figure becomes docked in the group &lt;br&gt;
container, and STAYS docked even after closing the property &lt;br&gt;
editor. Setting 'DockControls' to 'off' doesn't help, the &lt;br&gt;
property editor will just set them to 'on' &lt;br&gt;
and 'WindowStyle' to 'docked'. Can you think of a way &lt;br&gt;
around this?&lt;br&gt;
Thanks,&lt;br&gt;
-naor</description>
    </item>
  </channel>
</rss>

