Path: news.mathworks.com!not-for-mail
From: "Ben " <basburywvu.nospam@hotmial.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Zoom / Camera Control in subplot
Date: Thu, 20 Sep 2007 00:48:29 +0000 (UTC)
Organization: Orbital Sciences Corp
Lines: 42
Message-ID: <fcsg0t$cgj$1@fred.mathworks.com>
References: <fcmth5$sis$1@fred.mathworks.com> <fcoolp$llv$1@fred.mathworks.com> <fcr39g$5fo$1@fred.mathworks.com> <fcrscc$jtr$1@fred.mathworks.com> <fcrttc$gtt$1@fred.mathworks.com>
Reply-To: "Ben " <basburywvu.nospam@hotmial.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1190249309 12819 172.30.248.35 (20 Sep 2007 00:48:29 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 20 Sep 2007 00:48:29 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 425457
Xref: news.mathworks.com comp.soft-sys.matlab:429353



"Adam " <not.my.email@mathworks.com> wrote in message 
> 
> yeah, weird situation.  What I would do, make a new figure
> window for the 3d graph.  You can add this to the opening
> function
> 
>     hFig = figure;
>     set(hFig, 'MenuBar', 'none', 'Toolbar', 'figure')
> 
>  % create callback to prevent figure from being 
>  % explicitly closed
>     set(hFig, 'CloseRequestFcn', ...
>    'guiServoLoop(''fig_CloseFcn'',gcbo,[],guidata(gcbo))');
> 
>     handles.figGraph = hFig;   % add figure to handle list
>     guidata(hObject, handles)  % saves update to handles
> 
> then add the function
> 
> % --- Executes upon close request to graph window
> function fig_CloseFcn(hObject, eventdata, handles)
>     %do nothing
> 
> and add to your main figure's deletefcn or closerequestfcn
> (not sure if it matters, I'm using the deleteFcn) the
> following line
>     delete(handles.figGraph)
> 
> otherwise I have no idea, gl.
> 
> ~Adam


Yeah, I don't think I have any other option but to create a
separate figure for the 3-d graph that I need to
zoom/explore since the plot axes keeps growing inside the
main GUI window.  
Thank you for the tips.  That should help me control the
extra figure a little better so the end user doesn't close
it by mistake,

Thanks Again.