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

Implemented correct Raster.range #1255

Merged
merged 1 commit into from
Apr 10, 2017
Merged

Implemented correct Raster.range #1255

merged 1 commit into from
Apr 10, 2017

Conversation

philippjfr
Copy link
Member

Fix for #1020, it wasn't accessing the masked array directly and hence was returning inconsistent results with Image, which does.

%%opts Raster Image [colorbar=True]
tmp = np.random.rand(10,10)-0.5
tmp = np.ma.masked_where(tmp<=0, tmp)

hv.Image(tmp)+hv.Raster(tmp)

image

As we can see the masked values are no longer included in the range but are still indicated via the colorbar and the behavior is now consistent between Raster and Image.

@philippjfr philippjfr added the type: bug Something isn't correct or isn't working label Apr 8, 2017
@jlstevens
Copy link
Contributor

Looks good. Any tests we can add to make sure we don't lose the new (desired) behavior?

Otherwise happy to merge.

@philippjfr
Copy link
Member Author

Ready, merge when tests pass.

@jlstevens
Copy link
Contributor

Tests are passing. Merging.

@jlstevens jlstevens merged commit 9fcf1ee into master Apr 10, 2017
@philippjfr philippjfr deleted the fix_raster_range branch April 11, 2017 12:19
Copy link

This pull request 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

Successfully merging this pull request may close these issues.

2 participants