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

Legend/color key support #90

Closed
3 of 5 tasks
jbednar opened this issue Mar 1, 2016 · 1 comment
Closed
3 of 5 tasks

Legend/color key support #90

jbednar opened this issue Mar 1, 2016 · 1 comment
Assignees

Comments

@jbednar
Copy link
Member

jbednar commented Mar 1, 2016

Because datashader allows automatic ranging and a flexible pipeline that can recompute all plot parameters for every pan and zoom, it is both essential and difficult to provide meaningful keys and legends. For instance, users could insert any arbitrarily nonlinear (including non-monotonic) transfer function into the pipeline, without the downstream client being able to detect that it was added, what its properties are, or how it should affect the values shown in any color key. We'll need an API that makes suitable information available from the core library, as long as the programmer sets things up according to our recommendations, while knowing that in principle there's no way to solve this problem for the fully general case of arbitrary transformations. Hopefully it will be practical to at least semi-automate this process, such that colors can be shown for a set of test values provided to the front of the pipeline, if only for the maximum and minimum values from the viewport.

Tasks (will probably need expanding):

  • Add a colormap key to one of our Bokeh plots as an example, using fixed values if necessary
  • Auto-range colormap values to show at least the minimum and maximum values automatically
  • Support nonlinear sampling for the colormap, working out intermediate values
  • Add a key to plots of categorical data, showing categories only
  • Possibly add a values-based key for categorical data, showing numerical ranges in each category
@jbednar
Copy link
Member Author

jbednar commented Apr 6, 2016

Fixed by #100.

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

No branches or pull requests

2 participants