'Clipping' the quiver plot

6 visualizzazioni (ultimi 30 giorni)
Peng
Peng il 25 Nov 2014
Commentato: Bjorn Gustavsson il 25 Mag 2022
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.

Risposta accettata

Sean de Wolski
Sean de Wolski il 25 Nov 2014
Modificato: Sean de Wolski il 25 Nov 2014
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';

Più risposte (2)

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

Accedi per commentare.


William Thielicke
William Thielicke il 16 Lug 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 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 Commenti
William Thielicke
William Thielicke il 25 Mag 2022
Adding axis equal seems to be a workaround... So it is a bug?
Bjorn Gustavsson
Bjorn Gustavsson il 25 Mag 2022
Definitely a "feature". Make a bug-report, or enhancement request, whatever it's called.

Accedi per commentare.

Categorie

Scopri di più su Vector Fields in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by