From: Jan on
Hi,
I wish to create a vector plot with different non-dimensional length scales on x and y-axis, e.g. the length (l) and diameter (d) of a cylinder. The final plot should have the original aspect ratio, which is simple by incorporating the l/d.
However, the quiver plot resists to scale properly, see this example:
load('wind','x','y','u','v')
x=x(1,:,1)/5;
y=y(:,1,1)/80;
u=u(:,:,1);v=v(:,:,1);
figure(1);imagesc(x,y,sqrt(u.^2+v.^2))
set(gca,'YDir','normal')
hold on
quiver(x,y,u,v,'w')
hold off
xlabel('x/d');ylabel('y/l')

Including the scale factor into the quiver command
quiver(x,y,u,v*0.0625,'r')
fixes the arrows' lengths and directions, but messes up the arrow heads.
Big thanks for any ideas!
From: Jan on
I finally used a crude work-around including the export of a background png and a transparent quiver image and superimposed them thereafter. Anybody with a better idea? It should be possible to use the quiver command with other aspect ratios than [1 1 1]...?!