home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 572667885

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/3590#issuecomment-572667885 https://api.github.com/repos/pydata/xarray/issues/3590 572667885 MDEyOklzc3VlQ29tbWVudDU3MjY2Nzg4NQ== 10194086 2020-01-09T17:29:57Z 2020-01-09T17:29:57Z MEMBER

As a workaround (until #3601) is finished you can do:

``` python import matplotlib from matplotlib import pyplot from xarray import DataArray import numpy

da = DataArray(numpy.linspace(0, 1)[numpy.newaxis, :]*numpy.linspace(0, 1)[:, numpy.newaxis])

cmap = matplotlib.cm.viridis

h = da.plot.contourf(vmin=.3, cmap=cmap)

cmap = h.get_cmap() cmap.set_under('w')

h.set_cmap(cmap) ```

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