How to move a contourf plot created on a second axes on the baclground
이전 댓글 표시
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
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Purple에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!