how to send pcolor contour to back when updating contour z value?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
roudan
el 14 de Jul. de 2021
Comentada: roudan
el 15 de Jul. de 2021
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/684748/image.jpeg)
2 comentarios
Walter Roberson
el 15 de Jul. de 2021
Note: as of R2014b the available options changed; see https://blogs.mathworks.com/graphics/2014/11/04/sortmethod/
Respuesta aceptada
DGM
el 15 de Jul. de 2021
If you have the handle of the object which represents the lines, you should be able to reorder the stack:
uistack(lineplothandle,'top')
Más respuestas (0)
Ver también
Categorías
Más información sobre Contour Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!