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 update holoviews Bars using an ipywidgets SelectionRangeSlider?

I want to select data from some pandas DataFrame in a Jupyter-notebook through a SelectionRangeSlider and plot the filtered data using holoviews bar chart. Consider the following example: import numpy as np import pandas as pd import datetime import…
Markus
  • 578
  • 6
  • 26
0
votes
1 answer

Holoview chart won't appear in Django site

i know there is probably something simple i am doing wrong, but i don't know where else to get an answer. I created a django site and the following function returns holoview html: from django.shortcuts import render from django.http import…
Niko
  • 67
  • 1
  • 4
0
votes
1 answer

holoviews plot not shown

I want to display a scattering plot using holoviews and update the plot every 10 seconds. Therefore I wrote a function "BokehDisplay" to plot the scattering plot without updating, then I added another function "DynamicDisplay" to update the…
CathyQian
  • 1,081
  • 15
  • 30
0
votes
1 answer

How to format colorbar label in Bokeh

I have generated a holoviews \ Bokeh heatmap graph similar to the example. I added a colorbar in the plot_opts with colorbar=True, but the labels of the colorbar comes out as a scientific number. How do I control the format of the label? I tried…
skibee
  • 1,279
  • 1
  • 17
  • 37
0
votes
1 answer

Install pkg with Conda: windows error(2,'The system cannot find the file specified)

On Windows 7 64-bit, I'm trying to install Holoview with Conda (Python 2.7) as recommended with this prompt: conda install -c ioam holoviews bokeh However, I keep on receiving the following message. INFO menuinst_win32:__init__(182): Menu: name:…
0
votes
1 answer

Can you get holoviews renderer('bokeh').server_doc to work for Bars? NoneType/ColorConverter error

This is interesting because I can get hv.Table to work, but hv.Bars is throwing the following exception: Traceback (most recent call last): File "/app/.heroku/python/lib/python3.6/site-packages/holoviews/plotting/bokeh/util.py", line 120, in…
cnblevins
  • 155
  • 1
  • 7
0
votes
1 answer

Making pictures NOT move in sync in Holoviews

Is there a way to force two graphs in same layout to unlink. Here's an example: Under headline 'Compositional Layouts', the two pictures are not synced, but under headline 'Compositional Overlays' the pictures are synced. The code in those two…
0
votes
1 answer

holoviews/geoviews Image range as logarithmic

I have the following line: (dataset.redim(WD_spec001=dict(range=(0, 30000))).to(gv.Image, ['longitude', 'latitude'], ['time']) * gf.coastline()) but really, the range and color scale should be logarithmic. In matplotlib I've been accomplishing by…
John
  • 1,263
  • 2
  • 15
  • 26
0
votes
1 answer

newbie: holoviews curves from pandas follow up: issues with stream

The pandas dataframe rows correspond to successive time samples of a Kalman filter. I want to display the trajectory (truth, measurements and filter estimates) in a stream. def show_tracker(index,data=run_tracker()): i = int(index) …
user
  • 1
  • 2
0
votes
1 answer

newbie: holoviews Curves from pandas dataset columns

I have a pandas dataframe with columns labeled... x y true_x true_y I would like to plot a curve of true_x vs true_y overlaid with points y vs x. The tutorials leave me baffled since they only describe simple 2D and 3D examples.
user
  • 1
  • 2
0
votes
1 answer

Bar plots in holoviews with bokeh backend do not overlay

Here is the notebook which illustrates issues below: I can overlay bars in matplotlib backend and somewhat with plotly - but not with bokeh yaxis label is no longer valid after overlay and should be available to change the label by the user…
THOTH
  • 109
  • 1
  • 12
0
votes
1 answer

Multidimensional data in Holoviews

I have a 4-D dataset (as xr.DataArray) with dimensions temperature, datasource, time, and altitude. How can I create a scatter plot with of temperature(src0, z) vs. temperature(src1, z), so that I can select the altitude via a slider? I'm currently…
andreas-h
  • 10,679
  • 18
  • 60
  • 78
0
votes
2 answers

Holoviews: AttributeError: 'Image' object has no attribute 'set'

I have tried to run the Holoviews examples from the Holoviews website. I have: bokeh 0.12.4. holoviews 1.6.2 py27_0 conda-forge However, following any of the tutorials I get an error such as the following and am unable to debug: AttributeError:…
EB88
  • 841
  • 1
  • 10
  • 26
0
votes
0 answers

Slider labels do not correspond to the title

I have this xarray dataset defined as ds: Dimensions: (bnds: 2, lag: 61, plev: 63) Coordinates: * plev (plev) float64 1e+03 925.0 850.0 800.0 780.0 750.0 700.0 ... * lag (lag) int64 -30 -29 -28 -27 -26 -25 -24…
Ales
  • 495
  • 3
  • 11
-1
votes
1 answer

Displaying Source and Targets of sankey diagram in a specific order using holowies and bokeh

I tried drawing sankey plot using python (hv and bokeh) but was not able to get a plot with the TARGETS and SOURCE sorted in the desired order. My data "sorted_df0" is : Source Target Value Category_links 31 SQUALIDAE …
Sajna v.h
  • 1
  • 1
1 2 3
44
45