<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/156316</link>
    <title>MATLAB Central Newsreader - Zoom / Camera Control in subplot</title>
    <description>Feed for thread: Zoom / Camera Control in subplot</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Mon, 17 Sep 2007 22:02:13 -0400</pubDate>
      <title>Zoom / Camera Control in subplot</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/156316#392776</link>
      <author>Ben </author>
      <description>I have a GUI with one main plot axes (3-D) axes with a&lt;br&gt;
couple small plots(2-D) and a few text boxes of data next to&lt;br&gt;
it.  My problem is that I need to Zoom in on a specific area&lt;br&gt;
of the 3-D plot.  However, I can not zoom in on the  main&lt;br&gt;
plot without the axes becoming larger than it was originally&lt;br&gt;
defined as and overtaking the smaller plots.  &lt;br&gt;
I have tried using the camera commands (campos, camtarget,&lt;br&gt;
va, ect.) and zoom and view commands.  But when I zoom in on&lt;br&gt;
the area I need it ends up dominating the entire figure window.&lt;br&gt;
&lt;br&gt;
Is there a way to contain the axes so that it is limited to&lt;br&gt;
only the position[l,b,w,h].&lt;br&gt;
&lt;br&gt;
Any help or suggestions would be appreciated. I can provide&lt;br&gt;
an example if needed.&lt;br&gt;
&lt;br&gt;
Thanks</description>
    </item>
    <item>
      <pubDate>Tue, 18 Sep 2007 14:51:37 -0400</pubDate>
      <title>Re: Zoom / Camera Control in subplot</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/156316#392895</link>
      <author>Ben </author>
      <description>Here is an example.  When the last line is executed the&lt;br&gt;
second plot becomes to large and overlaps the top axis. &lt;br&gt;
What I would like is for it zoom in on a region of the 3-d&lt;br&gt;
plot, keeping the axes size/position the same.  Not make the&lt;br&gt;
axes larger. The only way I have been able to make this work&lt;br&gt;
is to actually make a second figure and place it over the&lt;br&gt;
first.  There has to be a better way&lt;br&gt;
&lt;br&gt;
% --------------&lt;br&gt;
hfig = figure('Position',[200 200 800 600]);&lt;br&gt;
hax1 = axes('Position',[0.1 0.6 0.8 0.3]);&lt;br&gt;
plot([0:.1:10],sin([0:.1:10]));&lt;br&gt;
hax2 = axes('Position',[0.3 0.1 0.4 0.4]);&lt;br&gt;
[x,y,z] = sphere(24)&lt;br&gt;
axes(hax2);surf(x,y,z,'FaceColor',[0 0.2 0.8])&lt;br&gt;
axis vis3d&lt;br&gt;
%Now try to zoom on the sphere it takes over the plot&lt;br&gt;
camzoom(hax2,3)&lt;br&gt;
% --------------&lt;br&gt;
&lt;br&gt;
Thanks.</description>
    </item>
    <item>
      <pubDate>Wed, 19 Sep 2007 12:05:04 -0400</pubDate>
      <title>Re: Zoom / Camera Control in subplot</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/156316#393041</link>
      <author>Adam </author>
      <description>&quot;Ben &quot; &amp;lt;basburywvu.nospam@hotmial.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;fcoolp$llv$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Here is an example.  When the last line is executed the&lt;br&gt;
