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.

Passing colorbar=True to a datashaded element could raise a warning

See original GitHub issue

Since colorbar doesn’t apply in this case?

points = df.hvplot.points('index', 'value')
datashade(points).options(colorbar=True)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
philippjfrcommented, Jul 14, 2018

I wasn’t quite right about that. In the matplotlib backend the RasterPlot class handles Rasters, Images and RGBs. In the bokeh backend the problem is that RGBPlot inherits the colorbar parameter from RasterPlot. So what would need to happen is that in both backends we need to ensure that the RGBPlot class does not inherit from ColorbarPlot.

0reactions
jbednarcommented, Jul 14, 2018

No, I think RGB inheriting from Image is by design; semantically, it’s a type of Image. But these are the element classes; what’s shared is the bokeh and matplotlib plotting class RGBPlot. Specifically, there’s no separate ImagePlot class. But we can’t simply copy RGBPlot to another one ImagePlot and omit the colorbar option, because RGBPlot inherits from RasterPlot which inherits from ColorbarPlot, which is presumably what makes it support the colorbar option. So it will take a bit of juggling classes to get things working properly…

Read more comments on GitHub >

github_iconTop Results From Across the Web

hvplot/converter.py at master - GitHub
A high-level plotting API for pandas, dask, xarray, and networkx built on HoloViews - hvplot/converter.py at master · holoviz/hvplot.
Read more >
pyviz/pyviz - Gitter
Hi, using matplotlib backend can I use an existing axis from plt.fig() to pass to an single element?
Read more >
TypeError when using Datashade - HoloViz Discourse
Hi, I try to use Datashade in a project, but I get an error as soon as I use Datashade. ... WARNING:param.dynamic_operation: Callable...
Read more >
Holoviews - Bloglovin'
I have created a Sankeydiagram using a Holomap and I want to show the sums of the respective nodes by hovering over them...
Read more >
Simple, concise geographical visualization in Python
What is it? GeoViews is a Python library that makes it easy to explore and visualize any data that includes geographic locations.
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