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 descriptionThe '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
|
{ "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 |