'Clipping' the quiver plot
    조회 수: 9 (최근 30일)
  
       이전 댓글 표시
    
I have a quiver plot in which some of the arrows are on the edge of the plot and pointing outwards. The portion of quiver arrows that are outside of the plot limit are invisible. I want to make that visible.
My research shows that there is a 'Clipping' option for quiver, it seems that by turning the 'Clipping' off, I will get what I want. However 'Clipping' off does not make any difference? What do I miss? Thanks.
댓글 수: 0
채택된 답변
  Sean de Wolski
      
      
 2014년 11월 25일
        
      편집: Sean de Wolski
      
      
 2014년 11월 25일
  
      In R2014b, turning the clipping off works as I would expect:
quiver(0.5,0.5,1,1)
axis([0 1 0 1])
ax = gca;
ax.Clipping = 'off';
댓글 수: 0
추가 답변 (2개)
  William Thielicke
      
 2021년 7월 16일
        When anything uses "axis image", then it is not possible to disable clipping anmore... Is this desired behaviour?
figure;
imagesc(rand(100,100));hold on;
quiver(rand(100,100),rand(100,100)*20,'Autoscale','off');hold off;
axis off;
axis image;
set(gca,'Clipping','on')
This doesn't work. It only works like this:
figure;
imagesc(rand(100,100));hold on;
quiver(rand(100,100),rand(100,100)*20,'Autoscale','off');hold off;
axis off;
%axis image;
set(gca,'Clipping','on')
댓글 수: 6
  Bjorn Gustavsson
      
 2022년 5월 25일
				Definitely a "feature". Make a bug-report, or enhancement request, whatever it's called.
참고 항목
카테고리
				Help Center 및 File Exchange에서 Vector Fields에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



