I would like to change the character representing masked values ββin printed masks. I get:
>>> print ma.array([[1, 0,0,1],[1,0,1,0]],mask=[[0,0,0,1],[1,1,0,1]])
[[1 0 0 --]
[-- -- 1 --]]
I would prefer:
[[1 0 0 -]
[- - 1 -]]
I tried to install numpy.ma.masked_print_option
, but it does not work:
>>> numpy.ma.masked_print_options = '-'
>>> print ma.array([[1, 0,0,1],[1,0,1,0]],mask=[[0,0,0,1],[1,1,0,1]])
[[1 0 0 --]
[-- -- 1 --]]