"G.A.M. " <x0zero@gmail.com> wrote in message <favbc6
$5uj$1@fred.mathworks.com>...
> Is it possible (and relatively easy) to create figures
that
> dock into a parent figure? (I don't want to dock my
figures
> to the Matlab workspace.)
>
> How do I dock my own figures into a main (parent) figure?
> Thanks.
Hi,
I think you can use subplot command to plot multiple graphs
in same window (figure)...
If you feel this command is noe suitable for your
application give some more idea about your requirement..
Regards,
Ashwini
Subject: How to create figures and dock them into my main GUI figure?
"Ashwini Deshpande" <vd.ashwini@mathworks.com> wrote in
message <fbqjt8$ea8$1@fred.mathworks.com>...
> "G.A.M. " <x0zero@gmail.com> wrote in message <favbc6
> $5uj$1@fred.mathworks.com>...
> > Is it possible (and relatively easy) to create figures
> that
> > dock into a parent figure? (I don't want to dock my
> figures
> > to the Matlab workspace.)
> >
> > How do I dock my own figures into a main (parent) figure?
> > Thanks.
>
> Hi,
>
> I think you can use subplot command to plot multiple graphs
> in same window (figure)...
>
> If you feel this command is noe suitable for your
> application give some more idea about your requirement..
>
> Regards,
> Ashwini
>
Docking is different from using subplots. I want to
programmatically create a figure (a window) and specify that
it should be docked within another figure I have created
earlier. Can Matlab do this? Thanks.
Subject: How to create figures and dock them into my main GUI figure?
"G.A.M. " <x0zero@gmail.com> wrote in message
<fcn80f$15l$1@fred.mathworks.com>...
> "Ashwini Deshpande" <vd.ashwini@mathworks.com> wrote in
> message <fbqjt8$ea8$1@fred.mathworks.com>...
> > "G.A.M. " <x0zero@gmail.com> wrote in message <favbc6
> > $5uj$1@fred.mathworks.com>...
> > > Is it possible (and relatively easy) to create figures
> > that
> > > dock into a parent figure? (I don't want to dock my
> > figures
> > > to the Matlab workspace.)
> > >
> > > How do I dock my own figures into a main (parent) figure?
> > > Thanks.
> >
> > Hi,
> >
> > I think you can use subplot command to plot multiple graphs
> > in same window (figure)...
> >
> > If you feel this command is noe suitable for your
> > application give some more idea about your requirement..
> >
> > Regards,
> > Ashwini
> >
>
> Docking is different from using subplots. I want to
> programmatically create a figure (a window) and specify that
> it should be docked within another figure I have created
> earlier. Can Matlab do this? Thanks.
use:
set(<figurename>, 'WindowStyle', 'docked')
Subject: How to create figures and dock them into my main GUI figure?
On Sep 18, 12:25 pm, "Adam " <not.my.em...@mathworks.com> wrote:
> <SNIP>
>
>
>
> > > use:
> > > set(<figurename>, 'WindowStyle', 'docked')
>
> > My understanding from reading help is that this command
> will only dock
> > a figure to the Matlab desktop. Is that correct? If I
> could pass it a
> > parent figure parameter, that might do what I need.
>
> > I want to create a main figure for my application and then
> dock my
> > other windows to MY figure. Thanks
>
> I don't have any experience using this. However...
>
> fig1 = figure;
> set(fig1, 'WindowStyle', 'docked')
>
> fig2 = figure;
> set(fig2, 'WindowStyle', 'docked')
>
> creates one figure, then docks the second with the first.
> For me it remembers the last docked configuration, not sure
> how to change that.
>
> Use get(fig1) and get(fig2) to analyze parameters if no one
> else chimes in with details
> > Docking is different from using subplots. I want to
> > programmatically create a figure (a window) and specify that
> > it should be docked within another figure I have created
> > earlier. Can Matlab do this? Thanks.
>
> use:
> set(<figurename>, 'WindowStyle', 'docked')
Docking figures places them in the "Figures" group
container. Here is an undocumented/unsupported hack to dock
figures into your own custom-made group. This enables
docking some figures into the "Figures" container and others
into the "myGroup" container:
desktop = com.mathworks.mde.desk.MLDesktop.getInstance;
myGroup = desktop.addGroup('myGroup');
set(get(gcf,'javaframe'), 'GroupName','myGroup');
% docking gcf will now add it to myGroup, not "Figures"
"Yair Altman" <altmanyDEL@gmailDEL.comDEL> wrote in message
<fdhk5l$ch8$1@fred.mathworks.com>...
> > > Docking is different from using subplots. I want to
> > > programmatically create a figure (a window) and
specify that
> > > it should be docked within another figure I have created
> > > earlier. Can Matlab do this? Thanks.
> >
> > use:
> > set(<figurename>, 'WindowStyle', 'docked')
>
>
> Docking figures places them in the "Figures" group
> container. Here is an undocumented/unsupported hack to dock
> figures into your own custom-made group. This enables
> docking some figures into the "Figures" container and others
> into the "myGroup" container:
>
> desktop = com.mathworks.mde.desk.MLDesktop.getInstance;
> myGroup = desktop.addGroup('myGroup');
> set(get(gcf,'javaframe'), 'GroupName','myGroup');
> % docking gcf will now add it to myGroup, not "Figures"
>
> More hacks on groups (resizing, minimizing/maximizing,
> docking/undocking etc.) can be found here:
> http://tinyurl.com/32q6hb and: http://tinyurl.com/2xpxdp
>
> Yair Altman
> http://ymasoftware.com
Thanks for posting all of the information, it's quite nice to be able to dock
figures in a separate window. I'm a total java hack but I thought I might post
some useful (I think) ways I came across to manipulate the dock even further:
%Pull contianter out of desktop.
desktop.setGroupDocked('myGroup',0);
"Yair Altman" <altmanyDEL@gmailDEL.comDEL> wrote in message
<fdhk5l$ch8$1@fred.mathworks.com>...
> Docking figures places them in the "Figures" group
> container...
>
Yair,
Here's a related question: I skipped a couple of releases
and am just encountering the "Figures" group container for
the first time (am now in R2008a). I would really like to
emulate the earlier behavior, i.e., figures create and STAY
in separate windows. My problem is that once you activate
the property editor, the figure becomes docked in the group
container, and STAYS docked even after closing the property
editor. Setting 'DockControls' to 'off' doesn't help, the
property editor will just set them to 'on'
and 'WindowStyle' to 'docked'. Can you think of a way
around this?
Thanks,
-naor
Public Submission Policy
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central. Read the complete Disclaimer prior to use.