
Signature
"Product of a myriad various minds and contending tongues, compact of
obscure and minute association, a language has its own abundant and
often recondite laws, in the habitual and summary recognition of
which scholarship consists." -- Walter Pater
roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in
message <g6l34a$4kn$1@canopus.cc.umanitoba.ca>...
> >I am trying to save a figure after each iteration of a for
> >loop, but the formatting is not preserved. When I save the
[quoted text clipped - 11 lines]
> doesn't overlap the task bar, or move the task bar so it doesn't
> overlap the portion of the screen that is being copied.
Walter,
Thanks for the suggestion. I'm pretty sure that is what is
the problem. Because multiple users will eventually use
this program, each (presumably) with a different screen
resolution, I used
set(gcf,'units','normalized','outerposition',[0 0 1 1]);
to maximize the figure window. Is there an easy way to set
the maximum size of the figure window to account for the
taskbar and exclude these pixels in the saveas/print command?
~Michael
Michael - 01 Aug 2008 00:38 GMT
Okay, so I guess I should have played with the file formats
a little bit more. Instead of saving as a .bmp (which is a
bitmap anyways, and therefore pixelated), I saved it as a
.emf (which is a vector format). This resolved the toolbar
showing up issue and allows for non-pixelated scalable plots.
I used the following to maximize the window:
set(gcf,'units','normalized','outerposition',[0 0 1 1]);
I used the following to save:
saveas(figure(1),'filename','emf')
Works quite well.
~Michael
"Michael " <humpface@hotmail.com> wrote in message
<g6lcdm$i47$1@fred.mathworks.com>...
> roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in
> message <g6l34a$4kn$1@canopus.cc.umanitoba.ca>...
[quoted text clipped - 36 lines]
>
> ~Michael