White NaNs with pcolor (matplotlib)

R

route6

Hi,

I am trying to display the NaNs in white color when I plot a data map
using pcolor with matplotlib. Does anyone know how to do that? By
default the NaNs are displayed in the color corresponding to the
lowest value in the colorbar.

Thanks,
C
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,291
Messages
2,571,453
Members
48,132
Latest member
AnneHarpur

Latest Threads

Top