question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make a colorbar for datashaded images?

See original GitHub issue

I know there might be another issue about this around somewhere, but I couldn’t find it, so I thought I’d write a new one. I understand that a colorbar for a datashaded image can’t be handled the same way as other colorbars, since there’s no way to get the data back from the image once it’s created. I was thinking that one possible solution might be to generate an inset image of a colorbar at the same time each datashaded view is generated, and superimpose it onto the image in some specified location. Or even something as simple as optional (and discreet) labeling of the max/min of the scale being used at any time would be useful. And it would be nice to have an option for this sort of thing within the datashade operation, rather than having to hack it up using dynamic=False and passing streams manually, etc.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

7reactions
rabernatcommented, May 9, 2018

I just hit this issue. As much as I love datashader, the lack of an easy way to get a colorbar is a major downside.

What workarounds do people use for this?

1reaction
jbednarcommented, May 9, 2018

From within holoviews, usually we just use rasterize() rather than datashade(), which lets Bokeh do the colormapping, so that there will be a colorbar. The main downside is that Bokeh doesn’t support histogram equalization; it otherwise has all the benefits of datashading.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Make a colorbar for datashaded images? #2102 - GitHub
I understand that a colorbar for a datashaded image can't be handled the same way as other colorbars, since there's no way to...
Read more >
Colorbar for datashader aggregation in plotly - Stack Overflow
This produces a colorful image with clear roads and directions, except it's impossible to tell without a legend which color maps to which ......
Read more >
Dynamic colorbars for image and contourf - HoloViz Discourse
I want to make a 2D plot with a dynamic colorbar, which works both automatically and ... test_array.hvplot.image(width=400, datashade=True)
Read more >
Customized Colorbars Tutorial - Matplotlib
This tutorial shows how to build colorbars without an attached plot. ... a colorbar for a given colormap and does not need a...
Read more >
Working with large data using datashader — HoloViews v1.15.3
This notebook makes use of dynamic updates, which require a running a live Jupyter or Bokeh server. ... Image , while shade() and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found