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

Added span parameter for datashade operation #1508

Merged
merged 1 commit into from
Jun 4, 2017
Merged

Conversation

philippjfr
Copy link
Member

Not sure span is the best name for this parameter but I just used the datashader argument name for now. Maybe clims or color_range would be better?

@philippjfr philippjfr added the type: feature A major new feature label Jun 1, 2017
@jbednar
Copy link
Member

jbednar commented Jun 1, 2017

I definitely don't like the name span. Is clims already in use for this purpose in HoloViews? If not it's more like a value_range.

@jlstevens
Copy link
Contributor

I don't think clims would clash in this case and it is clearer/more intuitive than span. Seems like the issue is that this isn't what this argument is called in datashader.

@philippjfr
Copy link
Member Author

Seems like the issue is that this isn't what this argument is called in datashader.

We already changed a bunch of the argument names because they're not very intuitive.

@jbednar
Copy link
Member

jbednar commented Jun 1, 2017

The datashader API needs some tidying up before I'm ready to call it 1.0, so don't worry about what it's called in datashader. I think HV should be supplying whatever dimension range it normally uses for non-datashader plots, though it could be convenient to provide an argument to shade that makes it simple to override that value when needed.

@jbednar
Copy link
Member

jbednar commented Jun 1, 2017

@philippjfr, can you please rename span to whatever the best match to HoloViews usage is, and then make it respect the dimension's range if not overridden here?

@philippjfr
Copy link
Member Author

@philippjfr, can you please rename span to whatever the best match to HoloViews usage is, and then make it respect the dimension's range if not overridden here?

Was going to go with value_range and already have those changes applied locally. Will push in a minute.

@philippjfr
Copy link
Member Author

Might go back to clims since it's shorter.

@jlstevens
Copy link
Contributor

I also think clims is better: this operation outputs and RGB so there is color mapping and from what I understand this parameter is really about controlling colors.

@jbednar
Copy link
Member

jbednar commented Jun 2, 2017

clims is fine by me. It's an edge case; the actual parameter has nothing to do with colors, and applies to the value rather than to any colors, but it has no effect on anything but colors, in the end.

@jlstevens
Copy link
Contributor

Looks good to me and the tests are green. Merging.

@jlstevens jlstevens merged commit 1e06adb into master Jun 4, 2017
@jbednar jbednar deleted the datashade_span branch June 5, 2017 19:03
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: feature A major new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants