AnsweredAssumed Answered

vrf How to maximize graph from Matlab

Question asked by VRFuser on Jul 28, 2002
Ron,

Maybe someone has a windows call to do a real maximize. In your Matlab Script you can add the lines:

scrsz = get(0,'ScreenSize')
set(gcf,'Position',[1 1 scrsz(3) scrsz(4)])

where gcf is a function call to get the handle of the current figure. You can substitute an actual figure number. Unfortunately, this puts the frame, title, menu bar of the figure off the screen, but a little experimentation with the [X, Y, Width, Height] vector in the set command should get you what you need. I don't know how to keep the focus on the Matlab window.

Regards,
Bill Ossmann
--
bill_ossmann@hsgmed.com
Philips Ultrasound

-----Original Message-----
From: Rockland, Ronald [mailto:Rockland@ADM.NJIT.EDU]
Sent: Sunday, July 28, 2002 11:23 AM
To: 'vrf@lvld.agilent.com'
Subject: vrf How to maximize graph from Matlab


I found that if I want to incorporate graphs from a VEE program into a Word
document, the appearance is enhanced if I send the data to a Matlab function
that graphs it.  I can then Copy Figure.  However, when I have a Matlab
graphics window open, and use subplots, I have to manually maximize the
window.  Is there a way to programmatically have the Matlab graphics window
maximized?  Also, if I want to call separate Matlab plots from buttons on
the VEE panel, how can I programatically have the Matlab graphics window in
front of the panel?

Ron Rockland
NJIT
---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo.  To send messages to
this maillist, just email to "vrf@lvld.agilent.com".  Subscriptions and
unsubscriptions are done through the address "vrf-request@lvld.agilent.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.agilent.com".
---------------------------------------------------------------------
---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo.  To send messages to
this maillist, just email to "vrf@lvld.agilent.com".  Subscriptions and
unsubscriptions are done through the address "vrf-request@lvld.agilent.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.agilent.com".
---------------------------------------------------------------------

Outcomes