From: Peter Knauer on
Hi, I have just a small problem.
What is the matlab-command to "expand axes to fill figure". This is a check-
box in the Export-Setup of figures. Even after searching very long, I didn't find a
solution how to write it in a Matlab-Code.
Thank you very much!!
From: Donn Shull on
There is not a single command to do this you can use the
following commands to di this:

fig = gcf;
style = hgexport('factorystyle');
style.Bounds = 'tight';
hgexport(fig,'-clipboard',style,'applystyle', true);
drawnow;

You should create a function to do this which includes
proper errorchecking.


From: Peter Knauer on
Thank you very much! It works like it should.
Stays the question how to find such a solution by myself :).
Thanks again.

"Donn Shull" <donn.shull.no_spam(a)aetoolbox.com> wrote in message
<g5ns0f$eib$1(a)fred.mathworks.com>...
> There is not a single command to do this you can use the
> following commands to di this:
>
> fig = gcf;
> style = hgexport('factorystyle');
> style.Bounds = 'tight';
> hgexport(fig,'-clipboard',style,'applystyle', true);
> drawnow;
>
> You should create a function to do this which includes
> proper errorchecking.
>
>


From: Donn Shull on
"Peter Knauer" <P.Knauer(a)web.de> wrote in message
<g5pq7m$dop$1(a)fred.mathworks.com>...
> Thank you very much! It works like it should.
> Stays the question how to find such a solution by
myself :).
> Thanks again.
>
> "Donn Shull" <donn.shull.no_spam(a)aetoolbox.com> wrote in
message
> <g5ns0f$eib$1(a)fred.mathworks.com>...
> > There is not a single command to do this you can use
the
> > following commands to di this:
> >
> > fig = gcf;
> > style = hgexport('factorystyle');
> > style.Bounds = 'tight';
> > hgexport(fig,'-clipboard',style,'applystyle', true);
> > drawnow;
> >
> > You should create a function to do this which includes
> > proper errorchecking.
> >
> >
>
>

Hi Peter,

You just have to dig through the MathWorks code. In this
case you can start with a utility which can search through
m files for a specific text string ("Expand axes to fill
figure"). Once you have that file start digging.

Donn
 | 
Pages: 1
Prev: xcorr (cross-correlation)
Next: MATLAB - MODTRAN