Questions tagged [holoviews]

HoloViews is a Python library that makes analyzing and visualizing scientific or engineering data much simpler, more intuitive, and more easily reproducible.

HoloViews is a Python library that makes analyzing and visualizing scientific or engineering data much simpler, more intuitive, and more easily reproducible. Without HoloViews, there are typically many steps required before you can see your data, whether you use a GUI interactively or write a function or script to build up a plot. HoloViews instead lets you store your data in an annotated format that is instantly visualizable, with immediate access to both the numeric data and its visualization. For instance, if you wrap a two-dimensional dataset like a fractal in a HoloViews Image object named fractal , you can just type fractal to view it as an image in an IPython/Jupyter Notebook . Most importantly, combining it with other objects is now easy -- you can e.g. view it annotated with a horizontal line and a histogram, next to a slice of it from the indicated cross-section, all without writing any plotting code.

Features

Overview

  • Lets you build data structures that both contain and visualize your data.
  • Includes a rich library of composable elements that can be overlaid, nested, and positioned with ease.
  • Supports rapid data exploration that naturally develops into a fully reproducible workflow .
  • You can create complex animated or interactive visualizations with minimal code.
  • Rich semantics for indexing and slicing of data in arbitrarily high-dimensional spaces .
  • Every parameter of every object includes easy-to-access documentation.
  • All features available in vanilla Python 2 or 3 , with minimal dependencies.
  • All examples on the website are tested automatically each night, using the latest version of the code.

Support for maintainable, reproducible research

  • Supports a truly reproducible workflow by minimizing the code needed for analysis and visualization.
  • Already used in a variety of research projects, from conception to final publication.
  • All HoloViews objects can be pickled and unpickled, with no plotting-library dependencies.
  • Provides comparison utilities for testing, so you know when your results have changed and why.
  • Core data structures only depend on the numpy and param libraries.
  • Provides export and archival facilities for keeping track of your work throughout the lifetime of a project.

Analysis and data access features

  • Allows you to annotate your data with dimensions, units, labels and data ranges.
  • Easily slice and access regions of your data, no matter how high the dimensionality.
  • Apply any suitable function to collapse your data or reduce dimensionality.
  • Helpful textual representation to inform you how every level of your data may be accessed.
  • Includes small library of common operations for any scientific or engineering data.
  • Highly extensible: add new operations to easily apply the data transformations you need.

Visualization features

  • Useful default settings make it easy to inspect data, with minimal code.
  • Powerful normalization system to make understanding your data across plots easy.
  • Build complex animations or interactive visualizations in seconds instead of hours or days.
  • Refine the visualization of your data interactively and incrementally.
  • Separation of concerns: all visualization settings are kept separate from your data objects.
  • Support for interactive tooltips/panning/zooming/linked-brushing, via the optional bokeh or mpld3 backends.

Jupyter/IPython Notebook support

  • Support for both IPython 2 and 3 and for the Jupyter project.
  • Automatic tab-completion everywhere.
  • Exportable sliders and scrubber widgets.
  • Automatic display of animated formats in the notebook or for export, including gif, webm, and mp4.
  • Useful IPython magics for configuring global display options and for customizing objects.
  • Automatic archival and export of notebooks , including extracting figures as SVG, generating a static HTML copy of your results for reference, and storing your optional metadata like version control information.

Integration with third-party libraries

  • Flexible interface to both the pandas and Seaborn libraries
  • Immediately visualize pandas data as any HoloViews object.
  • Seamlessly combine and animate your Seaborn plots in HoloViews rich, compositional data-structures.

Official website: http://holoviews.org/

667 questions
0
votes
0 answers

M*N layout of Bokeh + Holoviews plots

I've N plots and i want to show the plots in M*N layout where M=1,2,3,..... import holoviews as hv from bokeh.layouts import layout as bk_lyout from bokeh.layouts import row, column from bokeh.models import (HoverTool, Panel,…
Mukesh Kumar
  • 333
  • 1
  • 5
  • 20
0
votes
3 answers

Holoviews heatmap with both axes sorted

I have the following code to produce a heatmap using pandas and holoviews: cols = ['source','sink','net','avg'] data =…
MikeB2019x
  • 823
  • 8
  • 23
0
votes
1 answer

Bokeh + Holoviews + Datashader on Django

We are trying to build a web app--Dashboard-- to show different interactive(including click callback, fetch new data etc) charts with Bokeh + Holoviews + Datashader on DJango. Since data is very large and could have 10+ million points we are using…
Mukesh Kumar
  • 333
  • 1
  • 5
  • 20
