vcs icon indicating copy to clipboard operation
vcs copied to clipboard

Masked values show data=0 in interact() mode

Open jypeter opened this issue 7 years ago • 0 comments

@doutriaux1 I have installed 2.8.0 at last, and I'm testing some stuff !

I'm plotting a simple matrix with 0, 1 and masked. When I'm in interact mode, and I click on the masked values, they should data=0 when it should rather be masked or something like that

>>> import vcs
>>> import numpy as np
>>> import numpy as np
>>> a = np.ma.identity(10)
>>> a[4:7, 4:7] = np.ma.masked
>>> x = vcs.init()
>>> x.plot(a)
/home/share/unix_files/cdat/miniconda2/envs/uvcdat-2.8.0/lib/python2.7/site-packages/numpy/ma/core.py:3337: MaskedArrayFutureWarning: setting an item on a masked array which has a shared mask will not copy the mask and also change the original mask array in the future.
Check the NumPy 1.11 release notes for more information.
  self.__setitem__(slice(i, j), value)
<vcs.displayplot.Dp object at 0x2ac2b07afc58>
>>> x.interact()

jypeter avatar Feb 21 '17 16:02 jypeter