For Programmers: Free Programming Magazines  


Home > Archive > Matlab > July 2006 > problem maximizing plots & interfacing plots with saveppt









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author problem maximizing plots & interfacing plots with saveppt
Rob

2006-07-27, 8:04 am

Hi,
I am using a version of saveppt.m that I modified for my specific
needs. This version takes a specific template (I can post the code for
that if there are those who are interested).

Anyway, what I am having difficulties with is that the plot windows
come up not maximized, and then saveppt saves the plots as they appear
on screen (the tick labels are all scrunched together, etc).

What I would like to do is to be able to maximize the plot window, such
that it is analogous to clicking on the "maximze" button in the upper
right corner of the plot window - this is different than just making it
fill the screen size because of the "Start" menu panel thingy in
Windows. BTW, I'm running Win 2000 Pro & MATLAB R14 SP2.

I'm also thinking I may need some sort of "delay" for the saveppt
function, to give the maximize function time to actually "maximize" the
plot window first, and *then* save it to Powerpoint? Because I
implemented one of the maximize functions I found on here, and it
*still* saves it in Powerpoint as the way it looks before it gets
maximized.

While I'm at it, I may as well go for broke & ask any gurus out there
if they know how to:
1.) automatically have the plot be "cropped" as it enters Powerpoint
(right now it puts a decent size margin around the figure, so in
Powepoint that invisible margin takes up alot of real estate).
2.) automatically maximize the figure in Powerpoint - I don't have a
title or footer in the slide (I have put my title on the figure
itself), so I'd like to make the slide as large as possible.

If anyone can help assist me w/ any of these issues, I would be most
grateful. I've posted 2 questions recently w/ no response - so I'm
hoping this one gets a response - but if I'm doing something wrong (not
following the posting rules, etc) - please let me know.

Thanks,
Rob

Rob

2006-07-31, 7:17 pm


Rob wrote:
>
> I'm also thinking I may need some sort of "delay" for the saveppt
> function, to give the maximize function time to actually "maximize" the
> plot window first, and *then* save it to Powerpoint? Because I
> implemented one of the maximize functions I found on here, and it
> *still* saves it in Powerpoint as the way it looks before it gets
> maximized.
>
> While I'm at it, I may as well go for broke & ask any gurus out there
> if they know how to:
> 1.) automatically have the plot be "cropped" as it enters Powerpoint
> (right now it puts a decent size margin around the figure, so in
> Powepoint that invisible margin takes up alot of real estate).
> 2.) automatically maximize the figure in Powerpoint - I don't have a
> title or footer in the slide (I have put my title on the figure
> itself), so I'd like to make the slide as large as possible.
>


I'm not sure why no one is offering any suggestions, but I have been
able to overcome at least one of my problems - I found the "pause"
function, and implemented a pause of 10 seconds into my code. This
allows the figure to become maximized prior to kicking off the
"saveppt" function.

However, it is *still* saving it to the Powerpoint slide in an
"un-maximized" fashion - meaning, it looks like it's saving it prior to
the maximize. I don't know why this is happening.

If anyone could offer any suggestions, or if anyone needs any further
details (code snippets, etc), I would greatly appreciate it.

Thanks,
Rob

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com