0
votes
0 answers

How do I combine a heatmap with a curve in a panel

I tried this code : import holoviews as hv import panel as pn hv.extension('bokeh') gspec = pn.GridSpec(width=800, height=600) gspec[1, 0] = hv.HeatMap([(0, 0, 1), (0, 0, 10), (1, 0, 2), (1, 1, 3)]) gspec[2, 0] = hv.Curve([1, 2,…
coder123
  • 27
  • 4
0
votes
0 answers

Error creating Geoviews quadmesh: None of the available storage backends were able to support the supplied data format

I'm using Geoviews with Python to map weeds in a field. I'm wanting to use a quadmesh to visualize our data similar to the example on the geoviews website. I have the following piece of code: d_dict = { 'Latitude': lats, 'Longitude': lons, …
bek3
  • 1
  • 1
0
votes
1 answer

vs code, holoviews, hvplot, pyviz [SyntaxError: Unexpected token '?' at runCodeHere (... ] [Visual Studio Code]

Very frustrated*. Code works on jupyter lab, but not in Visual Studio Code. I’ve created clean new environments, installed, removed, reinstalled [hours gone-by]. i’ve installed as per instructions (in clean environments) [eg., conda install -c…
0
votes
1 answer

Bokeh-rendering bug of Holoviews layout

I am having troubles understanding why the following holoviews object structure cannot be rendered using bokeh: :NdLayout [dim1] :HoloMap [dim2] :Overlay .Scatter.I :Scatter [a] (b) .Scatter.II :Scatter [a] …
Maxime Beau
  • 688
  • 10
  • 6
0
votes
1 answer

holoviews curve is showing all the points instead of one curve

I am creating a visualization application with holoviews and panel As one can see, the line is touching all the points which are not what curve should do. It should only show the curve or border like an area chart without color. I am building this…
user3050590
  • 1,656
  • 4
  • 21
  • 40
0
votes
1 answer

geoviews dataset converts lat/lon into small decimals when overlaying a holoviews tile source

I have a geoviews data set that I finally got to work somewhat. It is a set of Lats, Lons, and velocities of GPS stations, with interpolations between them. The values are on a regular grid. I followed the example at …
Nwpulver
  • 45
  • 5
0
votes
1 answer

Plotting from array to geoviews/holoviews. Converting to xarray needed?

First of all, if anyone has a link to a good tutorial to creating colomaps with geoviews or holoviews and transporting that to a dashbooard please send a link. I am trying to mimick what they did at the timestamp in the video here . Also having a…
Nwpulver
  • 45
  • 5
0
votes
1 answer

How to show pre-selected colors unsing holoviews image

I'd like to use holoviews image to visualize colors from a list of hex values. Using hv.Image from here: hv.Image((range(10), range(5), np.random.rand(5, 10)), datatype=['grid']) how can I assign a list of hex color values (esp. a pandas column of…
mati
  • 1,093
  • 4
  • 12
  • 18
0
votes
1 answer

data shader change color for each date

For a scatterplot with datashader I want to incorporate the notion of time into the plot. Potentially by using color. Currently, import numpy as np import pandas as pd import seaborn as sns date_values = ['2020-01-01', '2020-01-02', '2020-01-03',…
Georg Heiler
  • 16,916
  • 36
  • 162
  • 292
0
votes
1 answer

Working with Dask, Xarray, Holoviews, Bokeh Datasets

Currently have very large xarray dataset with 7 data variables, each with shape of about 60-80k (x,y) values as well as 4 years (give or take) of time data. Im working on creating a UI that will display 3 maps, 1 main map and 2 maps shown below of a…
0
votes
1 answer

Wider points cuxfilter / Datashader scatter?

How can I get wider points to display in this datashader.scatter plot of cuxfilter? Or less whitespace between columns? This is a scatter plot of passenger_count (x) vs tip_amount (y) on some TLC yellow cab trip data. The goal is to have something…
gumdropsteve
  • 70
  • 1
  • 14
0
votes
1 answer

Holoviews active tools configuration and datashader layout

Suppose having the following code: # Layout creation y1 = hv.Curve((dt, data['Noise 1']), 'Date', 'y(t)', label='Noise 1') y2 = hv.Curve((dt, data['Noise 2']), 'Date', 'y(t)', label='Noise 2') layout = y1 + y2 # Grid style layout gridstyle = { …