&amp;gt; second plot becomes to large and overlaps the top axis. &lt;br&gt;
&amp;gt; What I would like is for it zoom in on a region of the 3-d&lt;br&gt;
&amp;gt; plot, keeping the axes size/position the same.  Not make the&lt;br&gt;
&amp;gt; axes larger. The only way I have been able to make this work&lt;br&gt;
&amp;gt; is to actually make a second figure and place it over the&lt;br&gt;
&amp;gt; first.  There has to be a better way&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; % --------------&lt;br&gt;
&amp;gt; hfig = figure('Position',[200 200 800 600]);&lt;br&gt;
&amp;gt; hax1 = axes('Position',[0.1 0.6 0.8 0.3]);&lt;br&gt;
&amp;gt; plot([0:.1:10],sin([0:.1:10]));&lt;br&gt;
&amp;gt; hax2 = axes('Position',[0.3 0.1 0.4 0.4]);&lt;br&gt;
&amp;gt; [x,y,z] = sphere(24)&lt;br&gt;
&amp;gt; axes(hax2);surf(x,y,z,'FaceColor',[0 0.2 0.8])&lt;br&gt;
&amp;gt; axis vis3d&lt;br&gt;
&amp;gt; %Now try to zoom on the sphere it takes over the plot&lt;br&gt;
&amp;gt; camzoom(hax2,3)&lt;br&gt;
&amp;gt; % --------------&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks.&lt;br&gt;
&lt;br&gt;
Interesting.  If your data is of the form z = f(x, y) you&lt;br&gt;
may have to manually clip your data.&lt;br&gt;
&lt;br&gt;
Two dockable figures may be sufficient?&lt;br&gt;
&lt;br&gt;
hfig = figure('WindowStyle', 'docked');&lt;br&gt;
plot([0:.1:10],sin([0:.1:10]));&lt;br&gt;
&lt;br&gt;
hfig2 = figure('WindowStyle', 'docked')&lt;br&gt;
hax2 = axes;&lt;br&gt;
[x,y,z] = sphere(24);&lt;br&gt;
axes(hax2);surf(x,y,z,'FaceColor',[0 0.2 0.8])&lt;br&gt;
axis vis3d&lt;br&gt;
&lt;br&gt;
Clicking &quot;Top/Bottom Tile&quot; in the top right gives a similar&lt;br&gt;
layout.&lt;br&gt;
&lt;br&gt;
~Adam</description>
    </item>
    <item>
      <pubDate>Wed, 19 Sep 2007 19:13:16 -0400</pubDate>
      <title>Re: Zoom / Camera Control in subplot</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/156316#393114</link>
      <author>Ben </author>
      <description>&quot;Adam &quot; &amp;lt;not.my.email@mathworks.com&amp;gt; wrote in message &amp;gt; &lt;br&gt;
&amp;gt; Interesting.  If your data is of the form z = f(x, y) you&lt;br&gt;
&amp;gt; may have to manually clip your data.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Two dockable figures may be sufficient?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; hfig = figure('WindowStyle', 'docked');&lt;br&gt;
&amp;gt; plot([0:.1:10],sin([0:.1:10]));&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; hfig2 = figure('WindowStyle', 'docked')&lt;br&gt;
&amp;gt; hax2 = axes;&lt;br&gt;
&amp;gt; [x,y,z] = sphere(24);&lt;br&gt;
&amp;gt; axes(hax2);surf(x,y,z,'FaceColor',[0 0.2 0.8])&lt;br&gt;
&amp;gt; axis vis3d&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Clicking &quot;Top/Bottom Tile&quot; in the top right gives a similar&lt;br&gt;
&amp;gt; layout.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; ~Adam&lt;br&gt;
&lt;br&gt;
Thanks for the response.  However, I don't know how to&lt;br&gt;
implement something like that in my case.  The above was&lt;br&gt;
just an example of what happens when zooming&lt;br&gt;
I am actually doing something similar with the plots but in&lt;br&gt;
a GUI created in GUIDE.  And I don't think you can really&lt;br&gt;
dock a figure into a window in a GUI.  It would be nice&lt;br&gt;
though to restrict the viewable area of the axis to a&lt;br&gt;
specific location.  Sort of like put the plot axes in a&lt;br&gt;
frame so it could not move or spill over covering out&lt;br&gt;
uicontrols.&lt;br&gt;
The only thing I can think off is to build the GUI using&lt;br&gt;
multiple figs(which I don't really want to do).&lt;br&gt;
I have also attempted to restrict the data created (like you&lt;br&gt;
mentioned) but still can't quite get the view I want without&lt;br&gt;
using either zoom or camera commands which change the size&lt;br&gt;
of the plot axis displayed on the fig.&lt;br&gt;
&lt;br&gt;
Thanks for the input.</description>
    </item>
    <item>
      <pubDate>Wed, 19 Sep 2007 19:39:24 -0400</pubDate>
      <title>Re: Zoom / Camera Control in subplot</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/156316#393116</link>
      <author>Adam </author>
      <description>&quot;Ben &quot; &amp;lt;basburywvu.nospam@hotmial.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;fcrscc$jtr$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Adam &quot; &amp;lt;not.my.email@mathworks.com&amp;gt; wrote in message &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Interesting.  If your data is of the form z = f(x, y) you&lt;br&gt;
&amp;gt; &amp;gt; may have to manually clip your data.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Two dockable figures may be sufficient?&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; hfig = figure('WindowStyle', 'docked');&lt;br&gt;
&amp;gt; &amp;gt; plot([0:.1:10],sin([0:.1:10]));&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; hfig2 = figure('WindowStyle', 'docked')&lt;br&gt;
&amp;gt; &amp;gt; hax2 = axes;&lt;br&gt;
&amp;gt; &amp;gt; [x,y,z] = sphere(24);&lt;br&gt;
&amp;gt; &amp;gt; axes(hax2);surf(x,y,z,'FaceColor',[0 0.2 0.8])&lt;br&gt;
&amp;gt; &amp;gt; axis vis3d&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Clicking &quot;Top/Bottom Tile&quot; in the top right gives a similar&lt;br&gt;
&amp;gt; &amp;gt; layout.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; ~Adam&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks for the response.  However, I don't know how to&lt;br&gt;
&amp;gt; implement something like that in my case.  The above was&lt;br&gt;
&amp;gt; just an example of what happens when zooming&lt;br&gt;
&amp;gt; I am actually doing something similar with the plots but in&lt;br&gt;
&amp;gt; a GUI created in GUIDE.  And I don't think you can really&lt;br&gt;
&amp;gt; dock a figure into a window in a GUI.  It would be nice&lt;br&gt;
&amp;gt; though to restrict the viewable area of the axis to a&lt;br&gt;
&amp;gt; specific location.  Sort of like put the plot axes in a&lt;br&gt;
&amp;gt; frame so it could not move or spill over covering out&lt;br&gt;
&amp;gt; uicontrols.&lt;br&gt;
&amp;gt; The only thing I can think off is to build the GUI using&lt;br&gt;
&amp;gt; multiple figs(which I don't really want to do).&lt;br&gt;
&amp;gt; I have also attempted to restrict the data created (like you&lt;br&gt;
&amp;gt; mentioned) but still can't quite get the view I want without&lt;br&gt;
&amp;gt; using either zoom or camera commands which change the size&lt;br&gt;
&amp;gt; of the plot axis displayed on the fig.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks for the input.&lt;br&gt;
&lt;br&gt;
yeah, weird situation.  What I would do, make a new figure&lt;br&gt;
window for the 3d graph.  You can add this to the opening&lt;br&gt;
function&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;hFig = figure;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set(hFig, 'MenuBar', 'none', 'Toolbar', 'figure')&lt;br&gt;
&lt;br&gt;
&amp;nbsp;% create callback to prevent figure from being &lt;br&gt;
&amp;nbsp;% explicitly closed&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set(hFig, 'CloseRequestFcn', ...&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;'guiServoLoop(''fig_CloseFcn'',gcbo,[],guidata(gcbo))');&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;handles.figGraph = hFig;   % add figure to handle list&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;guidata(hObject, handles)  % saves update to handles&lt;br&gt;
&lt;br&gt;
then add the function&lt;br&gt;
&lt;br&gt;
% --- Executes upon close request to graph window&lt;br&gt;
function fig_CloseFcn(hObject, eventdata, handles)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;%do nothing&lt;br&gt;
&lt;br&gt;
and add to your main figure's deletefcn or closerequestfcn&lt;br&gt;
(not sure if it matters, I'm using the deleteFcn) the&lt;br&gt;
following line&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;delete(handles.figGraph)&lt;br&gt;
&lt;br&gt;
otherwise I have no idea, gl.&lt;br&gt;
&lt;br&gt;
~Adam</description>
    </item>
    <item>
      <pubDate>Thu, 20 Sep 2007 00:48:29 -0400</pubDate>
      <title>Re: Zoom / Camera Control in subplot</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/156316#393133</link>
      <author>Ben </author>
      <description>&quot;Adam &quot; &amp;lt;not.my.email@mathworks.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; yeah, weird situation.  What I would do, make a new figure&lt;br&gt;
&amp;gt; window for the 3d graph.  You can add this to the opening&lt;br&gt;
&amp;gt; function&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt;     hFig = figure;&lt;br&gt;
&amp;gt;     set(hFig, 'MenuBar', 'none', 'Toolbar', 'figure')&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt;  % create callback to prevent figure from being &lt;br&gt;
&amp;gt;  % explicitly closed&lt;br&gt;
&amp;gt;     set(hFig, 'CloseRequestFcn', ...&lt;br&gt;
&amp;gt;    'guiServoLoop(''fig_CloseFcn'',gcbo,[],guidata(gcbo))');&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt;     handles.figGraph = hFig;   % add figure to handle list&lt;br&gt;
&amp;gt;     guidata(hObject, handles)  % saves update to handles&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; then add the function&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; % --- Executes upon close request to graph window&lt;br&gt;
&amp;gt; function fig_CloseFcn(hObject, eventdata, handles)&lt;br&gt;
&amp;gt;     %do nothing&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; and add to your main figure's deletefcn or closerequestfcn&lt;br&gt;
&amp;gt; (not sure if it matters, I'm using the deleteFcn) the&lt;br&gt;
&amp;gt; following line&lt;br&gt;
&amp;gt;     delete(handles.figGraph)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; otherwise I have no idea, gl.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; ~Adam&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Yeah, I don't think I have any other option but to create a&lt;br&gt;
separate figure for the 3-d graph that I need to&lt;br&gt;
zoom/explore since the plot axes keeps growing inside the&lt;br&gt;
main GUI window.  &lt;br&gt;
Thank you for the tips.  That should help me control the&lt;br&gt;
extra figure a little better so the end user doesn't close&lt;br&gt;
it by mistake,&lt;br&gt;
&lt;br&gt;
Thanks Again.</description>
    </item>
    <item>
      <pubDate>Fri, 21 Sep 2007 07:15:27 -0400</pubDate>
      <title>Re: Zoom / Camera Control in subplot</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/156316#393331</link>
      <author>Sonsoles Romero Garc&#237;a</author>
      <description>I have the same problem, but creating a new window is NOT an&lt;br&gt;
option for me. I need to zoom/explore a 3-d graph inside a&lt;br&gt;
panel of a GUI.&lt;br&gt;
A similar problem happens if the graphic is an histogram or&lt;br&gt;
a bar graphic (only when the parent of the axes is a panel&lt;br&gt;
the graphic grows all over the panel, it is interesting that&lt;br&gt;
this doesn't happen if the parent is a figure).&lt;br&gt;
&lt;br&gt;
For example, using Ben's example:&lt;br&gt;
Zoom this is ok&lt;br&gt;
hfig = figure('Position',[200 200 800 600]);&lt;br&gt;
hax1 = axes('Position',[0.1 0.6 0.8 0.3]);&lt;br&gt;
plot([0:.1:10],sin([0:.1:10]));&lt;br&gt;
hax2 = axes('Position',[0.3 0.1 0.4 0.4]);&lt;br&gt;
x = 1:1:100; y = 100*rand(1,1000);&lt;br&gt;
axes(hax2);&lt;br&gt;
hist(y,x,'FaceColor',[0 0.2 0.8]);&lt;br&gt;
&lt;br&gt;
But, zoom this and you'll see what happens.&lt;br&gt;
hfig = figure('Position',[200 200 800 600]);&lt;br&gt;
panel = uipanel('position',[0.05 0.05 0.9 0.9]);&lt;br&gt;
hax1 = axes('Position',[0.1 0.6 0.8 0.3],'parent',panel);&lt;br&gt;
plot([0:.1:10],sin([0:.1:10]));&lt;br&gt;
hax2 = axes('Position',[0.3 0.1 0.4 0.4],'parent',panel);&lt;br&gt;
x = 1:1:100; y = 100*rand(1,1000);&lt;br&gt;
axes(hax2);&lt;br&gt;
hist(y,x,'FaceColor',[0 0.2 0.8]);&lt;br&gt;
&lt;br&gt;
I am using Matlab 7.1.0.246 (R14) Service Pack 3</description>
    </item>
    <item>
      <pubDate>Mon, 22 Oct 2007 10:08:30 -0400</pubDate>
      <title>Re: Zoom / Camera Control in subplot</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/156316#397784</link>
      <author>Maarten Lont</author>
      <description>&quot;Sonsoles Romero Garc&#237;a&quot; &amp;lt;krokketilla@gmail.com&amp;gt; wrote in&lt;br&gt;
message &amp;lt;fcvr2f$p15$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; I have the same problem, but creating a new window is NOT an&lt;br&gt;
&amp;gt; option for me. I need to zoom/explore a 3-d graph inside a&lt;br&gt;
&amp;gt; panel of a GUI.&lt;br&gt;
&amp;gt; A similar problem happens if the graphic is an histogram or&lt;br&gt;
&amp;gt; a bar graphic (only when the parent of the axes is a panel&lt;br&gt;
&amp;gt; the graphic grows all over the panel, it is interesting that&lt;br&gt;
&amp;gt; this doesn't happen if the parent is a figure).&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; For example, using Ben's example:&lt;br&gt;
&amp;gt; Zoom this is ok&lt;br&gt;
&amp;gt; hfig = figure('Position',[200 200 800 600]);&lt;br&gt;
&amp;gt; hax1 = axes('Position',[0.1 0.6 0.8 0.3]);&lt;br&gt;
&amp;gt; plot([0:.1:10],sin([0:.1:10]));&lt;br&gt;
&amp;gt; hax2 = axes('Position',[0.3 0.1 0.4 0.4]);&lt;br&gt;
&amp;gt; x = 1:1:100; y = 100*rand(1,1000);&lt;br&gt;
&amp;gt; axes(hax2);&lt;br&gt;
&amp;gt; hist(y,x,'FaceColor',[0 0.2 0.8]);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; But, zoom this and you'll see what happens.&lt;br&gt;
&amp;gt; hfig = figure('Position',[200 200 800 600]);&lt;br&gt;
&amp;gt; panel = uipanel('position',[0.05 0.05 0.9 0.9]);&lt;br&gt;
&amp;gt; hax1 = axes('Position',[0.1 0.6 0.8 0.3],'parent',panel);&lt;br&gt;
&amp;gt; plot([0:.1:10],sin([0:.1:10]));&lt;br&gt;
&amp;gt; hax2 = axes('Position',[0.3 0.1 0.4 0.4],'parent',panel);&lt;br&gt;
&amp;gt; x = 1:1:100; y = 100*rand(1,1000);&lt;br&gt;
&amp;gt; axes(hax2);&lt;br&gt;
&amp;gt; hist(y,x,'FaceColor',[0 0.2 0.8]);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I am using Matlab 7.1.0.246 (R14) Service Pack 3&lt;br&gt;
&lt;br&gt;
I found a workaround on a website. Add the line:&lt;br&gt;
&lt;br&gt;
zoom on;&lt;br&gt;
&lt;br&gt;
after you plot the data. Now you can zoom on every plot.&lt;br&gt;
&lt;br&gt;
Best regards,&lt;br&gt;
Maarten</description>
    </item>
    <item>
      <pubDate>Tue, 04 Dec 2007 19:58:53 -0500</pubDate>
      <title>Re: Zoom / Camera Control in subplot</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/156316#404518</link>
      <author>Sonsoles Romero Garc&amp;#xED;a</author>
      <description>&quot;Maarten Lont&quot; &amp;lt;m.lont@student.tue.nl&amp;gt; wrote in message&lt;br&gt;
&amp;lt;ffhsqu$h66$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Sonsoles Romero Garc&#237;a&quot; &amp;lt;krokketilla@gmail.com&amp;gt; wrote in&lt;br&gt;
&amp;gt; message &amp;lt;fcvr2f$p15$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; I have the same problem, but creating a new window is NOT an&lt;br&gt;
&amp;gt; &amp;gt; option for me. I need to zoom/explore a 3-d graph inside a&lt;br&gt;
&amp;gt; &amp;gt; panel of a GUI.&lt;br&gt;
&amp;gt; &amp;gt; A similar problem happens if the graphic is an histogram or&lt;br&gt;
&amp;gt; &amp;gt; a bar graphic (only when the parent of the axes is a panel&lt;br&gt;
&amp;gt; &amp;gt; the graphic grows all over the panel, it is interesting that&lt;br&gt;
&amp;gt; &amp;gt; this doesn't happen if the parent is a figure).&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; For example, using Ben's example:&lt;br&gt;
&amp;gt; &amp;gt; Zoom this is ok&lt;br&gt;
&amp;gt; &amp;gt; hfig = figure('Position',[200 200 800 600]);&lt;br&gt;
&amp;gt; &amp;gt; hax1 = axes('Position',[0.1 0.6 0.8 0.3]);&lt;br&gt;
&amp;gt; &amp;gt; plot([0:.1:10],sin([0:.1:10]));&lt;br&gt;
&amp;gt; &amp;gt; hax2 = axes('Position',[0.3 0.1 0.4 0.4]);&lt;br&gt;
&amp;gt; &amp;gt; x = 1:1:100; y = 100*rand(1,1000);&lt;br&gt;
&amp;gt; &amp;gt; axes(hax2);&lt;br&gt;
&amp;gt; &amp;gt; hist(y,x,'FaceColor',[0 0.2 0.8]);&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; But, zoom this and you'll see what happens.&lt;br&gt;
&amp;gt; &amp;gt; hfig = figure('Position',[200 200 800 600]);&lt;br&gt;
&amp;gt; &amp;gt; panel = uipanel('position',[0.05 0.05 0.9 0.9]);&lt;br&gt;
&amp;gt; &amp;gt; hax1 = axes('Position',[0.1 0.6 0.8 0.3],'parent',panel);&lt;br&gt;
&amp;gt; &amp;gt; plot([0:.1:10],sin([0:.1:10]));&lt;br&gt;
&amp;gt; &amp;gt; hax2 = axes('Position',[0.3 0.1 0.4 0.4],'parent',panel);&lt;br&gt;
&amp;gt; &amp;gt; x = 1:1:100; y = 100*rand(1,1000);&lt;br&gt;
&amp;gt; &amp;gt; axes(hax2);&lt;br&gt;
&amp;gt; &amp;gt; hist(y,x,'FaceColor',[0 0.2 0.8]);&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; I am using Matlab 7.1.0.246 (R14) Service Pack 3&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I found a workaround on a website. Add the line:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; zoom on;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; after you plot the data. Now you can zoom on every plot.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Best regards,&lt;br&gt;
&amp;gt; Maarten&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
The problem is when you zoom on the histogram because it&lt;br&gt;
becomes bigger than the axes area (taking up all the panel)&lt;br&gt;
and the same happens when I try to zoom a 3D graphic. I&lt;br&gt;
don't know how to control the zoom for a 3D plot inside its&lt;br&gt;
axes.</description>
    </item>
  </channel>
</rss>

