Contourf and NaNs (how to make white regions transparent)

3 vues (au cours des 30 derniers jours)
Justin
Justin le 14 Jan 2013
Hello, I'm trying to make a contourf plot but certain areas of the data array have NaNs (only in the data matrix, the x and y meshgrid matrices are full). I'd like these NaNs to be transparent, and they are for NaNs on the boundary of the rectangle. But, contiguous NaN regions inside the data matrix are white instead of transparent. How can I make these transparent? Below is an example. Thanks,
-Justin

Réponses (0)

Catégories

En savoir plus sur Contour Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by