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 place a widget over a panel HoloViews dynamic map

I am trying to display the widgets of a HoloViews dynamic plot (Select, Slider, etc.) over the plot. All I can find is the widget_location argument which takes the location relative to the plot (‘left’ , ‘right’, …). But I want it to be placed over…
Monobakht
  • 193
  • 1
  • 11
0
votes
1 answer

inverted label text (half turn) for Chord diagram on holoviews with bokeh

In the example in https://holoviews.org/reference/elements/bokeh/Chord.html , how can I change the orientation of the label text 180° in order to avoid rotations that flip the label text upside down in the left semicircle (see pictures). The Backend…
mouwsy
  • 1,457
  • 12
  • 20
0
votes
2 answers

Create interactive plot of the Continuous Uniform Distribution with sliders for parameter values

How can I create an interactive plot of the pdf and the cdf of the Continuous Uniform Distribution using python? I would like to have interactive sliders with which I can adjust the parameters of the distribution. This is handy for getting a better…
Sander van den Oord
  • 10,986
  • 5
  • 51
  • 96
0
votes
1 answer

Create and Plot the PDF and CDF of the Continuous Uniform Distribution using Sympy

Using Sympy: How can I define the PDF and CDF of the Continuous Uniform Distribution and also generate a plot for the pdf as well as the cdf?
Sander van den Oord
  • 10,986
  • 5
  • 51
  • 96
0
votes
0 answers

Setting overlay order with Holoviews + Plotly

Is there a way to set the overlay order of Holoviews objects? For instance, I can overlay an hv.Curve (short vertical straight line) onto a rectangle with a solid fill color on Bokeh backend, but with the same code and a different backend (and the…
Claire
  • 639
  • 9
  • 25
0
votes
1 answer

How to create a dashboard with widgets (selector) and interactivity (tap stream) between plots in HoloViews/Bokeh?

I'm trying to create a dashboard that consists of two plots (heatmap and line graph) and one widget (selector): When you select an option from widget both plots get updated; When you tap on the first plot the second plot is updated based on tap…
yol
  • 19
  • 6
0
votes
1 answer

Bokeh Python CustomJS Callback Update Select Widget to filter Scatterplot

Hi my aim is to create a dropdown menu to select the week, and filter the data based on the selected week. I first find the last 5 weeks using the unique() then I use these weeks in my filtering. What am I missing here? I can see the dropdown and…
greencar
  • 315
  • 1
  • 4
  • 18
0
votes
1 answer

Holoviews; timeseries plot does not show

Good day. I am trying to plot timeseries with large data 2 billions of points and embed this plot into PyQt5. The Holoviews manual has the whole section on working with large data Working with large data using datashader. I am using the timeseries…
0
votes
2 answers

Creating chord diagram in Python

I want to create a Chord diagram for the following dataset where I have the first two columns as physical locations and a third column showing how many people visited both. Place1 Place2 Count US UK 200 FR US 450 UK …
eduardoftdo
  • 382
  • 3
  • 13
0
votes
1 answer

Python: Navigate directories using forwardslash and backslash

I have written some code in Jupyter Notebook, that runs locally on my windows PC. When it imports folders i use "\". However i have just moved all the folders to my google drive, & opened it with Colab. Now the in the directory path the folders are…
Leo
  • 1,176
  • 1
  • 13
  • 33
0
votes
1 answer

Holoviews charts not updating on widget selection

I copied the code below from a separate post on creating widgets that update plots based on the selection: # import libraries import numpy as np import pandas as pd import hvplot import hvplot.pandas import holoviews as hv hv.extension('bokeh',…
Amen_90
  • 310
  • 2
  • 9
0
votes
1 answer

Combining two different types of graphs in Holoviews using addition in Python

I am trying to combine 2 different type of graph. Both the graphs have different x and y axis and that's how it should be. I have to send the plot in an combined way only. Below is what I tried and failed. Any workarounds? import holoviews as…
TrickOrTreat
  • 821
  • 1
  • 9
  • 23
0
votes
1 answer

Can we register click on scatter points in Holoviews?

I am trying to find nearest neighbors on a scatter plot on click of point. So I need to know which point has been clicked. Below I am simply showing all points and hover. all_points = hv.Points( df_all_points, ['y', 'x'], ['x', 'y',…
TrickOrTreat
  • 821
  • 1
  • 9
  • 23
0
votes
1 answer

Set Independent Zoom Levels On Individual Plots Contained Within hv.Layout Or panel Row,Column,Gridspec

Summary Version: I have 2 choropleths linked using holoviews streams.Selection1D and DynamicMap. When plotted separately they can have different zoom levels set (the 2nd plot is a zoomed in version of the first plot). However when I plot them in a…
mmTmmR
  • 573
  • 2
  • 8
  • 20
0
votes
2 answers

3d surface plot with holoviews and "bokeh"

as I use the holoviews library in conjunction with the bokeh backend, I would like to create a 3D surface plot, too. In the documentation I only found matplotlib and plotly backends. Can somebody share a code snippet how to use holoviews/bokeh for…
Oliver Prislan
  • 320
  • 4
  • 12