'Clipping' the quiver plot

29 views (last 30 days)
Peng
Peng 在25 Nov 2014
Commented: William Thielicke 在6 May 2022 at 14:53
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.

Accepted Answer

Sean de Wolski
Sean de Wolski 在25 Nov 2014
Edited:Sean de Wolski 在25 Nov 2014
在关闭的剪裁是R2014bI would expect:
quiver(0.5,0.5,1,1)
axis([0 1 0 1])
ax = gca;
斧子。剪裁='off';

More Answers (2)

Peng
Peng 在27 Nov 2014
The problem was I'm using 2013, and after switching to 2014, it works. Thanks.
1 Comment
Sean de Wolski
Sean de Wolski 在1 Dec 2014
A lot of the legacy clipping issues were fixed in 14b.

Sign in to comment.


William Thielicke
William Thielicke 在16 Jul 2021
When anything uses "axis image", then it is not possible to disable clipping anmore... Is this desired behaviour?
figure;
imagesc(rand(100,100));hold;
quiver(rand(100,100),rand(100,100)*20,'Autoscale','off');holdoff;
axisoff;
axisimage;
set(gca,'Clipping','on')
This doesn't work. It only works like this:
figure;
imagesc(rand(100,100));hold;
quiver(rand(100,100),rand(100,100)*20,'Autoscale','off');holdoff;
axisoff;
%axis image;
set(gca,'Clipping','on')
1 Comment
William Thielicke
William Thielicke 在6 May 2022 at 14:53
This issue is still bothering me, and I can't believe that it is expected behaviour... Any input on this? Or ideas for a workaround?

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!