I'm attempting to mask a data array, whereby for every value in the array less than 9 I wish to set this to 0. Every value greater than 9 I wish to set to 1. Such that when I multiply this array by the array I wish to mask, any value will either be multiplied by 0 (thus masking that data) or (1) i..e, that data will remain. Hopefully, that makes sense...!
I was wondering how matplotlib would plot two arrays of equal dimensions together, say if one element in the array was "nan" and the other corresponding element was say, 42. Would matplotlib automatically not plot this value?
I assume it would but I would just like some verification on this point. Many thanks.