home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 351825070

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/issues/1780#issuecomment-351825070 https://api.github.com/repos/pydata/xarray/issues/1780 351825070 MDEyOklzc3VlQ29tbWVudDM1MTgyNTA3MA== 10050469 2017-12-14T20:21:18Z 2017-12-14T20:21:18Z MEMBER

imshow with all NaNs works for me on matplotlib 1.5.2

ups yes, I might have been confused by the warning, but it does work with latest mpl yes. The warning says:

``` In [1]: import numpy as np

In [2]: import matplotlib.pyplot as plt

In [3]: a = np.full((2, 2), np.NaN)

In [4]: plt.imshow(a)
Out[4]: <matplotlib.image.AxesImage at 0x7f6e2a8ba710>

In [5]: plt.show() /home/mowglie/.pyvirtualenvs/py3/lib/python3.5/site-packages/matplotlib/colors.py:897: UserWarning: Warning: converting a masked element to nan. dtype = np.min_scalar_type(value) /home/mowglie/.pyvirtualenvs/py3/lib/python3.5/site-packages/numpy/ma/core.py:748: UserWarning: Warning: converting a masked element to nan. data = np.array(a, copy=False, subok=subok) ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  282000017
Powered by Datasette · Queries took 0.815ms · About: xarray-datasette