<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/261680</link>
    <title>MATLAB Central Newsreader - patch over lines</title>
    <description>Feed for thread: patch over lines</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>Fri, 25 Sep 2009 20:08:03 -0400</pubDate>
      <title>patch over lines</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/261680#682734</link>
      <author>Darrel Robertson</author>
      <description>I have some streamlines and quiver arrows I want to patch over the top of to block out values that are inside my structure. However neither patch nor fill actually get displayed over the top of the lines, even when I specifically tell uistack to place it on top. Is there a simple way to patch over the top of the lines, without resorting to regriding to avoid the structure (which in my case is complex)?&lt;br&gt;
&lt;br&gt;
For a simple example:&lt;br&gt;
w=load('wind');&lt;br&gt;
i=10;&lt;br&gt;
u=w.u(:,:,i); v=w.v(:,:,i); x=w.x(:,:,i); y=w.y(:,:,i); &lt;br&gt;
pcolor(x,y,sqrt(u.^2+v.^2));shading('interp');colorbar&lt;br&gt;
hold on;&lt;br&gt;
quiver(x,y,u,v,'w-') % I now have a nice quiver plot&lt;br&gt;
theta=0:pi/8:2*pi;&lt;br&gt;
x2=100+10*sin(theta); y2=40+10*cos(theta); % a circle&lt;br&gt;
h=patch(x2,y2,'k'); &lt;br&gt;
&lt;br&gt;
If you run this you can still see the quiver arrows which I want to hide behind the circle. I've tried stuff like  'uistack(h,'top')' but I can't seem to cover up the arrows. I also have streamlines and other data and a more complex shape so I don't want to regrid. Any idea how to cover the arrows graphically?</description>
    </item>
    <item>
      <pubDate>Fri, 25 Sep 2009 21:53:01 -0400</pubDate>
      <title>Re: patch over lines</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/261680#682751</link>
      <author>Jerome Briot</author>
      <description>Hi,&lt;br&gt;
&lt;br&gt;
w=load('wind');&lt;br&gt;
i=10;&lt;br&gt;
u=w.u(:,:,i); v=w.v(:,:,i); x=w.x(:,:,i); y=w.y(:,:,i);&lt;br&gt;
pcolor(x,y,sqrt(u.^2+v.^2));shading('interp');colorbar&lt;br&gt;
hold on;&lt;br&gt;
quiver(x,y,u,v,'w-') % I now have a nice quiver plot&lt;br&gt;
theta=0:pi/8:2*pi;&lt;br&gt;
x2=100+10*sin(theta); y2=40+10*cos(theta); % a circle&lt;br&gt;
z2 = ones(1,numel(theta));&lt;br&gt;
h=patch(x2,y2,z2,'k'); &lt;br&gt;
&lt;br&gt;
Jerome</description>
    </item>
    <item>
      <pubDate>Tue, 29 Sep 2009 13:45:17 -0400</pubDate>
      <title>Re: patch over lines</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/261680#683404</link>
      <author>Darrel Robertson</author>
      <description>Thanks! That was exactly what I needed.</description>
    </item>
  </channel>
</rss>

