From: Jan on 5 May 2010 05:07 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 23 May 2010 11:14 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]...?!
|
Pages: 1 Prev: How to get the original values back from some color image Next: coursework help |