From: michelle adan on
So I have this code within a for loop, and for each iteration it creates an image and resizes it. However, though the axis handles resize, the figure window box does not, and it crops the figure (right and top). This is regardless of what I set OuterPosition to be. Help?

set(gcf,'nextplot','replace')

quiver(x,y,fu,fv,scale,'w') %velocity arrows in white


set(gca,'YLim',[.15 .5])
set(gca,'XLim',[-.2 .4])
set(gca,'Units','pixels')
set(gca,'ActivePositionProperty','position')
set(gca,'OuterPosition',[0 0 900 450])
set(gca,'Position',[50 50 700 400])
From: Nathan on
On Jan 20, 11:51 am, "michelle adan" <lapoo...(a)gmail.com> wrote:
> So I have this code within a for loop, and for each iteration it creates an image and resizes it.  However, though the axis handles resize, the figure window box does not, and it crops the figure (right and top).  This is regardless of what I set OuterPosition to be.  Help?
>
> set(gcf,'nextplot','replace')
>
>     quiver(x,y,fu,fv,scale,'w') %velocity arrows in white
>
>     set(gca,'YLim',[.15 .5])
>     set(gca,'XLim',[-.2 .4])
>     set(gca,'Units','pixels')
>     set(gca,'ActivePositionProperty','position')
>     set(gca,'OuterPosition',[0 0 900 450])
>     set(gca,'Position',[50 50 700 400])

How about resize the figure as well?

set(gcf,'position',[400 400 800 500])

-Nathan
From: michelle adan on
Nathan <ngreco32(a)gmail.com> wrote in message <85375522-5696-4c02-8ea8-db1d6b2867c7(a)l30g2000yqb.googlegroups.com>...
> On Jan 20, 11:51 am, "michelle adan" <lapoo...(a)gmail.com> wrote:
> > So I have this code within a for loop, and for each iteration it creates an image and resizes it.  However, though the axis handles resize, the figure window box does not, and it crops the figure (right and top).  This is regardless of what I set OuterPosition to be.  Help?
> >
> > set(gcf,'nextplot','replace')
> >
> >     quiver(x,y,fu,fv,scale,'w') %velocity arrows in white
> >
> >     set(gca,'YLim',[.15 .5])
> >     set(gca,'XLim',[-.2 .4])
> >     set(gca,'Units','pixels')
> >     set(gca,'ActivePositionProperty','position')
> >     set(gca,'OuterPosition',[0 0 900 450])
> >     set(gca,'Position',[50 50 700 400])
>
> How about resize the figure as well?
>
> set(gcf,'position',[400 400 800 500])
>
> -Nathan

it worked! awesome, thank you so much.