How to move a contourf plot created on a second axes on the baclground
Mostrar comentarios más antiguos
Hi, as sown in the example below, I create a imagesc plot and then on a new axe a contourf plot. How do you move the second axe on the background without having to create it first. I woulb be looking for the equivalent of uistack but for axes.
figure
ax1 = axes; % Create first set of axes
colormap(ax1,cool(10)); % First colormap
I1 = imagesc(peaks);
freezeColors
ax2 = axes; % Create second set of axes
axis(ax2,'off')
[C2, h2] = contourf(peaks,[0 0]);axis(ax2,'off')
colormap(ax2,gray)
set(h2,'LineWidth',2,'LineColor','k')
Thanks,
Matlab R2013a
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Purple 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!