Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slicing with xarray backend does not work if axis is reversed #2658

Closed
drs251 opened this issue May 7, 2018 · 0 comments
Closed

Slicing with xarray backend does not work if axis is reversed #2658

drs251 opened this issue May 7, 2018 · 0 comments

Comments

@drs251
Copy link
Contributor

@drs251 drs251 commented May 7, 2018

This one is quite subtle: everything works nicely, until you try to slice a Curve or an Image:

import xarray as xr
import holoviews as hv
xs = np.arange(30)[::-1]
ys = np.random.rand(30)
array = xr.DataArray(ys, coords=[('x', xs)], name='y')
hv.Dataset(array).to(hv.Curve)[5:15]

Removing [::-1] solves the problem, but when working with real xarray objects, this is not so easy sometimes, so it would be great to fix this.

(This was tested on version 1.10.2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants