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

How to show two slices of an HoloMap side by side with only one slider for the remaining kdim?

I have 2D data with 2 kdims. I want to select two slices of one of the kdims and show them side by side with a slider for the other dimension. The .grid layout has the desired function but shows all elements of the remaining dimension and has…
Serenity
  • 3
  • 2
0
votes
1 answer

Hover tooltip with stacked Area chart in holoviews

I am creating a stacked area chart in holoviews with bokeh backend, similarly to the example here: http://holoviews.org/reference/elements/matplotlib/Area.html I would like to have a Hover tooltip but if I add it to the code, the resulting chart…
AleAve81
  • 275
  • 3
  • 8
0
votes
0 answers

Synchronization tooltips Heatmap Holoviews

I 've created 2 heatmaps (one for each year) from the following csv https://drive.google.com/file/d/1JRgKCMZsv_e8UifbAz-OuLteBrdZTulb/view?usp=sharing using this code import pandas as pd import holoviews as hv from holoviews import…
0
votes
1 answer

Export HoloViews `lasso tool` Selections to Pandas/CSV

I am trying to use a scatter plot in holoviews/hvplot to explore some data and then export things I select to a file... basically so I can tag it and/or show it to an expert. I am able to make a scatter plot and a table that is linked and shows the…
Matt Camp
  • 1,448
  • 3
  • 17
  • 38
0
votes
2 answers

How to plot a curve and error bars of the same color in holoviews with matplotlib?

I want to plot a curve with error bars in holoviews using the matplotlib backend. I would like the curve and the error bars to be the same color, but without explicitly specifying the color for the curve. I.e. I can easily do this import holoviews…
Nathan
  • 9,651
  • 4
  • 45
  • 65
0
votes
1 answer

Geoviews Dataset class taking too much time for medium size xarray grid

I'm trying to plot an xarray grid using the Geoviews Dataset class. The data has shape: (12,1300,1936) with coordinates (months,Longitude, Latitude). The instantiation takes way too much time (almost 7 hours in an i5 32GB Ram computer). Ploting a…
Juan
  • 1,022
  • 9
  • 16
0
votes
1 answer

How to add custom line to BoxWhisker holoviews plot?

I need to add a horizontal line to the boxplot. Looked through holoviews manual and seems that HLine is supposed to be used in such case. Unfortunately I get an error: ValueError: all the input arrays must have same number of…
SS_Rebelious
  • 1,274
  • 2
  • 19
  • 35
0
votes
1 answer

Overlay NdOverlays while keeping color / changing marker

I want a scatter plot of different types of "asset", each asset should have the same color and labeled in the legend. I can do this using an NdOverlay of Scatter. Then I want to overlay two such plots, eg one coming from a model and another from…
0
votes
0 answers

How to link a scatter plot generated using datashade with an RGB image In Holoviews?

I have a satellite image, based on this image I need to produce a scatter plot between two bands ( eg. red vs green ), be able to select data on this plot and see the selection on the satellite image. So far, I have produce the scatter plot using…
picachu
  • 26
  • 1
0
votes
1 answer

Esri tile not displaying PyViz

I'm trying to plot some GPS data on a map tile. My code is very simple (based on this: http://pyviz.org/tutorial/A2_Dashboard_Workflow.html) : import hvplot.pandas from geoviews.tile_sources import EsriImagery GPS = df.hvplot(x='LongCoord',…
BMichell
  • 3,581
  • 5
  • 23
  • 31
0
votes
1 answer

How do we plot a list of HoloViews plots?

I have a list of heatmaps [:HeatMap [column,row] (analyte_value), :HeatMap [column,row] (analyte_value), :HeatMap [column,row] (analyte_value), :HeatMap [column,row] (analyte_value)] Is there a command to render them all in the…
ericmjl
  • 13,541
  • 12
  • 51
  • 80
0
votes
1 answer

How do I determine what the nesting issue is when trying to combine multiple DynamicMaps in a layout

I am using HoloViews version 1.12.0 . I am attempting to create a layout that contains two DynamicMaps, but I am getting the error: WARNING:param.Warning: Layout contains HoloMaps which are not nested in the recommended format for accessing your…
Chris Ratcliffe
  • 116
  • 1
  • 10
0
votes
1 answer

How do I set Bokeh tick and font options in HoloViews?

I would like to configure my default options in HoloViews to match those I have been using in my Bokeh plots, but while I can find many equivalents in the HoloViews documentation, I can't figure out what the equivalents are for others. For example,…
orome
  • 45,163
  • 57
  • 202
  • 418
0
votes
1 answer

HoloViews DynamicMap with stream only passes display output once to IPython

I'm struggling with that code inside a stream function is only once passed on to IPython. In other words, display() calls from DynamicMap is only executed once (click = hv.DynamicMap(interactive_click, streams=[SingleTap()])). This is just a simple…
NumesSanguis
  • 5,832
  • 6
  • 41
  • 76
0
votes
1 answer

Plotting stacked area charts for individual days with Holoviews Holomap

I am trying to plot a Holomap from a pandas Dataframe in wide form. The dataframe has four columns; Datetime, day, V1, V2. Datetime is of the form yyyy-mm-dd hh:mm:ss at 15-minute resolution over two days. V1 and V2 contain the data. After creating…
avg
  • 793
  • 2
  • 12
  • 24