home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 269312214

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/pull/1171#issuecomment-269312214 https://api.github.com/repos/pydata/xarray/issues/1171 269312214 MDEyOklzc3VlQ29tbWVudDI2OTMxMjIxNA== 10050469 2016-12-27T11:12:37Z 2016-12-27T11:12:37Z MEMBER

This fixes the failing tests on MPL2. Two of the tests were failing because of how mpl chooses to do things, which makes me think that the tests are not very robust. My fixes are also rather simple...

For example the test_discrete_colormap_int_levels test, reproduced here:

```python import xarray as xr import matplotlib.pyplot as plt import numpy as np import matplotlib

x = np.arange(start=0, stop=10, step=2) y = np.arange(start=9, stop=-7, step=-3) xy = np.dstack(np.meshgrid(x, y)) distance = np.linalg.norm(xy, axis=2) darray = xr.DataArray(distance, list(zip(('y', 'x'), (y, x))))

darray.plot(levels=7, vmin=4, vmax=8, extend='both') plt.title('mpl {}'.format(matplotlib.version)) ```

produces:

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