Questions tagged [datashader]

Use for questions concerning the Python based Graphics Pipeline which is meant for building visualizations of large data sets.

Datashader is a python graphics pipeline system for creating meaningful representations of large amounts of data.

FAQ

Docs

GitHub

123 questions
9
votes
2 answers

What is the best method for using Datashader to plot data from a NumPy array?

In following the Datashader example notebook demonstrating lines, the input is a Pandas DataFrame (though it seems a Dask DataFrame would work as well). My data is in a NumPy array. Can I use Datashader to plot lines from NumPy arrays without…
Steven C. Howell
  • 16,902
  • 15
  • 72
  • 97
7
votes
2 answers

Datashader integration for polygons in plotly mapbox

I'm using plotly's Scattermapbox to overlay a map with a shaded image of polygons created by datashader's shade function (based on https://plotly.com/python/datashader/), but the projections do not seem to align, see picture below. Any suggestions…
6
votes
1 answer

Add datashader image to matplotlib subplots

Is it possible to add a datashader image to a set of matplotlib subplots? As a concrete example, import numpy as np import pandas as pd import matplotlib.pylab as plt import datashader as ds import datashader.transfer_functions as tf from…
not link
  • 858
  • 1
  • 16
  • 29
5
votes
1 answer

Timeseries with multiple colors and legend using Datashader and Holoviews

I would like to plot a timeseries dataframe with 3 columns, one for each curve. I would like each curve to have its own color and also display a legend, as hvplot() does by default. Here is a self-contained example: import numpy as np import pandas…
gaborous
  • 15,832
  • 10
  • 83
  • 102
5
votes
1 answer

How to handle node click in PyViz/datashader network samples?

I looked at datashader/Networks and PyViz/network_packets (which also uses datashader). I want to get a callback to python code on node selection (call a function on a node id, i.e. fun(node_id)). How can this be done in PyViz/datashader?
DuckQueen
  • 772
  • 10
  • 62
  • 134
5
votes
1 answer

Changing colormap for categorical data in Holoviews/Datashader

I'm trying to visualize categorical spatial data using Datashader and Holoviews, similarly to https://anaconda.org/jbednar/census-hv-dask/notebook. However, when I try to assign different colors to categories, I always end up with same (presumably…
Runkles
  • 113
  • 8
5
votes
1 answer

Plot 1 billion of points in 3D on the browser

I have grid of approximately 200 x 200 x 200 x 150 that I need to plot on the browser. This can be represented as X x Y x Z x Color. A 3D scatter has usually functionality for that. I have tried the plotly.Scatter3d that works wonders for much…
RicLeal
  • 923
  • 9
  • 23
5
votes
1 answer

How to link the axis in multiple holoviews plots?

I have created to datashader plots with holoviews: datashade(hv.Points(df[ [ 'PS Engine-% Load', 'PS Engine-Fuel Rate', ] ])) + datashade(hv.Points(df[ [ 'SB Engine-% Load', 'SB Engine-Fuel Rate', …
Martijn de Munnik
  • 924
  • 12
  • 23
4
votes
2 answers

How can a choropleth map be combined with a shaded raster in Python?

I want to plot characteristics of areas on a map, but with very uneven population density, the larger tiles misleadingly attract attention. Think of averages (of test scores, say) by ZIP codes. High-resolution maps are available to separate…
László
  • 3,914
  • 8
  • 34
  • 49
4
votes
3 answers

Holoviews change datashader colormap

I'm trying to change the colormap used by datashader. I tried this: datashade(scatter, cmap='Reds') Where scatter is an hv.Scatter element. This doesn't work because datashader expects an iterable or a function that returns colors. As such, this…
Cris
  • 347
  • 1
  • 5
  • 11
4
votes
1 answer

Trouble geo mapping with datashader, holoviews and bokeh

I'm trying to map google phone history locations on to a map using holoviews, datashader and bokeh. Mostly very similar to the examples given in the datashader website. But when I do the map overlay doesn't work as the lat/long gets mangled…
user2663139
  • 189
  • 1
  • 2
  • 8
4
votes
1 answer

Datashader canvas.line() aliasing

I use bokeh to plot temperature curves, but in some cases the dataset is quite big (> 500k measurements) and I'm have a laggy user experience with bokeh (event with output_backend="webgl"). So I'm experimenting datashader to get a faster rendering…
Louc
  • 332
  • 1
  • 13
4
votes
2 answers

How to do linked data selections in HoloViews with Datashader + Bokeh backend

Let me just start by complementing the HoloViews developers, this thing is pretty amazing. There are just a lot of pieces and it is a bit hard to figure out how to put them all together to do what I want:). I am trying here to do linked…
Ben Farmer
  • 2,387
  • 1
  • 25
  • 44
4
votes
2 answers

I am not able to display graph using python datashader

I downloaded and installed datasheder using the below steps: git clone https://github.com/bokeh/datashader.git cd datashader conda install -c bokeh --file requirements.txt python setup.py install After that, I have run the code using terminal…
gaurav singh
  • 1,376
  • 1
  • 15
  • 25
3
votes
1 answer

Select data from a Datashader plot

I'm using Datashader to make crossplots of different parameters due to the quantity of data I'm working with. My idea is to enable some kind of interaction that allows the user to select directly from the plot, the outliers based on the data's…
lsdR94
  • 35
  • 1
  • 5
1
2 3
8 9