how to send pcolor contour to back when updating contour z value?

조회 수: 1 (최근 30일)
roudan
roudan 2021년 7월 14일
댓글: roudan 2021년 7월 15일
HI
I used to use contourf() and plot() with correct order so line plot is always on the top of contourf. Now I change to use pcolor(), when I updated Z value in contour by doing h.ZData=zg_new; the contour becomes on the top of line plot such that I cannot see lines anymore. so how to send contour to the back when updaing z data? see attached for the piocture.
I found below answer and add get(gca, 'Renderer') after h.ZData=zg_new; and it didn't work for me. Any suggestion? Thanks

채택된 답변

DGM
DGM 2021년 7월 15일
If you have the handle of the object which represents the lines, you should be able to reorder the stack:
uistack(lineplothandle,'top')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Contour Plots에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by