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
1 answer

Holoviews: Dataset Selection with Dimension Reduction

import numpy as np import holoviews as hv data = np.random.rand(100, 100, 3,10) times = np.arange(0,10) ds = hv.Dataset((times,channels, np.linspace(0., 1., 100), np.linspace(0., 1., 100), data), …
paugam
  • 150
  • 2
  • 12
0
votes
1 answer

Holoviews .to Interface: How To Attribute cmap and range according to an input parameter

Using the dataset ds defined below how can I attribute one colormap and its associated range per value of channels when rendering the holomap? import numpy as np import holoviews as hv from holoviews import opts hv.extension('bokeh',…
paugam
  • 150
  • 2
  • 12
0
votes
1 answer

Holoviews Plotting Mutlidimensional Gridded Data

following example of https://holoviews.org/user_guide/Gridded_Datasets.html The following code does not show the last plot with the slider import numpy as np import holoviews as hv from holoviews import opts hv.extension('matplotlib') dataset3d =…
paugam
  • 150
  • 2
  • 12
0
votes
0 answers

How can I have the plottetd points stay the same size when zooming in with holoviews?

I am plotting points on a map with holoviews in python and I want to have the plotted points stay the same size even if I zoom in. I am using the bokeh extension. I have found this post solving the problem for bokeh, here is a link. But I have not…
sehan2
  • 1,700
  • 1
  • 10
  • 23
0
votes
0 answers

Geoviews polygons/multipolygon plotting

I'm having a bit of trouble plotting polygon/multipolygon data with Geoviews. I have made a geodataframe that combines my two datasets together nicely. I am able to plot the data easily using the plot function: See below: import geopandas as…
Amen_90
  • 310
  • 2
  • 9
0
votes
1 answer

Choropleth map from Shape file in Holoviews

I have a shape file with a column named geometry containing MULTIPOLYGONs. postcode name geometry 0 2003.0 A MULTIPOLYGON Z (((1048559.000 7841160.000 0.00... 1 1438.0 B MULTIPOLYGON Z (((-29156.720 6885495.170 0.000... While it is…
NRVA
  • 507
  • 3
  • 20
0
votes
1 answer

Vertical line is not shown on my HoloViews scatter plot because it's outside the x-range of my scatterplot

I have a scatter plot and want to add a vertical line to it as a marker. However the scatter plot has x-range 0 to 2, but my vertical line is at x-range 6, so it's falling outside of the x-range of my scatter plot and not shown automatically. What…
Sander van den Oord
  • 10,986
  • 5
  • 51
  • 96
0
votes
1 answer

Separate TAP and HOVER tool for Edges of hv.Graph. Edge description data is missing

Trying to get hv graph with ability to tap edges separately from nodes. In my case - all meaningful data bound to edges. gNodes = hv.Nodes((nodes_data.x,nodes_data.y, nodes_data.nid, nodes_data.name),\ vdims=['name']) gGraph =…
Dimas51
  • 19
  • 3
0
votes
1 answer

Panel RangeSlider widget in Holoviews Table

I'm trying to use RangeSlider widget from Panel library in a Holoviews Table (Dynamicmap). However, after trying different ways of doing this, I am not being able to make this connection. I was trying to do it in the following way: import pandas as…
Vasconni
  • 33
  • 1
  • 5
0
votes
1 answer

add networkx layout to holoview graph

I applied facebook network sample from this documentation on my work, to get this code: edges_df = pd.read_csv('rel.csv', delimiter= ";") nodes_df = pd.read_csv('monfichier.csv', delimiter= ";") padding = dict(x=(-1.1, 1.1), y=(-1.1,…
Marie_87
  • 13
  • 5
0
votes
1 answer

Bokeh / Holoviews saved .html is no longer interactive with zoom, pan, reset

I have an application that uses Holoviews to generate a heatmap plot that is rendered using Bokeh. I upgraded from a Python 2.7 to 3.7 environment and the saved .html plots no longer support the ability to pan, zoom, or reset. I had previously…
joltman
  • 41
  • 2
0
votes
2 answers

Install the latest git versions of holoviews, hvplot, panel, datashader and param

The libraries of the Holoviz ecosystem are continuously updated. Using pip, how do I install the latest git versions of: Holoviews Hvplot Panel Datashader Param
Sander van den Oord
  • 10,986
  • 5
  • 51
  • 96
0
votes
1 answer

Remove holoviews heatmap colors

I am new to pyviz, and I am looking at holoviews for interactive plotting. I am trying to remove the heatmap (hv.HeatMap) colors, something like color='white', or color=None. Does anyone know how could I do it?
Daniel Lima
  • 925
  • 1
  • 8
  • 22
0
votes
1 answer

Does a DynamicMap callable always have to return the same type?

The below code makes it seem like the callable passed to a DynamicMap can not change the Element type. When changing the category widget to B a Curve element is returned instead of Points, but the plot is just empty. Is this behavior not supported…
rindis
  • 869
  • 11
  • 25
0
votes
1 answer

Strange behaviour when function returns NdOverlay to DynamicMap

I've encountered something very strange when having a function which generates an NdOverlay of Points to a DynamicMap, where the function is tied to panel widgets (I don't think the panel widgets are important). The below code is a working example…
rindis
  • 869
  • 11
  • 25