quiver arrows always appear below semitransparent layer
Mostrar comentarios más antiguos
I am attempting to plot quiver arrows on top of a semitransparent pcolor layer. However, the arrows only appear below the semitransparent layer. It does not seem to depend on the order in which I plot the layers, and uistack has no effect. How can I get the arrows to appear on top?
figure('renderer','opengl')
imagesc(A); hold on
colormap(gray(256))
freezeColors;
% Overlay semitransparent ice speed:
h = pcolor(x,y,speed)
colormap(jet)
shading interp
set(h,'facealpha',.4)
% overlay velocity vectors:
hq = quiver(x,y,vx,vy,'k');

4 comentarios
Joseph Cheng
el 16 de Sept. de 2014
odd i can't seem to recreate your results. i created this to test it out.
figure('renderer','opengl')
base = imread('circuit.tif');
imagesc(base);hold on
colormap(gray(256))
freezeColors;
trans = peaks;
trans = imresize(trans,size(base)/2);
trans = pcolor(20*trans);
colormap(jet)
shading interp, set(trans,'faceAlpha',.4);
[x,y] = meshgrid(1:5:272,1:5:280);
u = cos(x).*y;
v = sin(x).*y;
quiver(x,y(end:-1:1,:),u,v,'k')
does it still happen?
Chad Greene
el 16 de Sept. de 2014
Editada: Chad Greene
el 16 de Sept. de 2014
Joseph Cheng
el 16 de Sept. de 2014
odd... still can't reproduce it and i jumped all way back to 2011a. I am using windows so maybe that's it? The only thing i can think next is changing the children order as changing the renderer to either zbuffer wouldn't let you have transparency?
get(gca,'Children') and set(gca,'Children',%reordered%)
Chad Greene
el 16 de Sept. de 2014
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Vector Fields en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

