home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 353463740

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
353463740 MDU6SXNzdWUzNTM0NjM3NDA= 2379 Passing origin keyword to DataArray.plot.imshow does not behave as expected 10374429 closed 0     1 2018-08-23T16:41:27Z 2018-09-06T03:50:37Z 2018-09-06T03:50:37Z CONTRIBUTOR      

Code Sample

```python from numpy import arange from xarray import DataArray import matplotlib.pyplot as plt

a = DataArray(arange(100).reshape((10,10)), dims=('x', 'y'))

print('a[0, 0] ==', a.loc[0, 0])

for origin in ('upper', 'lower'): a.plot.imshow(size=2, origin=origin) plt.title('origin=%s' % origin) plt.show() ```

Problem description

The 'upper' case should plot the [0,0] block in the top left, and 'lower' should plot it in the bottom left, but the actual behavior is opposite. Passing origin='lower' also fails to flip the y-axis labels.

Output of xr.show_versions()

INSTALLED VERSIONS ------------------ commit: None python: 3.6.5.final.0 python-bits: 64 OS: Linux OS-release: 4.18.3-arch1-1-ARCH machine: x86_64 processor: byteorder: little LC_ALL: en_US.UTF-8 LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 xarray: 0.10.7 pandas: 0.23.1 numpy: 1.13.3 scipy: 1.0.0 netCDF4: 1.3.1 h5netcdf: None h5py: 2.7.1 Nio: None zarr: None bottleneck: 1.2.1 cyordereddict: None dask: 0.18.1 distributed: 1.22.0 matplotlib: 2.2.2 cartopy: None seaborn: 0.8.1 setuptools: 39.2.0 pip: 10.0.1 conda: 4.5.10 pytest: 3.6.2 IPython: 6.4.0 sphinx: 1.7.5
{
    "url": "https://api.github.com/repos/pydata/xarray/issues/2379/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 1 row from issues_id in issues_labels
  • 1 row from issue in issue_comments
Powered by Datasette · Queries took 0.616ms · About: xarray-datasette