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

Raster and reduce and axes direction #595

Closed
vascotenner opened this issue Apr 7, 2016 · 2 comments
Closed

Raster and reduce and axes direction #595

vascotenner opened this issue Apr 7, 2016 · 2 comments
Labels
type: bug Something isn't correct or isn't working
Milestone

Comments

@vascotenner
Copy link
Contributor

When I reduce the x axis of a Raster object, the direction of the Y axis is swapped.

Reducing the Y axis works fine:

%%opts Raster [colorbar=True]
img = hv.Raster(np.rot90(np.meshgrid(*[np.arange(5)]*2)[1][::-1]))
img+img.sample(y=2)+img.reduce(y=np.mean).to.curve('x','z')

download 1

While reducing the X axis fails:

%%opts Raster [colorbar=True]
img = hv.Raster(np.meshgrid(*[np.arange(5)]*2)[1][::-1])
img+img.sample(x=2)+img.reduce(x=np.mean).to.curve('y','z')

download

@philippjfr philippjfr added the type: bug Something isn't correct or isn't working label Apr 29, 2016
@philippjfr philippjfr added this to the v1.5.0 milestone Apr 29, 2016
@philippjfr
Copy link
Member

Fixed in #672. Closing.

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't correct or isn't working
Projects
None yet
Development

No branches or pull requests

2 participants