<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/169173</link>
    <title>MATLAB Central Newsreader - "Destroy" Axes</title>
    <description>Feed for thread: "Destroy" Axes</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2008 by The 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>The MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Tue, 13 May 2008 12:10:18 -0400</pubDate>
      <title>"Destroy" Axes</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/169173#431776</link>
      <author>Luca Cerone</author>
      <description>Hi,&lt;br&gt;
I think it's a stupid thing but I couldn't succeed in coping&lt;br&gt;
it with.&lt;br&gt;
&lt;br&gt;
I have code like this:&lt;br&gt;
&lt;br&gt;
fh=figure(....);&lt;br&gt;
ah1=axes('Parent',fh,....,'Position',[.1 .1 .4 .5]);&lt;br&gt;
plot(ah1,x1,y1);&lt;br&gt;
&lt;br&gt;
ah2=axes('Parent',fh,....,'Position',[.5 .1 .4 .5]);&lt;br&gt;
plot(ah2,x2,y2);&lt;br&gt;
&lt;br&gt;
Till here no problem,&lt;br&gt;
After doing some operations i want to delete these two plots&lt;br&gt;
and substitute them with an other one&lt;br&gt;
(something like ah3=axes('Parent',fh,....,'Position',[.1 .1&lt;br&gt;
.8 .5]);&lt;br&gt;
plot(ah3,x3,y3);)&lt;br&gt;
&lt;br&gt;
Of course I can write over the two plot, but I would like to&lt;br&gt;
completely remove them (something like close(ah1), close(ah2));&lt;br&gt;
&lt;br&gt;
Is there a way to make this???&lt;br&gt;
Thank you very much in advance, best wishes -Luca-&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 13 May 2008 13:13:03 -0400</pubDate>
      <title>Re:</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/169173#431786</link>
      <author>French Caro</author>
      <description>"Luca Cerone" &amp;lt;cerone@to-see.it&amp;gt; wrote in message&lt;br&gt;
&amp;lt;g0c0fa$5r1$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt; I think it's a stupid thing but I couldn't succeed in coping&lt;br&gt;
&amp;gt; it with.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I have code like this:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; fh=figure(....);&lt;br&gt;
&amp;gt; ah1=axes('Parent',fh,....,'Position',[.1 .1 .4 .5]);&lt;br&gt;
&amp;gt; plot(ah1,x1,y1);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; ah2=axes('Parent',fh,....,'Position',[.5 .1 .4 .5]);&lt;br&gt;
&amp;gt; plot(ah2,x2,y2);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Till here no problem,&lt;br&gt;
&amp;gt; After doing some operations i want to delete these two plots&lt;br&gt;
&amp;gt; and substitute them with an other one&lt;br&gt;
&amp;gt; (something like ah3=axes('Parent',fh,....,'Position',[.1 .1&lt;br&gt;
&amp;gt; .8 .5]);&lt;br&gt;
&amp;gt; plot(ah3,x3,y3);)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Of course I can write over the two plot, but I would like to&lt;br&gt;
&amp;gt; completely remove them (something like close(ah1),&lt;br&gt;
close(ah2));&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Is there a way to make this???&lt;br&gt;
&amp;gt; Thank you very much in advance, best wishes -Luca-&lt;br&gt;
&amp;gt; &lt;br&gt;
You should use delete function :&lt;br&gt;
delete(ah1)&lt;br&gt;
&lt;br&gt;
Caroline&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 13 May 2008 13:16:03 -0400</pubDate>
      <title>Re:</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/169173#431789</link>
      <author>us</author>
      <description>"Luca Cerone":&lt;br&gt;
&amp;lt;SNIP needs to choose the correct function...&lt;br&gt;
&lt;br&gt;
&amp;gt; ah1=axes('Parent',fh,....,'Position',[.1 .1 .4 .5]);&lt;br&gt;
&amp;gt; close(ah1)...&lt;br&gt;
&lt;br&gt;
...should be&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;delete(ah1);&lt;br&gt;
% also, look at&lt;br&gt;
%    cla(ah);&lt;br&gt;
&lt;br&gt;
us&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 13 May 2008 15:05:05 -0400</pubDate>
      <title>Re:</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/169173#431817</link>
      <author>Luca Cerone</author>
      <description>Thank to you and Caroline, too!&lt;br&gt;
You've been very useful ^_^&lt;br&gt;
&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt;      delete(ah1);&lt;br&gt;
&amp;gt; % also, look at&lt;br&gt;
&amp;gt; %    cla(ah);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; us&lt;br&gt;
&lt;br&gt;
</description>
    </item>
  </channel>
</rss>
