Black mask over pcolor plot
Ältere Kommentare anzeigen
I have two matrices of the same size. The first one is function of two variables, which is to be displayed using pcolor. But then I need to mask (paint with black) part of this plot using the mask defined by the second matrix (zeros for transparent cells, ones for those to be masked). I need the colorbar and caxis to remain from the main pcolor of the function. How can I do this? I suspect this is something to do with AlphaData property of the second graph, but so far I only see the solutions for imshow, but not for pcolor.
Akzeptierte Antwort
Weitere Antworten (1)
Image Analyst
am 3 Dez. 2019
0 Stimmen
An example of what you'd like to see would be good. In the meantime, check out patch() and fill().
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!