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
2
votes
0 answers

How to plot milloin of Curves in holoviews multiplored lines?

Are there any easy way to tell datashader that my lines should be colored based on some value column, so called multicolored lines shaded together? my data is already separated with NaNs for the plotting sd is a DASK from pandas: sd.tail() x y …
Arman
  • 4,566
  • 10
  • 45
  • 66
2
votes
1 answer

timeseries plot using datashader

My aim is to plot timeseries data by utilizing datashader and make it interactive using bokeh or datashader itself if it's possible to do. I tried to follow this tutorial - http://datashader.org/user_guide/3_Timeseries.html and came up with the…
zubug55
  • 729
  • 7
  • 27
2
votes
2 answers

difference between datashader and other plotting libraries

I want to understand the clear difference between Datashader and other graphing libraries eg plotly/matplotlib etc. I understand that in order to plot millions/billions of data points, we need datashader as other plotting libraries will hung up the…
zubug55
  • 729
  • 7
  • 27
2
votes
1 answer

MemoryError with Bokeh nyc_taxi example

I was trying to follow the example here: https://anaconda.org/jbednar/nyc_taxi/notebook However, I could not get the following block to work as MemoryError is always thrown at specific lines (commented out): def merged_images(x_range, y_range,…
prusswan
  • 6,853
  • 4
  • 40
  • 61
2
votes
2 answers

Using datashader with PySpark DataFrame

I'd like to plot 200 Gb of the NYC taxi Dataset. I managed to plot/visualize pandas dataframe using datashader. But I didn't manage to use the PySpark dataframe (using a 4-nodes cluster with 8Gb RAM on each) to get it done. What I can do though, is…
filipyoo
  • 347
  • 1
  • 7
  • 15
2
votes
1 answer

cannot import datashader (installed using miniconda)

I cannot import datashader: in Jupyter Notebook I simply get: ImportError: No module named 'datashader' in terminal (linux ubuntu 17.04 32bit), after running python, I get: user1@user1-Satellite-A110:~$ python Python 3.6.0 |Continuum Analytics,…
MCG Code
  • 1,333
  • 5
  • 16
  • 24
2
votes
1 answer

Datashader image not rendering when zoom in bokeh plots

Here is my code: x_range = (0, len(df)) y_range = (df['EuPrice'].min(), df['EuPrice'].max()) def create_image(x_range, y_range, w, h): cvs = ds.Canvas(plot_width=w, plot_height=w//1.2) agg = cvs.line(df, 'fakedata', 'EuPrice') img =…
Yasir Azeem
  • 298
  • 2
  • 4
  • 13
2
votes
1 answer

Python Datashader to plot large 2D arrays of points

I am looking for some help/advise in the use of datashader to plot a large 2D data array as a series of points, colored by amplitude. The data I deal with is housed in several 2D HDF5 datasets, with a time index stored in a separate dataset. The…
George Crowther
  • 548
  • 5
  • 16
1
vote
1 answer

Module 'numpy' has no attribute 'warnings'

I'm trying to reproduce this tutorial with my own data. I've a simple square grid of polygons: from shapely import wkt import pandas as pd import geopandas as gpd data_list = [ [0,51, wkt.loads("POLYGON ((-74816.7238 5017078.8988, -74716.7238…
MaxDragonheart
  • 1,117
  • 13
  • 34
1
vote
1 answer

HoloViews/Panel - TypeError: unsupported operand type(s) for *: 'function' and 'Points'

I'm trying to create the parameter px on the holoviews.operation.datashader.spread operation interactively changeable together with an additional overlay. The diagram with an IntSlider and the function returned by pn.bind(get_spreaded, px=px_slider)…
sqrt4x
  • 31
  • 3
1
vote
0 answers

Interactive time-series based on x-y location on map with hvplot

When I have a very large xarray.DataArray da with only two dimensions (x and y) I normally plot using something like: da.hvplot(x="x", y="y", rasterize=True) Now, if I have a DataArray with three dimensions (x, y and time), I would like to still…
duff18
  • 672
  • 1
  • 6
  • 19
1
vote
1 answer

Retrieve click data from Python Holoviews / Datashader

I'm coming from Python-Dash trying to achieve an interactive graphing functionality by creating a second graph using the click data of the first one. Similar to what can be found here I'm stuck in retrieving and correctly using the click data to…
dll
  • 97
  • 7
1
vote
1 answer

How to set starting zoom level in EsriImagery with datashader and bokeh?

I want to project a map with its starting position like this The current output that I get is like this import holoviews as hv from geoviews.tile_sources import EsriImagery from holoviews.operation.datashader import datashade, dynspread import…
1
vote
0 answers

Autoscale the color map for Holoviews using Datashader for multiple large images

This is the first question I have ever asked on Stack Overflow. Please forgive me if I make any mistakes when asking this question. I am attempting to view several large images using the Python library, Datashader with Holoviews, using Bokeh as the…
Sam Skye
  • 11
  • 3
1
vote
1 answer

how can you set the geographical projection with datashader?

I plotted a geographic map with datashader. Everything works fine, however the geographic projection seems to be incorrect. The lengths and aspect ratios do not match, probably because no geographical projection is set? My Code looks like this: agg…
copamundial
  • 173
  • 10
1 2
3
8 9